// storport.h
ULONG StorPortInitializeEvent(
PVOID HwDeviceExtension,
PSTOR_EVENT Event,
STOR_EVENT_TYPE Type,
BOOLEAN State
);
View the official Windows Driver Kit DDI referenceNo description available.
StorPortInitializeEvent initializes an event object as a synchronization or notification type event, and sets it to a signaled or not-signaled state.
HwDeviceExtensionPointer to the miniport's hardware device extension.
EventPointer to a caller-allocated STOR_EVENT structure that describes the event object.
TypeA STOR_EVENT_TYPE enum that identifies the event type.
StateBoolean value that specifies the initial state of the event.
StorPortInitializeEvent returns STOR_STATUS_SUCCESS on success. It returns STOR_STATUS_INVALID_PARAMETER if any of the parameters are invalid.
A miniport can call StorPortInitializeEvent to initialize an event object as a synchronization or notification-type event, and set the event object to a signaled or not-signaled state.
See KeInitializeEvent for more details.