http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createprocesswithlogonw.aspWindows XP SP2 and Windows Server 2003: You cannot call CreateProcessWithLogonW from a process that is running under the LocalSystem account, because the function uses the logon SID in the caller token, and the token for the LocalSystem account does not contain this SID. As an alternative, use the CreateProcessAsUser and LogonUser functions.
请赐教!
它在w2k下是通过的,但XP SP2是不能通过的!!!
还有CreateProcessAsUser的例子基本和我写的差不多,但在我这边是有1314的错误
那我不是被骗了,我的机器是XP,我发的那个代码就是在XP下运行通过的,而且最近看的一个代码,也是用CreateProcessWithLogon来实现提升权限的,我说的这2个代码都对内存进行了读操作,其中一个还进行了写操作,如果没有真的提升权限,那么对其他进程的内存读写怎么会成功呢?真是。