Microsoft DirectX 8.1 (C++) |
Note The ICaptureGraphBuilder interface is deprecated.
Preallocates a capture file to a specified size.
Syntax
HRESULT AllocCapFile(
LPCOLESTR lpwstr,
DWORDLONG dwlSize
);
Parameters
lpwstr
[in] Pointer to a wide-character string containing the name of the file to create or resize.
dwSize
[in] Size, in bytes, of the file to be allocated.
Return Value
Returns an HRESULT value.
Remarks
The call will fail if the file is read-only. For best capture results, always capture to a defragmented, preallocated capture file that is larger than the size of the capture data.
See Also