Skip to content
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

Cannot load user32.dll #2

Closed
kscieslinski opened this issue May 29, 2021 · 2 comments
Closed

Cannot load user32.dll #2

kscieslinski opened this issue May 29, 2021 · 2 comments

Comments

@kscieslinski
Copy link

Hi, I've successfully loaded ntdll.dll, kernel32.dll, advapi32.dll. However I've failed to load both user32.dll and ole32.dll (all x64).
I'd like to ask whether or not is known limitation.

My environment:
Windows x64 19042

@bb107
Copy link
Owner

bb107 commented May 31, 2021

When user32 is initialized, ntdll!RtlInitializeNtUserPfn is called to set the callback function pointer. This routine will check whether it has been set before setting the function pointer. Since user32.dll has been imported by default, repeated calls to initialization will fail and DllMain will return FALSE.
ole32 uses delayed import, but loading delayed import is currently not implemented.

@kscieslinski
Copy link
Author

Great, thanks for explanation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants