Error in creating a process as user in Windows2003: VC++

  • Thread starter Thread starter Pratham
  • Start date Start date
P

Pratham

Hello,

I am using WTS over Windows 2003 server, and running an application in
System account. In that application, I 'm trying to run another exe
(creating another process using CreateProcessAsUser() API in VC++.

But it always fails to create the process. Though, I have open the user
token, duplicated it and Impersonnate it, but still it is not working. The
same code and process flow is working with Windows 2000 Server/Advance
Server.

Can anyone suggent any workaround?

I will be highly thankful to you.

-- Vivek Anand
 
Hello Vivek Anand,
Based on my understanding, you would like to run an application in the logon user context when terminal to a Win2003
server. you said CreateProcessAsUser fails, could you let me know what error it returns?
And could you clarify "running an application in System account"? Is the System Account it localsystem, or a local user
account?
If possible, could you post a simple repro code so that I can see what happens?

In future, for questions in this nature, please post to win32.programmer.security for proper help.

Thanks,
Rhett Gong [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp&SD=msdn

This posting is provided "AS IS" with no warranties and confers no rights.
 
Back
Top