Partager via


CmCspGetTypeSpecificInfo (Compact 7)

3/12/2014

This function is called by Connection Manager when an application calls CmGetTypeSpecificInfoByConnectionName.

Syntax

CM_RESULT CmCspGetTypeSpecificInfo(
    __in_bcount(CM_CONNECTION_NAME_LENGTH) const WCHAR* szConnection,
    __in DWORD                           TypeSpecificOperationCode,
    __out_bcount(*pcbInfo) VOID         *pInfo,
    __inout DWORD                       *pcbInfo);

Parameters

  • [in] szConnection
    The name of the connection.
  • [in] TypeSpecificOperationCode
    The format and size of the pInfo buffer.
  • [out] pInfo
    Pointer to the connection-specific information.
  • [in,out] pcbInfo
    [in] Size of pInfo.

    [out] Needed buffer size.

Return Value

The following table shows the possible return values.

Value Description

CMRE_SUCCEEDED

Type-specific information has been successfully retrieved.

CMRE_INVALID_CONNECTION

The connection does not exist.

CMRE_INSUFFICIENT_BUFFER

The buffer pInfo is too small to return type-specific information. Needed buffer size is returned in pcbInfo.

CMRE_UNEXPECTED

An unexpected failure occurred.

Requirements

Header

cmcsp.h

See Also

Reference

Connection Service Provider Functions

Other Resources

Connection Service Provider Reference