Process Hacker Discussion Forum

 
440bx
Member
Posts: 63
Joined: 02 Jul 2021 23:33

LdrRegisterDllNotification prototype

14 Aug 2021 12:16

In LdrRegisterDllNotification, the third parameter is optional. The definition in ntldr.h shows it as required.

That function is now documented at : https://docs.microsoft.com/en-us/window ... tification
 
User avatar
dmex
Admin
Posts: 1693
Joined: 17 Jan 2011 05:43

Re: LdrRegisterDllNotification prototype

15 Aug 2021 23:13

The definition in ntldr.h shows it as required.
It shows _In_opt_ for me which means optional?
 
440bx
Member
Posts: 63
Joined: 02 Jul 2021 23:33

Re: LdrRegisterDllNotification prototype

17 Aug 2021 01:11

dmex wrote: 15 Aug 2021 23:13
The definition in ntldr.h shows it as required.
It shows _In_opt_ for me which means optional?
Maybe I am looking at an older version of the .h file. The version I have shows:


NTSYSAPI
NTSTATUS
NTAPI
LdrRegisterDllNotification(
    _In_ ULONG Flags,
    _In_ PLDR_DLL_NOTIFICATION_FUNCTION NotificationFunction,
    _In_ PVOID Context,
    _Out_ PVOID *Cookie
    );
 
User avatar
dmex
Admin
Posts: 1693
Joined: 17 Jan 2011 05:43

Re: LdrRegisterDllNotification prototype

17 Aug 2021 09:03

440bx wrote: 17 Aug 2021 01:11
Maybe I am looking at an older version of the .h file. The version I have shows:
It was updated 3 months ago:
https://github.com/processhacker/proces ... #L543-L551
 
440bx
Member
Posts: 63
Joined: 02 Jul 2021 23:33

Re: LdrRegisterDllNotification prototype

17 Aug 2021 11:34

Honestly, I'm not sure the last time I downloaded PH's source but, 3 months sounds about right.