Skip to content

Cannot load user32.dll #2

Closed
Closed

Description

@kscieslinski

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

Activity

  1. bb107 commented on May 31, 2021

    @bb107
    Owner

    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.

  2. kscieslinski commented on May 31, 2021

    @kscieslinski
    Author

    Great, thanks for explanation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions