Re: Run ncpa.cpl (Network Configuration) with Admin rights
From: Alun Jones [MS MVP] (alun_at_texis.invalid)
Date: 03/20/04
- Previous message: Eric Perlin [MS]: "Re: PropCert to transfer certificates from a token to the 'My' store"
- In reply to: Dee: "Re: Run ncpa.cpl (Network Configuration) with Admin rights"
- Next in thread: myself: "Re: Run ncpa.cpl (Network Configuration) with Admin rights"
- Reply: myself: "Re: Run ncpa.cpl (Network Configuration) with Admin rights"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
- Previous message: Eric Perlin [MS]: "Re: PropCert to transfer certificates from a token to the 'My' store"
- In reply to: Dee: "Re: Run ncpa.cpl (Network Configuration) with Admin rights"
- Next in thread: myself: "Re: Run ncpa.cpl (Network Configuration) with Admin rights"
- Reply: myself: "Re: Run ncpa.cpl (Network Configuration) with Admin rights"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|