IRedbookDiscMaster::GetAvailableAudioTrackBlocks method (imapi.h)

Retrieves the current number of blocks that can be added to the track before an additional add will cause a failure for lack of space.

Syntax

HRESULT GetAvailableAudioTrackBlocks(
  [out] long *pnBlocks
);

Parameters

[out] pnBlocks

Number of audio blocks that can be added to the open track before it must be closed.

Return value

S_OK is returned on success, but other success codes may be returned as a result of implementation. The following error codes are commonly returned on operation failure, but do not represent the only possible error values:

Remarks

This method accounts for gaps associated with open tracks. Additionally, if this method is called when there is no open track, it returns the maximum number of audio blocks that could be added if a new track is created (accounting for gaps, and so on).

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header imapi.h
Library Uuid.lib
DLL Actxprxy.dll

See also

IRedbookDiscMaster