[pywin32-checkins] pywin32/win32/src win32file.i,1.85,1.86
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2007-11-08 06:25:32
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14503/win32/src Modified Files: win32file.i Log Message: Combine rest of transacted functios with regular API functions Index: win32file.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32file.i,v retrieving revision 1.85 retrieving revision 1.86 diff -C2 -d -r1.85 -r1.86 *** win32file.i 6 Jun 2007 04:26:46 -0000 1.85 --- win32file.i 8 Nov 2007 06:25:30 -0000 1.86 *************** *** 3,6 **** --- 3,24 ---- %module win32file // An interface to the win32 File API's + // <nl>This module includes the tranactional NTFS operations introduced with + // Vista. The transacted functions are not wrapped separately, but are invoked by + // passing a transaction handle to the corresponding Unicode API function. + // This makes it simple to convert a set of file operations into a transaction by + // simply adding Transaction=<o PyHANDLE> to the passed arguments. + // If Transaction is None, 0, or not specified, the non-transacted API function will + // be called. [...1230 lines suppressed...] pfnCreateFileTransacted=(CreateFileTransactedfunc)GetProcAddress(hmodule, "CreateFileTransactedW"); pfnDeleteFileTransacted=(DeleteFileTransactedfunc)GetProcAddress(hmodule, "DeleteFileTransactedW"); ! pfnGetFileAttributesTransacted=(GetFileAttributesTransactedfunc)GetProcAddress(hmodule, "GetFileAttributesTransactedW"); pfnSetFileAttributesTransacted=(SetFileAttributesTransactedfunc)GetProcAddress(hmodule, "SetFileAttributesTransactedW"); pfnCreateDirectoryTransacted=(CreateDirectoryTransactedfunc)GetProcAddress(hmodule, "CreateDirectoryTransactedW"); --- 5045,5050 ---- pfnCreateFileTransacted=(CreateFileTransactedfunc)GetProcAddress(hmodule, "CreateFileTransactedW"); pfnDeleteFileTransacted=(DeleteFileTransactedfunc)GetProcAddress(hmodule, "DeleteFileTransactedW"); ! pfnGetFileAttributesTransactedA=(GetFileAttributesTransactedAfunc)GetProcAddress(hmodule, "GetFileAttributesTransactedA"); ! pfnGetFileAttributesTransactedW=(GetFileAttributesTransactedWfunc)GetProcAddress(hmodule, "GetFileAttributesTransactedW"); pfnSetFileAttributesTransacted=(SetFileAttributesTransactedfunc)GetProcAddress(hmodule, "SetFileAttributesTransactedW"); pfnCreateDirectoryTransacted=(CreateDirectoryTransactedfunc)GetProcAddress(hmodule, "CreateDirectoryTransactedW"); *************** *** 5217,5220 **** --- 5142,5146 ---- #define COPY_FILE_RESTARTABLE COPY_FILE_RESTARTABLE #define COPY_FILE_OPEN_SOURCE_FOR_WRITE COPY_FILE_OPEN_SOURCE_FOR_WRITE + #define COPY_FILE_COPY_SYMLINK // return codes from CopyFileEx progress routine |