IltmmCapture::AllocTarget

#include "ltmm.h"

C Syntax

HRESULT IltmmCapture_AllocTarget(pCapture, Size)

C++ Syntax

HRESULT AllocTarget(Size)

IltmmCapture *pCapture;

pointer to an interface

long Size;

target size

Pre-allocates the target to the specified size.

Parameter

Description

pCapture

Pointer to an IltmmCapture interface.

Size

Value containing the size in megabytes of the target to be allocated.

Returns

S_OK

The function was successful.

<> S_OK

An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation.

Comments

This function is typically used when the target is defined as a file. For best capture results, always capture to a defragmented, pre-allocated capture file that is larger than the size of the capture data.

Required DLLs and Libraries

LTMM

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Platforms

Win32, x64

See Also

Elements:

IltmmCapture::put_TargetFile

Topics:

Multimedia Function Group

Example

For a C example, refer to Advanced Capture Application for C.

For a C++ example, refer to Advanced Capture Application for C++.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Multimedia C API Help