|Microsoft DirectX 9.0|
Note The ICaptureGraphBuilder interface is deprecated. Use ICaptureGraphBuilder2 instead.
Preallocates a capture file to a specified size.
HRESULT AllocCapFile( LPCOLESTR lpwstr, DWORDLONG dwlSize );
[in] Pointer to a wide-character string containing the name of the file to create or resize.
[in] Size, in bytes, of the file to be allocated.
Returns an HRESULT value.
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.