CmGetPolicyConfig (Compact 2013)
3/26/2014
This API retrieves policy data.
Syntax
CM_RESULT CmGetPolicyConfig(
__in_bcount(cbKey) CM_POLICY_CONFIG_KEY* pKey,
__in DWORD cbKey,
__out_bcount(*pcbData) CM_POLICY_CONFIG_DATA* pData,
__inout DWORD* pcbData
);
Parameters
- pKey
[in] Pointer to a CM_POLICY_CONFIG_KEY structure.
- cbKey
[in] Length of the pKey parameter.
pData
[in] Pointer to a Connection Manager Connectivity Structures structure. The Version must be initialized.[out] Pointer to a Connection Manager Connectivity Structures structure.
pcbData
[in] Length of the pData parameter.[out] Length of the pData parameter.
Return Value
Value |
Description |
---|---|
CMRE_SUCCESS |
The operation completed successfully. |
CMRE_INVALID_PARAMETER |
One of the parameters in NULL or invalid. |
CMRE_INVALID_VERSION |
The Connection Manager Common Constants of one or more of the structure parameters is not supported. |
Requirements
Header |
cmnet.h |
Library |
cmnet.lib |