ILTDVDBurner::GetProgress

Summary

Retrieves the progress of current operation.

Syntax

#include "ILTDVDBurner2.h"

Language Syntax
C HRESULT ILTDVDBurner_getProgress(pDVDBurner, pState, pProgress, pComplete, pDescription)
C++ HRESULT GetProgress(pState, pProgress, pComplete, pDescription)

Parameters

ILTDVDBurner *pDVDBurner

Pointer to an ILTDVDBurner interface.

long *pState

Pointer to a variable to be updated with the current state of the burner. Possible values are:

Value Meaning
LTDVDBurner_State_Idle [0] The burner is in the idle state. Operations and checks that require the burner to be in the idle state can be performed now.
LTDVDBurner_State_Writing [1] The burner is performing a writing operation. Certain operations and checks cannot be performed while the burner is in this state.
LTDVDBurner_State_TestWriting [2] The burner is performing a writing test. Certain operations and checks cannot be performed while the burner is in this state.
LTDVDBurner_State_Erasing [3] The burner is performing an erasing operation. Certain operations and checks cannot be performed while the burner is in this state.

long *pProgress

Pointer to a variable to be updated with current operation progress. Possible values are:

Value Meaning
LTDVDBurner_Progress_Idle [0] No operation is being performed.
LTDVDBurner_Progress_Initializing [1] Performing steps required before starting the actual operation.
LTDVDBurner_Progress_Writing [2] Writing an image to disc.
LTDVDBurner_Progress_Finalizing [3] Finalizing the current operation.
LTDVDBurner_Progress_Erasing [4] Erasing data from the disc.
LTDVDBurner_Progress_Completed [5] Operation completed.
LTDVDBurner_Progress_Aborted [6] Operation aborted due to errors.

long *pComplete

Pointer to a variable to be updated with the current operation completion status. Possible values range from 0 to 10000, where the value 0 means 0% completed while the value 10000 means 100% completed.

BSTR *pDescription

Pointer to a character string to be updated with a description of the current step being performed, or the current encountered errors.

Returns

Value Meaning
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

If the function succeeds, the user is responsible for freeing the string retrieved in pDescription by calling SysFreeString.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

Language Example
C ILTDVDBurner::GetProgress
C++ ILTDVDBurner::GetProgress
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Multimedia C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.