DDiscFormat2EraseEvents::Update method (imapi2.h)

Implement this method to receive progress notification of the current erase operation.

Syntax

HRESULT Update(
  IDispatch *object,
  LONG      elapsedSeconds,
  LONG      estimatedTotalSeconds
);

Parameters

object

The IDiscFormat2Erase interface that initiated the erase operation.

This parameter is a MsftDiscFormat2Erase object in script.

elapsedSeconds

Elapsed time, in seconds, of the erase operation.

estimatedTotalSeconds

Estimated time, in seconds, to complete the erase operation.

Return value

Return values are ignored.

Remarks

Notifications are sent in response to calling the IDiscFormat2Erase::EraseMedia method.

Notification is sent every 0.5 or 1.0 seconds depending on the method required to blank the media.

Total time estimates for a single erasure can vary as the operation progresses. The drive provides updated information that can affect the projected duration of the erasure.

Requirements

   
Minimum supported client Windows Vista, Windows XP with SP2 [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header imapi2.h

See also

DDiscFormat2EraseEvents