PyHANDLE = CreateFileW(FileName, DesiredAccess
, ShareMode
, SecurityAttributes
, CreationDisposition
, FlagsAndAttributes
, TemplateFile
, Transaction
, MiniVersion
, ExtendedParameter
)
Unicode version of CreateFile - see win32file::CreateFile for more information.
Parameters
FileName : PyUnicode
Name of fileDesiredAccess : int
Combination of access mode flags. See MSDN docs.ShareMode : int
Combination of FILE_SHARE_READ, FILE_SHARE_WRITE, FILE_SHARE_DELETESecurityAttributes : PySECURITY_ATTRIBUTES
Specifies security descriptor and handle inheritance, can be NoneCreationDisposition : int
One of CREATE_ALWAYS,CREATE_NEW,OPEN_ALWAYS,OPEN_EXISTING or TRUNCATE_EXISTINGFlagsAndAttributes : int
Combination of FILE_ATTRIBUTE_* and FILE_FLAG_* flagsTemplateFile=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.