STISUBSCRIBE structure

The STISUBSCRIBE structure is used as a parameter for the IStiDevice::Subscribe method.

Syntax

typedef struct _STISUBSCRIBE {
  DWORD  dwSize;
  DWORD  dwFlags;
  DWORD  dwFilter;
  HWND   hWndNotify;
  HANDLE hEvent;
  UINT   uiNotificationMessage;
} STISUBSCRIBE, *LPSTISUBSCRIBE;

Members

dwSize

Caller-supplied size, in bytes, of the STISUBSCRIBE structure.

dwFlags

One of the following bit flags, defined in Sti.h.

STI_SUBSCRIBE_FLAG_EVENT

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. It is available on Windows Me, Windows XP and later operating system versions.

STI_SUBSCRIBE_FLAG_WINDOW

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. It is not available on Windows XP or later operating system versions.

dwFilter

Reserved for system use.

hWndNotify

Handle 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.

hEvent

Handle 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.

uiNotificationMessage

Window message that should be passed to the dwWndNotify window when an event occurs.

Requirements

   
Header sti.h (include Sti.h)