SaferGetPolicyInformation function (winsafer.h)
The SaferGetPolicyInformation function gets information about a policy. You can query to find out more information about the policy.
Syntax
BOOL SaferGetPolicyInformation(
[in] DWORD dwScopeId,
[in] SAFER_POLICY_INFO_CLASS SaferPolicyInfoClass,
[in] DWORD InfoBufferSize,
[out] PVOID InfoBuffer,
[out] PDWORD InfoBufferRetSize,
LPVOID lpReserved
);
Parameters
[in] dwScopeId
The scope of the query. The following table shows the possible values.
Value | Meaning |
---|---|
|
The scope of the query is by computer. |
|
The scope of the query is by user. |
[in] SaferPolicyInfoClass
A SAFER_POLICY_INFO_CLASS enumeration value that specifies the type of policy information that should be returned. The specified value determines the size and type of the InfoBuffer parameter. The following table shows the possible values.
[in] InfoBufferSize
The size, in bytes, of the InfoBuffer parameter.
[out] InfoBuffer
A buffer to contain the results of the query. The size and type of the returned information is determined by the SaferPolicyInfoClass parameter. For the type of the returned information for each possible value of the SaferPolicyInfoClass parameter, see the SaferPolicyInfoClass parameter.
[out] InfoBufferRetSize
The number of bytes in the InfoBuffer parameter that were filled with policy information.
lpReserved
Reserved for future use. This parameter should be set to NULL.
Return value
TRUE if the function succeeds; otherwise, FALSE. For extended error information, call GetLastError.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | winsafer.h |
Library | Advapi32.lib |
DLL | Advapi32.dll |
API set | ext-ms-win-advapi32-safer-l1-1-0 (introduced in Windows 8) |