Process Hacker Discussion Forum

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

RtlSetDaclSecurityDescriptor prototype

06 Aug 2021 07:55

The MS documentation states that the last parameter of that function (which is a BOOLEAN) is optional. That doesn't make sense.

The prototype found in wdm.h shows the last parameter is "In", which based on the documented description of how the parameter is used, is correct.

The prototype in Process Hacker's ntrtl.h shows the parameter as "_In_opt_" (as in the documentation) but, that can't be right. The wdm.h prototype is correct.

Just thought, I'd mention that.
 
User avatar
dmex
Admin
Posts: 1695
Joined: 17 Jan 2011 05:43

Re: RtlSetDaclSecurityDescriptor prototype

11 Aug 2021 15:42

Thanks, fixed :thumbup:

These functions were never documented until recently so there's probably some others using guesstimate annotations.
 
440bx
Member
Posts: 65
Joined: 02 Jul 2021 23:33

Re: RtlSetDaclSecurityDescriptor prototype

12 Aug 2021 18:13

dmex wrote: 11 Aug 2021 15:42
Thanks, fixed :thumbup:
My pleasure :)