ReadRaw

[This is preliminary documentation and subject to change.]

The ReadRaw function is used to back up (export) encrypted files.

DWORD ReadRaw(
  PFE_EXPORT_FUNC pfExportCallback,
  PVOID pvCallbackContext,
  PVOID pvContext 
);
 

Parameters

pfExportCallback
Pointer to the export callback function. The system passes blocks of data to the callback function until the callback function has processed all the data. For more information, see ExportCallback.
pvCallbackContext
Pointer to an application-defined context block.
pvContext
Pointer to a system-defined context block. The context block is returned by the OpenRaw function.

Return Values

If the function succeeds, the return value is ERROR_SUCCESS.

If the function fails, the return value is a nonzero error code defined in WINERROR.H. To get a generic description of the error, use FormatMessage with the FORMAT_MESSAGE_FROM_SYSTEM flag.

Remarks

A call to ReadRaw must be preceded by a successful call to OpenRaw. When the read operation is finished, call the CloseRaw function to free allocated resources and close the file.

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in winbase.h.
  Import Library: Use kernel32.lib.

See Also

File Systems Overview, File System Functions, CloseRaw, ExportCallback, OpenRaw, WriteRaw