An application can use IOCTL_KS_ENABLE_EVENT to request notification of a KS event type, or to determine the events supported by a KS object. The application specifies IOCTL_KS_ENABLE_EVENT in the IoControl parameter of a call to KsSynchronousDeviceControl.
The application places a pointer to a structure of type KSEVENT in the InBuffer parameter and the size of this structure at InLength.
Input Buffer Length
Length of KSEVENT.
The application places a pointer to a structure of type KSEVENTDATA in the OutBuffer parameter and the size of this structure at OutLength.
Output Buffer Length
Length of KSEVENTDATA.
If the request is successful, the Status member is set to STATUS_SUCCESS.
To determine events supported by a KS object, specify NULL and 0 respectively for InBuffer and InLength.
|Header||ks.h (include Ks.h)|