EwfMgrGetDriveLetterFromVolumeName

5/10/2007

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 following routine(s), which are included in the EWF API Code Sample (Sample.cpp), demonstrate how to use this function:

DisplayEWFVolumeConfig

DumpEwfProtectedVolumes

Requirements

OS Versions: Windows XP Embedded.

Header: Ewfapi.h.

Link Library: Ewfapi.dll, Ewfapi.lib.

See Also

Concepts

EWF API Functions
EWF API Code Sample