win32file.BackupWrite

(int,int) = BackupWrite(hFile, NumberOfBytesToWrite , Buffer , bAbort , bProcessSecurity , lpContext )

Restores file data

Parameters

hFile : PyHANDLE

File handle opened by CreateFile

NumberOfBytesToWrite : int

Length of data to be written to file

Buffer : string

A string or buffer object that contains the data to be written

bAbort : int

If true, ends write operation and frees backup context

bProcessSecurity : int

Indicates whether ACL's should be restored

lpContext : int

Pass 0 on first call, then pass back value returned from last call thereafter

Comments

Returns number of bytes written and context pointer for next operation