3.4.WD_IntCount()

Purpose

Retrieves the interrupts count since the call to WD_IntEnable()[3.2].

Prototype
void WD_IntCount(
    HANDLE hWD,
    WD_INTERRUPT *pInterrupt);
Parameters
NameTypeInput/Output
hWDHANDLEInput
pInterruptWD_INTERRUPT*
hInterruptHANDLEInput
dwOptionsDWORDN/A
CmdWD_TRANSFER*N/A
dwCmdsDWORDN/A
kpCallWD_KERNEL_PLUGIN_CALLN/A
fEnableOkDWORDN/A
dwCounterDWORDOutput
dwLostDWORDOutput
fStoppedDWORDOutput
dwLastMessageDWORDN/A
dwEnabledIntTypeDWORDN/A
Description
NameDescription
hWDHandle to WinDriver's kernel-mode driver as received from WD_Open()[5.2]
pInterruptPointer to an interrupt information structure:
hInterrupt Handle of interrupt, returned by WD_CardRegister()[2.6] in I.Int.hInterrupt.
dwCounterNumber of interrupts received
dwLostNumber 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;