// sti.h
typedef struct _STISUBSCRIBE {
DWORD dwSize;
DWORD dwFlags;
DWORD dwFilter;
HWND hWndNotify;
HANDLE hEvent;
UINT uiNotificationMessage;
} STISUBSCRIBE, *LPSTISUBSCRIBE;
View the official Windows Driver Kit DDI referenceNo description available.
The STISUBSCRIBE structure is used as a parameter for the IStiDevice::Subscribe method.
dwSizeCaller-supplied size, in bytes, of the STISUBSCRIBE structure.
dwFlagsOne of the following bit flags, defined in sti.h.
Event notifications should be delivered to the application by calls to SetEvent. The hEvent member contains a Win32 event handle.
This bit flag is preferred for security reasons.
Event notifications should be delivered to the application using window messages. The dwWndNotify member contains a window handle and uiNotificationMessage contains a window message.
This bit flag is obsolete. Do not use.
dwFilterReserved for system use.
hWndNotifyHandle to an application window that should receive the message specified by uiNotificationMessage when an event occurs. Used only if STI_SUBSCRIBE_FLAG_WINDOW is set in dwFlags.
hEventHandle to a Win32 event created with CreateEvent, which the event monitor will use with SetEvent when an event occurs and for which the application can wait. Used only if STI_SUBSCRIBE_FLAG_WINDOW is set in dwFlags.
uiNotificationMessageWindow message that should be passed to the dwWndNotify window when an event occurs.