Export (0) Print
Expand All

CRegKey::GetKeySecurity

Call this method to retrieve a copy of the security descriptor protecting the open registry key.

LONG GetKeySecurity( 
   SECURITY_INFORMATION si, 
   PSECURITY_DESCRIPTOR psd, 
   LPDWORD pnBytes  
) throw( );

si

The SECURITY_INFORMATION value that indicates the requested security information.

psd

A pointer to a buffer that receives a copy of the requested security descriptor.

pnBytes

The size, in bytes, of the buffer pointed to by psd.

If the method succeeds, the return value is ERROR_SUCCESS. If the method fails, the return value is a nonzero error code is defined in WINERROR.H.

For more information, see RegGetKeySecurity.

Header: atlbase.h

Show:
© 2014 Microsoft