win32file.CreateFileW

PyHANDLE = CreateFileW(FileName, DesiredAccess , ShareMode , SecurityAttributes , CreationDisposition , FlagsAndAttributes , TemplateFile , Transaction , MiniVersion , ExtendedParameter )

Unicode version of CreateFile - see win32file::CreateFile for more information.

Parameters

FileName : string

Name of file

DesiredAccess : int

Combination of access mode flags. See MSDN docs.

ShareMode : int

Combination of FILE_SHARE_READ, FILE_SHARE_WRITE, FILE_SHARE_DELETE

SecurityAttributes : PySECURITY_ATTRIBUTES

Specifies security descriptor and handle inheritance, can be None

CreationDisposition : int

One of CREATE_ALWAYS,CREATE_NEW,OPEN_ALWAYS,OPEN_EXISTING or TRUNCATE_EXISTING

FlagsAndAttributes : int

Combination of FILE_ATTRIBUTE_* and FILE_FLAG_* flags

TemplateFile=None : PyHANDLE

Handle to file to be used as template, can be None

Transaction=None : PyHANDLE

Handle to the transaction as returned by win32transaction::CreateTransaction

MiniVersion=None : int

Transacted version of file to open, can be None

ExtendedParameter=None : None

Reserved, use only None

Comments

If Transaction is specified, CreateFileTransacted will be called (requires Vista or later)

Accepts keyword arguments.

Win32 API References

Search for CreateFile at msdn, google or google groups.

Search for CreateFileTransacted at msdn, google or google groups.