GetInterruptsAndDMA

BOOL
    GetInterruptsAndDMA(
        LPDWORD
InterruptsInUse,
        LPDWORD
DmaChannelsInUse,
        LPCTSTR
IgnoreDriver
        );

The GetInterruptsAndDMA function examines the registry to determine which interrupt numbers and DMA channels are assigned to devices.

Parameters
InterruptsInUse
Pointer to a DWORD. Receives a bit array of interrupts in use. If interrupt i is in use, then bit i is set.
DMAChannelsInUse
Pointer to a DWORD. Receives a bit array of DMA channels in use. If channel i is in use, then bit i is set.
IgnoreDriver
Pointer to the name of a kernel-mode driver. The interrupt numbers and DMA channels of the devices controlled by this driver are not included in the returned InterruptsInUse and DMAChannelsInUse bit arrays. Can be NULL.
Return Value

Returns TRUE if the operation succeeds. Otherwise returns FALSE.

Comments

Typically, a user-mode driver calling this function specifies the name of its kernel-mode driver for the IgnoreDriver parameter.

For additional information, see Installing and Configuring your Driver, Using drvlib.lib.