FSDMGR_GetVolumeName

This function gets the name of a volume, given its handle.

At a Glance

Header file: Fsdmgr.h
Windows CE versions: 2.10 and later

Syntax

INT FSDMGR_GetVolumeName( HVOL hVol, PWSTR pwsName,int cchMax );

Parameters

hVol

[in] Handle to the mounted volume that is returned from FSDMGR_RegisterVolume. This handle is not a true Win32 handle.

pwsName

[out] Pointer to the string that contains the volume name. Set to NULL to get the size of the volume name.

cchMax

[in] Maximum number of characters allowed in the buffer, including the terminating NULL. This is ignored if pwsName is NULL.

Return Values

The number of characters returned, not including the terminating NULL, indicates success. Zero indicates failure.

See Also

FSDMGR_RegisterVolume