Discussion:
run as admin in exe/dll
(too old to reply)
C Programmer , MFC
2011-10-31 05:41:18 UTC
Permalink
Hi,
I have a program developed in vc++/mfc. A dll is dynamically
connects to this exe file. But i need to run this exe as 'run as
admin'.
also some other tasks in dll.
My doubt is that i both dll and exe works for some specified tasks
such as writing data in registry.

If i am including the code in exe for 'run as admin' will the dll
works with the same privilege ('run as admin').
or any need to write the same code ('run as admin') in dll also.
Appreciating your esteemed help.
Regrads,
Satheesh
David Lowndes
2011-10-31 07:46:56 UTC
Permalink
Post by C Programmer , MFC
If i am including the code in exe for 'run as admin' will the dll
works with the same privilege ('run as admin').
Yes, the code called in the DLL runs with the same privilege to the
process that calls it.

Dave

Loading...