Share via


EwfMgrGetPersistentData (Standard 8)

7/8/2014

Review the use, syntax, parameters, and return values of the EwfMgrGetPersistentData function of the EWF API in Windows Embedded 8 Standard (Standard 8).

This function gets the persistent data for an Enhanced Write Filter (EWF)-protected volume.

Syntax

BOOL EwfMgrGetPeristentData(
  HANDLE hDevice,
  LPBYTE lpPersistentData,
  DWORD cbPersistentData
);

Parameters

  • hDevice
    [in] Handle to the EWF-protected volume.
  • lpPersistentData
    [out] Long pointer to a buffer to receive the persistent data.
  • cbPersistentData
    [in] Specifies the size, in bytes, of the buffer that is pointed to by lpPersistentData. Only the first EWF_MAX_PERSISTENT_DATA bytes are retrieved.

Return Value

Returns TRUE if successful; otherwise, returns FALSE. Call GetLastError for extended error information.

Remarks

This function is supported on RAM overlays with an associated EWF overlay store tracking its protection settings. However, it is not supported on RAM overlays that are described only within the registry.

Example

The DoEwfPersistCommands function in the EWF API Code Sample (Sample.cpp) shows you how to use the EwfMgrGetPeristentData function.

Requirements

Header

ewfapi.h

Library

ewfapi.lib

See Also

Reference

EwfMgrSetPersistentData

Concepts

EWF API Functions