MTPIPGetConnectionData (Windows Embedded CE 6.0)

1/6/2010

This function returns connection information for a pending TCP/IP connection from an MTP initiator.

Syntax

HRESULT MTPIPGetConnectionData (
  MTPIPCONNECTIONINFO* pCI
);

Parameters

  • pCI
    Pointer to an MTPIPCONNECTIONINFO structure to be filled in with information about a pending MTP IP connection.

Return Value

The following table shows the possible return values.

Value Description

S_OK

Connection information has been retrieved successfully and stored in the MTPIPCONNECTIONINFO structure.

E_INVALIDARG

Invalid argument; pCI was NULL.

E_PENDING

No notification event was registered. You must first call MTPIPRegisterConnectionNotification to register for connection notification.

E_FAIL

An internal error occurred.

See Also

Reference

MTP IP Authentication Functions
MTPIPCONNECTIONINFO
MTPIPRegisterConnectionNotification
MTPIPAuthorizeConnection