Okay, so I have to execute a batch command on a restricted user's account, however the batch command will not work unless the process has Administrative Privileges.
currently i call the batch command via
system("command here");
I, as the programmer, know the Administrator user/password on the WinXP machine this is to be executed on.
How can i execute this command/program as an administrator? I'm thinking about using the
SetThreadToken() function (http://msdn.microsoft.com/en-us/library/aa379590%28VS.85%29.aspx) but I do not know how to construct the token object properly
Thanks,
Philly0494