PURPOSE
Retrieves the interrupts count since the call to
WD_IntEnable() [3.2].
PROTOTYPE
void WD_IntCount(
HANDLE hWD,
WD_INTERRUPT *pInterrupt);
PARAMETERS
| Name | Type | Input/Output |
|---|---|---|
| HANDLE | Input | |
| WD_INTERRUPT* | ||
| HANDLE | Input | |
| DWORD | N/A | |
| WD_TRANSFER* | N/A | |
| DWORD | N/A | |
| WD_KERNEL_PLUGIN_CALL | N/A | |
| DWORD | N/A | |
| DWORD | Output | |
| DWORD | Output | |
| DWORD | Output |
DESCRIPTION
| Name | Description |
|---|---|
| hWD | The handle to WinDriver's kernel-mode driver received from WD_Open() [5.2] |
| pInterrupt | Pointer to an interrupt information structure: |
| hInterrupt | Handle of interrupt, returned by WD_CardRegister() [2.8] in 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 |
RETURN VALUE
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise [A].
EXAMPLE
DWORD dwNumInterrupts; WD_IntCount(hWD, &Intrp); dwNumInterrupts = Intrp.dwCounter;