GetSecurityDescriptorControl函数检索安全描述符的控制和修订信息。
BOOL GetSecurityDescriptorControl(
PSECURITY_DESCRIPTOR 【pSecurityDescriptor】, | //安全描述符的地址 |
PSECURITY_DESCRIPTOR_CONTROL 【PControl则】, | //控制结构的地址 |
LPDWORD 【// address of revision value】 | //修订版本的地址值 |
); |
参数
【pSecurityDescriptor】
指向SECURITY_DESCRIPTOR结构,其功能检索的控制和修订信息。
【PControl则】
指向SECURITY_DESCRIPTOR_CONTROL结构,接收安全描述符的控制信息。
【// address of revision value】
指向接收安全描述符修订值的变量。即使GetSecurityDescriptorControl返回错误,也始终设置此值。
返回值
如果函数成功,返回值不为零。
如果函数失败,返回值为零。要获取扩展错误信息,请调用GetLastError.
也可以看看
GetSecurityDescriptorDacl, GetSecurityDescriptorGroup, GetSecurityDescriptorLength, GetSecurityDescriptorOwner, GetSecurityDescriptorSacl, IsValidSecurityDescriptor, SECURITY_DESCRIPTOR, SECURITY_DESCRIPTOR_CONTROL