Click to See Complete Forum and Search --> : Help About CreateProcessAsUser


Clara
May 4th, 1999, 02:01 AM
I'm now programming with VC++5.0 under Windows NT 4.0. When I use CreateProcessAsUser function in a console application after calling LogOnUser() function, I met a problem.
When I create a new process using CreateProcessAsUser(), if I use some functions, such as WSAStartup(),GetCurrentProcessId() and so on in the new process code, then when the applicaiton runs, it will pop up a message box to inform that USER32.dll initialization has failed, the process ended abnormally.
Please tell me how to solve this problem, how to use CreateProcessAsUser(), difference between CreateProcess and CreateProcessAsUser().You'd better provide me samples and documents.
Thanks!