Product Documentation

ActivePython 2.4 Documentation

win32file.CreateFileW

PyHANDLE = CreateFileW(fileName, desiredAccess , shareMode , attributes , creationDisposition , flagsAndAttributes , hTemplateFile )

An NT/2000 specific Unicode version of CreateFile - see win32file::CreateFile for more information.

Parameters

fileName : PyUnicode

The name of the file

desiredAccess : int

access (read-write) mode

shareMode : int

Set of bit flags that specifies how the object can be shared. If dwShareMode is 0, the object cannot be shared. Subsequent open operations on the object will fail, until the handle is closed.

attributes : PySECURITY_ATTRIBUTES

The security attributes, or None

creationDisposition : int

Specifies which action to take on files that exist, and which action to take when files do not exist. For more information about this parameter, see win32file::CreateFile

flagsAndAttributes : int

file attributes

hTemplateFile : PyHANDLE

Specifies a handle with GENERIC_READ access to a template file. The template file supplies file attributes and extended attributes for the file being created.