CoGetSystemSecurityPermissions function (objbase.h)
Returns the default values of the Security Descriptors of the machine-wide launch and access permissions, as well as launch and access limits.
HRESULT CoGetSystemSecurityPermissions( COMSD comSDType, PSECURITY_DESCRIPTOR *ppSD );
A value from the COMSD enumeration. Specifies the type of the requested system security permissions, such as launch permissions, access permissions, launch restrictions, and access restrictions.
Pointer to a caller-supplied variable that this routine sets to the address of a buffer containing the SECURITY_DESCRIPTOR for the system security permissions. Memory will be allocated by CoGetSystemSecurityPermissions and should be freed by caller with LocalFree.
This function can return one of these values.
||Invalid parameter comSDType or ppSD.|
||No connection to the resolver process.|
||Not enough memory for the security descriptor's allocation.|
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|