Help - Search - Members - Calendar
Full Version: Vb6/api Question
TechConnect Community Forums > Software > Software Programming
Noc_Trix
Hi all

My stress levels are soaring with this problem that I have been trying to find a solution to for the last week or so!...lol

I've created an ActiveX control that calls some .dll functions. These functions perform system checks that require local admin privileges and read/writes data to files. I have tried using the CreateProcessWithLogonW function to start the calling app with admin priv's, but this seems to accomodate only starting another process in the context of admin.

What I really need to do is to start the initial app with admin privileges, NOT another instance of this or another app.

I would be extremely grateful if anyone has any quality advice on how/if this can be achived with VB6/API ?

yours most grovellingly

noc_trix sad.gif
anir
squall_leonhart69r
:| i doubt its impossible

have you tried contacting microsoft about it
Noc_Trix
QUOTE (squall_leonhart69r @ Apr 21 2005, 03:04 AM)
:| i doubt its impossible

have you tried contacting microsoft about it
*


no, not tried contacting MS - wanted to avoid if possible! I thought I would seek advice from the experts first...

If I'm not mistaken, we have the ability to 'impersonate' a user when coding with .NET, I find it hard to believe there seems to be no equivalent in VB6!
squall_leonhart69r
ah i see,

there are ways to bypass this, but you'll need to find the VB6 documentation
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.