[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
);
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.
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.
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in winbase.h.
Import Library: Use kernel32.lib.
File Systems Overview, File System Functions, CloseRaw, ImportCallback, OpenRaw, ReadRaw