The SetPrivateObjectSecurity function modifies a private object’s security descriptor.
BOOL SetPrivateObjectSecurity(
SECURITY_INFORMATION SecurityInformation, |
// type of security information |
PSECURITY_DESCRIPTOR ModificationDescriptor, |
// address of SD to apply to object |
PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor, |
// address of object’s SD |
PGENERIC_MAPPING GenericMapping, |
// address of access-mapping structure |
HANDLE Token |
// handle of client access token |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The object’s security descriptor must be in self-relative form.
If necessary, the SetPrivateObjectSecurity function allocates additional memory to produce a larger security descriptor.
The SetPrivateObjectSecurity function is successful only if the following conditions are met:
The process calling this function must not be impersonating a client.
CreatePrivateObjectSecurity, DestroyPrivateObjectSecurity, GENERIC_MAPPING, GetPrivateObjectSecurity, SECURITY_DESCRIPTOR, SECURITY_INFORMATION, SetFileSecurity, SetKernelObjectSecurity, SetUserObjectSecurity
file: /Techref/os/win/api/win32/func/src/f80_21.htm, 5KB, , updated: 2000/4/7 11:19, local time: 2024/11/27 05:59,
18.188.76.209:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.org/Techref/os/win/api/win32/func/src/f80_21.htm"> SetPrivateObjectSecurity</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.