QueryLogPolicy function (clfsmgmtw32.h)
The QueryLogPolicy function allows you to obtain a policy that is installed for the specified log.
Syntax
CLFSUSER_API BOOL QueryLogPolicy(
[in] HANDLE hLog,
[in] CLFS_MGMT_POLICY_TYPE ePolicyType,
[out] PCLFS_MGMT_POLICY pPolicyBuffer,
[in, out] PULONG pcbPolicyBuffer
);
Parameters
[in] hLog
The handle to the log to query.
[in] ePolicyType
Specifies the type of policy to query for. Policy types are enumerated in CLFS_MGMT_POLICY_TYPE.
[out] pPolicyBuffer
A pointer to a buffer to receive the returned policies.
[in, out] pcbPolicyBuffer
A pointer to the size of pPolicyBuffer. If the buffer is not large enough, pcbPolicyBuffer receives the size buffer required to successfully retrieve the specified policies.
Return value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero (0). To get extended error information, call GetLastError.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 R2 [desktop apps only] |
Target Platform | Windows |
Header | clfsmgmtw32.h |
Library | Clfsw32.lib |
DLL | Clfsw32.dll |