WriteRaw

[This is preliminary documentation and subject to change.]

The WriteRaw function is used for restore (import) operations on an encrypted file.

DWORD WriteRaw(
  PFE_IMPORT_FUNC pfImportCallback,
  PVOID pvCallbackContext,
  PVOID pvContext
);
 

Parameters

pfImportCallback
Pointer to the import 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 ImportCallback.
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 WriteRaw must be preceded by a successful call to OpenRaw, specifying CREATE_FOR_IMPORT in the ulFlags parameter. When the write 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, ImportCallback, OpenRaw, ReadRaw