MAXMEDIALABEL callback function (ntmsmli.h)

[Removable Storage Manager is no longer available as of Windows 7 and Windows Server 2008 R2.]

The MaxMediaLabel callback function determines the maximum size of the media label for the applications supported by the media label library.

Syntax

MAXMEDIALABEL Maxmedialabel;

DWORD Maxmedialabel(
  [out] DWORD * const pMaxSize
)
{...}

Parameters

[out] pMaxSize

Pointer to a buffer that receives the maximum size of the buffer sent to the ClaimMediaLabel function.

Return value

This function returns the following value.

Value Meaning
NO_ERROR
The function was successful.

Remarks

When the media format of the media specified in the MaxMediaLabel function does not have a theoretical size limit, the application should return the size of the largest media label the application can possibly generate.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header ntmsmli.h

See also

Media Label Library Functions