CmGetConnectionConfig (Compact 2013)
3/26/2014
Retrieves settings associated with a configured connection.
Syntax
CM_RESULT CmGetConnectionConfig(
__in const WCHAR* pszConnection,
__inout_bcount(*pcbConfig) CM_CONNECTION_CONFIG* pConfig,
__inout DWORD* pcbConfig
);
Parameters
- pszConnection
[in] Pointer to the connection name as provided by CmEnumConnectionsConfig.
pConfig
[in] Pointer to a CM_CONNECTION_CONFIG structure.The Version of this structure must be initialized. All other fields may be left uninitialized.
[out] Pointer to a CM_CONNECTION_CONFIG structure, which is populated with the connection configuration.
pcbConfig
[in] Pointer to a storage area to place the output.[out] Size, in bytes, of the pConfig structure.
Return Value
Returns one of the following values from the CM_RESULT enumeration:
Value |
Description |
---|---|
CMRE_SUCCESS |
The operation completed successfully. |
CMRE_ACCESS_DENIED |
The caller lacks sufficient privilege to perform the operation. |
CMRE_UNEXPECTED |
An unexpected failure occurred. |
Requirements
Header |
cmnet.h |
Library |
cmnet.lib |