Share via


capCreateCaptureWindow

The capCreateCaptureWindow function creates a capture window.

HWND VFWAPI capCreateCaptureWindow(
  LPCTSTR lpszWindowName,  
  DWORD dwStyle,          
  int x,                  
  int y,                  
  int nWidth,             
  int nHeight,            
  HWND hWnd,              
  int nID                 
);

Parameters

lpszWindowName

Null-terminated string containing the name used for the capture window.

dwStyle

Window styles used for the capture window. Window styles are described with the CreateWindowEx function.

x

The x-coordinate of the upper left corner of the capture window.

y

The y-coordinate of the upper left corner of the capture window.

nWidth

Width of the capture window.

nHeight

Height of the capture window.

hWnd

Handle to the parent window.

nID

Window identifier.

Return Values

Returns a handle of the capture window if successful or NULL otherwise.

Requirements

**  Windows NT/2000/XP:** Included in Windows NT 3.1 and later.
**  Windows 95/98/Me:** Included in Windows 95 and later.
**  Header:** Declared in Vfw.h.
**  Library:** Use Vfw32.lib.
**  Unicode:** Implemented as Unicode and ANSI versions on Windows NT/2000/XP.

See Also

Video Capture, Video Capture Functions, CreateWindowEx