Share via


EwfMgrGetProtectedVolumeConfig

3/21/2011

This function gets configuration information for an Enhanced Write Filter (EWF)-protected volume.

Syntax

PEWF_VOLUME_CONFIG EwfMgrGetProtectedVolumeConfig(
  HANDLE hDevice
);

Parameters

  • hDevice
    [in] Handle to the EWF-protected volume.

Return Value

If the function succeeds, the return value is a pointer to an EWF_VOLUME_CONFIG structure.

If the function fails, the return value is NULL. Call GetLastError for extended error information.

Remarks

The caller should use the LocalFree function to free the memory that was allocated for the structure when it is no longer needed.

If EWF is disabled, the CurrentLevel member of the EWF_VOLUME_CONFIG structure is set to 0.

Example

The DumpEwfProtectedVolumes function in the EWF API Code Sample (Sample.cpp), shows you how to use the EwfMgrGetProtectedVolumeConfig function.

Requirements

OS Versions: Standard 7

Header: Ewfapi.h

Link Library: Ewfapi.lib

See Also

Concepts

EWF API Functions