Windows Dev Center

QueryLogPolicy function

The QueryLogPolicy function allows you to obtain a policy that is installed for the specified log.

Syntax


BOOL WINAPI QueryLogPolicy(
  _In_    HANDLE                hLog,
  _In_    CLFS_MGMT_POLICY_TYPE ePolicyType,
  _Out_   PCLFS_MGMT_POLICY     pPolicyBuffer,
  _Inout_ PULONG                pcbPolicyBuffer
);

Parameters

hLog [in]

The handle to the log to query.

ePolicyType [in]

Specifies the type of policy to query for. Policy types are enumerated in CLFS_MGMT_POLICY_TYPE.

pPolicyBuffer [out]

A pointer to a buffer to receive the returned policies.

pcbPolicyBuffer [in, out]

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 R2 [desktop apps only]

Header

Clfsmgmtw32.h

Library

Clfsw32.lib

DLL

Clfsw32.dll

See also

CLFS_MGMT_POLICY
CLFS_MGMT_POLICY_TYPE
RemoveLogPolicy

 

 

Community Additions

ADD
Show:
© 2015 Microsoft