NdisMDeregisterMiniport releases resources previously allocated with NdisMRegisterInterrupt.
VOID
NdisMDeregisterInterrupt(
IN PNDIS_MINIPORT_INTERRUPT Interrupt
);
Declared in Ndis.h. Include Ndis.h.
NdisMDeregisterInterrupt releases the association between the initialized interrupt object at Interrupt and the caller’s MiniportISR function. After NdisMDeregisterInterrupt returns, NDIS will not call the miniport driver’s MiniportISR function or MiniportHandleInterrupt function.
A miniport driver can call NdisMDeregisterInterrupt from its MiniportInitialize or MiniportHalt function only if MiniportInitialize previously made a successful call to NdisMRegisterInterrupt.
The miniport driver should disable its NIC from generating interrupts before it calls NdisMDeregisterInterrupt. After NdisMDeregisterInterrupt returns control, the miniport driver cannot call NdisMSynchronizeWithInterrupt.
Callers of NdisMDeregisterInterrupt run at IRQL = PASSIVE_LEVEL.
MiniportDisableInterrupt, MiniportHalt, MiniportHandleInterrupt, MiniportInitialize, MiniportISR, NdisMRegisterInterrupt, NdisMSynchronizeWithInterrupt