views:

66

answers:

1

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.

A: 

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).

Oleg
Thanks @Oleg, I appreciate it.
Vantomex