// ks.h
void KSEVENT_ENTRY_IRP_STORAGE(
Irp
);
View the official Windows Driver Kit DDI referenceNo description available.
This macro retrieves a pointer to the KSEVENT_ENTRY structure stored in Irp. This information is initialized only for enable requests; it is not initialized for basic support requests. If the event enable is to be handled asynchronously, this storage location must be maintained intact.
IrpContains a pointer to a KSEVENT_ENTRY structure.
The macro is defined as follows:
#define KSEVENT_ENTRY_IRP_STORAGE(Irp) (*(PKSEVENT_ENTRY*)&(Irp)->Tail.Overlay.DriverContext[0])