CardPowerOff
Other versions of this page are also available for the following:
8/28/2008
This function powers off a given socket and function pair.
Syntax
STATUS CardRequestConfiguration(
CARD_CLIENT_HANDLE hCardClient,
CARD_SOCKET_HANDLE hSock
);
Parameters
- hCardClient
[in] Handle obtained from the CardRegisterClient function.
- hSock
[in] Handle to the socket and function pair to modify.
Return Value
- CERR_SUCCESS
Indicates success.
- CERR_BAD_HANDLE
Indicates that the driver specified for hCardClient is not valid.
- CERR_BAD_SOCKET
Indicates that the socket identifier specified in hSock is not valid or that a PC Card is not inserted.
- CERR_IN_USE
Indicates that the configuration is owned by another driver.
Remarks
This function powers off a given socket and function pair. If all functions on the socket are powered off, or not used, it powers off the socket. If the driver has not been unloaded across a suspend state using CFG_ATTR_NO_SUSPEND_UNLOAD, resuming will not cause the socket and function pair to be powered on again.
Requirements
Header | cardserv.h |
Library | Cardserv.lib |
Windows Embedded CE | Windows CE .NET 4.1 and later |