EwfMgrGetDriveLetterFromVolumeName
3/21/2011
This function gets the drive letter for the specified device name for an Enhanced Write Filter (EWF)-protected volume.
Syntax
WCHAR EwfMgrGetDriveLetterFromVolumeName(
LPCWSTR lpVolumeName
);
Parameters
- lpVolumeName
[in] Long pointer to the specified volume name.
Return Value
If the method succeeds, it returns the drive letter as a WCHAR value. If the function fails, it returns -1.
Remarks
The volume name can be expressed by any valid means, for example, it can be one of the volume names that are returned by EwfMgrGetProtectedVolumeList.
Example
The DisplayEWFVolumeConfig and DumpEwfProtectedVolumes functions, which are included in EWF API Code Sample (Sample.cpp), show you how to use the EwfMgrGetDriveLetterFromVolumeName function.
Requirements
OS Versions: Standard 7
Header: Ewfapi.h
Link Library: Ewfapi.lib