-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CreateProcessAsUserW cannot be hooked under windows 10 or windows 11, but windows server 2019 work well #328
Comments
Check call stack, I guess you hook Program ran into And detours hooked If you are in this scenario, this is not bug. Addressing I'm not MS offical member, I just maintain a fork KNSoft.SlimDetours and keep an eye on the upstream, so my answer is not offical too, but hope it helps. Ratin Gao |
As you mentioned above, the calling stack is CreateProcessAsUserWStub(advapi32.dll)->CreateProcessAsUserW(KernelBase.dll). I write a demo that call the api CreateProcessAsUserW, then I inject dll to the demo. In the situation, CreateProcessAsUserW can be hook normally. |
C:\Windows\System32\KERNEL32.DLL -> CreateProcessAsUserW CreateProcessAsUserW could be in all 3 of them,you may need to hook all 3 |
My code as follows:
CreateProcessW can be hooked, but CreateProcessAsUserW not work.
Has anyone encountered the same problem?
Look forward to your reply.
The text was updated successfully, but these errors were encountered: