Microsoft Windows CE 3.0  

CardRequestIRQ

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This function registers an interrupt service callback function for the specified socket and function pair.

STATUS CardRequestIRQ(
CARD_CLIENT_HANDLE
hCardClient
CARD_SOCKET_HANDLE
hSocket
CARD_ISR
ISRFunction
UINT32
uISRContextData
);

Parameters

hCardClient
Client handle obtained from the CardRegisterClientfunction.
hSocket
Handle to a socket and function pair.
ISRFunction
Pointer to the interrupt callback function for the specified socket and function pair. This parameter is required.
uISRContextData
Specifies context data to be passed to the interrupt callback function.

Return Values

CERR_SUCCESS indicates success. One of the following values indicates failure:

CERR_BAD_ARGS
Indicates that the pointer specified for ISRFunctionis invalid.
CERR_BAD_HANDLE
Indicates that the driver handle specified for hCardClientis invalid.
CERR_BAD_SOCKET
Indicates that the socket identifier specified for hSocketis invalid or that no PC Card is inserted.
CERR_IN_USE
Indicates that another driver owns the configuration or interrupt.
CERR_OUT_OF_RESOURCE
Indicates that insufficient memory is available to record the request.

Remarks

This function sets up the interrupt callback exclusively for the requesting driver. The device determines the interrupt source, determines which function on a socket interrupted, and calls the appropriate interrupt callback function.

Only I/O drivers can request interrupt notifications. Interrupts are not signaled until the PC Card is configured for the I/O interface by a call to the CardRequestConfigurationfunction.

Driver name

PCMCIA

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later      
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

CardReleaseConfiguration, CardReleaseIRQ



 Last updated on Tuesday, July 13, 2004

© 2004 Microsoft Corporation. All rights reserved.