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.


MAXMEDIALABEL Maxmedialabel;

DWORD Maxmedialabel(
  [out] DWORD * const pMaxSize


[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
The function was successful.


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.


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