capCreateCaptureWindowW function

The capCreateCaptureWindow function creates a capture window.

Syntax

HWND VFWAPI capCreateCaptureWindowW(
  LPCWSTR lpszWindowName,
  DWORD   dwStyle,
  int     x,
  int     y,
  int     nWidth,
  int     nHeight,
  HWND    hwndParent,
  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.

hwndParent

Handle to the parent window.

nID

Window identifier.

Return Value

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

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header vfw.h
Library Vfw32.lib
DLL Avicap32.dll

See Also

Creating a Capture Window

Video Capture

Video Capture Functions