CLIENT_CALLBACK specifies the prototype for PC Card event callback functions. The Card Services driver calls the callback function to notify the installable device driver of a PC Card event.
typedef STATUS (*CLIENT_CALLBACK)( CARD_EVENT CardEvent CARD_SOCKET_HANDLE hSocket PCARD_EVENT_PARMS pCardEventParms );
If the function succeeds, your callback function should return CERR_SUCCESS; otherwise, return one of the following:
When a PC Card event occurs, Card Services notifies drivers by calling their registered callback functions. The callback function must conform to the CLIENT_CALLBACK prototype.
Drivers can indicate for which events they want notification when they register with CardRegisterClient.
CardRequestSocketMask and CardSetEventMask can be used to request event notification for a specific socket and function pair.
CardRegisterClient, CardRequestSocketMask, CardSetEventMask, PC Card Event Codes
The EnumPndIds function returns a list of Plug-and-play IDs currently known to the system. These represent Plug-and-play devices that are currently inserted into the Windows CE platform.
DWORD EnumPnpIds( LPTSTR PnpList, LPDWORD lpBufLen );