Share via


EwfMgrGetDriveLetterFromVolumeName

This function gets the drive letter for the specified device name for an Enhanced Write Filter (EWF)-protected volume.

  WCHAR EwfMgrGetDriveLetterFromVolumeName(
    LPCWSTR 
  lpVolumeName
  );

Parameters

  • lpVolumeName
    [in] Long pointer to the specified volume name.

Return Values

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.

Requirements

OS Versions: Windows XP Embedded.
Header: Ewfapi.h.
Link Library: Ewfapi.dll, Ewfapi.lib.

Code Example

The following routine(s), which are included in the EWF API Code Sample (Sample.cpp), demonstrate how to use this function:

DisplayEWFVolumeConfig

DumpEwfProtectedVolumes

See Also

EWF API Functions | EWF API Code Sample

Last updated on Wednesday, October 18, 2006

© 2006 Microsoft Corporation. All rights reserved.