Platform SDK: Removable Storage Manager |
The ClaimMediaLabel function determines whether a specified media label was created by the media's associated application.
DWORD __stdcall ClaimMediaLabel( const BYTE *const pBuffer, const DWORD nBufferSize, MediaLabelInfo *const pLabelInfo );
Value | Meaning |
---|---|
NO_ERROR | The media label library filled in the MediaLabelInfo structure. |
ERROR_BAD_FORMAT | The media label library does not recognize the media label. |
When a media label library uses the ClaimMediaLabel function to identify the media label as one created by its associated application, the media label library must fill in the MediaLabelInfo structure and return NO_ERROR. If the media label library does not recognize the media label, it returns ERROR_BAD_FORMAT.
Windows NT/2000: Requires Windows 2000.