Share via


PDCardSetSocket

This function sets the socket state of the specified socket.

STATUS PDCardSetSocket(
  UINT32 uSocket,
  PPDCARD_SOCKET_STATE pState 
);

Parameters

  • uSocket
    [in] Specifies the number indicating the socket. The first socket is 0.
  • pState
    [in] Pointer to the PDCARD_SOCKET_STATE structure.

Return Values

Returns one of the return codes in the Cardserv.h header file.

Remarks

This function sets the specified socket's state and adjusts the socket controller appropriately. Callers typically call the PDCardGetSocketState function first, and after making adjustments, the PDCARD_SOCKET_STATE structure then calls this function. This avoids duplicating the socket state on different layers and unintentionally setting socket parameters.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Sockserv.h.
Link Library: Cardserv.lib.

See Also

PDCARD_SOCKET_STATE

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.