I've created a virtual registry key and would like to set a security descriptor for this new key by calling RegSetKeySecurity(). This function returns with 0.
But when calling RegGetKeySecurity() the returned security descriptor doesn't match against the parameter in RegSetKeySecurity().
my pseudo code:
- Code: Select all
DWORD disposition = 0;
LONG ret = BoxedAppSDK_CreateVirtualRegKeyA( HKEY_CURRENT_USER,
ret = RegSetKeySecurity( keyRes, GROUP_SECURITY_INFORMATION, desc );
PSECURITY_DESCRIPTOR tmpDesc = new unsigned char [ 200 ];
DWORD tmpSize = 200;
ret = RegGetKeySecurity( keyRes,
Thanking you in anticipation.