Partager via


MTPIPCONNECTIONINFO (Windows Embedded CE 6.0)

1/6/2010

This structure defines TCP/IP connection information for a pending connection from an MTP initiator.

Syntax

typedef struct _MTPIPCONNECTIONINFO {
  DWORD dwNonce;
  GUID guidClient;
  WCHAR rgwchClientName[MTPIP_CONNAUTH_MAX_NAME_LENGTH];
  DWORD cchClientName;
  SOCKADDR_STORAGE saClient;
  SOCKADDR_STORAGE saLocal;
} MTPIPCONNECTIONINFO;

Members

  • guidClient
    The GUID associated with the MTP initiator.
  • rgwchClientName
    The host name of the MTP initiator.
  • cchClientName
    The number of characters in the host name of the MTP initiator.
  • saClient
    The socket address associated with the MTP initiator for the pending TCP/IP connection.
  • saLocal
    The socket address associated with the local MTP responder for the pending TCP/IP connection.

Remarks

Original equipment manufacturers (OEMs) do not modify members of this structure; MTPIPGetConnectionData fills this structure with connection information.

The value returned in dwNonce is a pseudo-random number that you pass to MTPIPAuthorizeConnection to help prevent replay attacks.

See Also

Reference

MTP IP Authentication Structures
MTPIPGetConnectionData
MTPIPAuthorizeConnection