next up previous contents
Next: 3.5 WD_IntDisable() Up: 3. Low Level WD_xxx Previous: 3.3 WD_IntWait()   Contents


3.4 WD_IntCount()


PURPOSE

$\bullet$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
$\bullet$hWD HANDLE Input
$\bullet$pInterrupt WD_INTERRUPT*  
$\gg$hInterrupt HANDLE Input
$\gg$dwOptions DWORD N/A
$\gg$Cmd WD_TRANSFER* N/A
$\gg$dwCmds DWORD N/A
$\gg$kpCall WD_KERNEL_PLUGIN_CALL N/A
$\gg$fEnableOk DWORD N/A
$\gg$dwCounter DWORD Output
$\gg$dwLost DWORD Output
$\gg$fStopped 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;