The capSetUserData macro associates a LONG data value with a capture window. You can use this macro or explicitly call the WM_CAP_SET_USER_DATA message.
BOOL capSetUserData(
hwnd,
lUser
);
Returns TRUE if successful or FALSE if streaming capture is in progress.
Typically this message is used to point to a block of data associated with a capture window.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in vfw.h.
Video Capture Overview, Video Capture Macros, WM_CAP_SET_USER_DATA