Retrieves the interrupts count since the call to
WD_IntEnable()
void WD_IntCount(
HANDLE hWD,
WD_INTERRUPT *pInterrupt);
| Name | Type | Input/Output |
|---|---|---|
| hWD | HANDLE | Input |
| pInterrupt | WD_INTERRUPT* | |
| • hInterrupt | HANDLE | Input |
| • dwOptions | DWORD | N/A |
| • Cmd | WD_TRANSFER* | N/A |
| • dwCmds | DWORD | N/A |
| • kpCall | WD_KERNEL_PLUGIN_CALL | N/A |
| • fEnableOk | DWORD | N/A |
| • dwCounter | DWORD | Output |
| • dwLost | DWORD | Output |
| • fStopped | DWORD | Output |
| • dwLastMessage | DWORD | N/A |
| • dwEnabledIntType | DWORD | N/A |
| Name | Description |
|---|---|
| hWD | Handle to WinDriver's kernel-mode driver as
received from WD_Open() |
| pInterrupt | Pointer to an interrupt information structure: |
| • hInterrupt |
Handle of interrupt, returned by WD_CardRegister()I.Int.hInterrupt.
|
| • dwCounter | Number of interrupts received |
| • dwLost | Number of interrupts not yet handled |
| • fStopped |
Set by the function to TRUE if interrupt was disabled while
waiting for interrupts
|
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate
error code otherwise
DWORD dwNumInterrupts; WD_IntCount(hWD, &Intrp); dwNumInterrupts = Intrp.dwCounter;