Could someone provide me an example of utilizing SECURITY_DESCRIPTOR in InitializeObjectAttributes()? I plan to use them with NtCreateKey(). I couldn't find any example on the Internet.
Thanks in advance.
Could someone provide me an example of utilizing SECURITY_DESCRIPTOR in InitializeObjectAttributes()? I plan to use them with NtCreateKey(). I couldn't find any example on the Internet.
Thanks in advance.
The last parameter of InitializeObjectAttributes()
can be just well documented SECURITY_DESCRIPTOR. You can use for example ConvertStringSecurityDescriptorToSecurityDescriptor
to convert Security Descriptor String Format to SECURITY_DESCRIPTOR. You can create SECURITY_DESCRIPTOR without usage of security descriptor definition language (SDDL).