Re: Run ncpa.cpl (Network Configuration) with Admin rights

From: Alun Jones [MS MVP] (alun_at_texis.invalid)
Date: 03/20/04

  • Next message: Marc Davis: "Re: CreateProcessWithLogonW and Windows 2003 Issue"
    Date: Sat, 20 Mar 2004 02:59:03 GMT
    
    

    In article <dbc25e8a.0403020619.43ca235@posting.google.com>,
    dnfp@rocketmail.com (Dee) wrote:
    >Thanks, It worked. I'm trying to do this programmatically in VC++
    >using CreateProcess(...) and putting the 'runas ...' as the
    >commandline argument.
    >Do you have any ideas about how to do this.

    What about the old way of running control panel applets (as used when
    debugging them)?

    "%windir%\system32\rundll32" shell32.dll,Control_RunDLL
    "%windir%\system32\ncpa.cpl"

    Um... that wrapped, it should all be one line. A search through MSDN for
    Control_RunDLL should give you more tips, for CPLs that have more than one
    applet.

    Alun.
    ~~~~

    [Please don't email posters, if a Usenet response is appropriate.]

    -- 
    Texas Imperial Software   | Find us at http://www.wftpd.com or email
    1602 Harvest Moon Place   | alun@texis.com.
    Cedar Park TX 78613-1419  | WFTPD, WFTPD Pro are Windows FTP servers.
    Fax/Voice +1(512)258-9858 | Try our NEW client software, WFTPD Explorer.
    

  • Next message: Marc Davis: "Re: CreateProcessWithLogonW and Windows 2003 Issue"

    Relevant Pages

    • Re: ssl negotiation failed with Microsoft IIS
      ... They can fail when you write first ssl packet header, ... [Please don't email posters, if a Usenet response is appropriate.] ... Texas Imperial Software | Find us at http://www.wftpd.com or email ... Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers. ...
      (microsoft.public.platformsdk.security)
    • Re: Security Bug in IE
      ... >people print out the contents of FTP sites, ... [Please don't email posters, if a Usenet response is appropriate.] ... Texas Imperial Software | Find us at http://www.wftpd.com or email ... Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers. ...
      (microsoft.public.security)
    • Re: Why does Windows allow Worms?
      ... In article, Bruce Barnett ... [Please don't email posters, if a Usenet response is appropriate.] ... Texas Imperial Software | Find us at http://www.wftpd.com or email ... Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers. ...
      (comp.security.misc)
    • Re: LogonUser, but no password?
      ... across a network, for instance a client certificate, or a password, but even ... [Please don't email posters, if a Usenet response is appropriate.] ... Texas Imperial Software | Find us at http://www.wftpd.com or email ... Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers. ...
      (microsoft.public.platformsdk.security)
    • Re: Security??
      ... It was silly of Jason to claim that he was invulnerable. ... [Please don't email posters, if a Usenet response is appropriate.] ... Texas Imperial Software | Find us at http://www.wftpd.com or email ... Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers. ...
      (microsoft.public.security)

  • Quantcast