The WM_CAP_SET_USER_DATA message associates a LONG data value with a capture window. You can send this message explicitly or by using the capSetUserData macro.
WM_CAP_SET_USER_DATA
wParam = (WPARAM) 0;
lParam = (LPARAM)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 Messages, capSetUserData