A module which supports common Windows types.
-
Converts an MS-DOS Date/Time to a standard Time object
-
Creates a new PyUnicode object
-
Creates a new PyUnicode object from raw binary data
-
Determines whether a buffer probably contains a form of Unicode text.
-
Creates a new PyOVERLAPPED object
-
Makes an PyIID object from a string.
-
Makes a PyTime object from the argument.
-
Creates a new, unique GUIID.
MS_WINCE
-
Creates a new PyACL object.
-
Creates a new PySID object.
-
Creates a new PySECURITY_ATTRIBUTES object.
-
Creates a new PySECURITY_DESCRIPTOR object.
NO_PYWINTYPES_SECURITY
-
Creates a new PyHANDLE object.
-
Creates a new PyHKEY object.
-
Creates a new PyWAVEFORMATEX object.
pywintypes.ACL
PyACL = ACL(bufSize) Creates a new ACL object
-
bufSize=64 : int
The size for the ACL.
pywintypes.CreateGuid
PyIID = CreateGuid() Creates a new, unique GUIID.
pywintypes.DosDateTimeToTime
PyTime = DosDateTimeToTime() Converts an MS-DOS Date/Time to a standard Time object.
pywintypes.HANDLE
PyHANDLE = HANDLE() Creates a new HANDLE object
pywintypes.HKEY
PyHKEY = HKEY() Creates a new HKEY object
pywintypes.IID
PyIID = IID(iidString, is_bytes
) Creates a new IID object
-
iidString : string/Unicode
A string representation of an IID, or a ProgID.
-
is_bytes=False : bool
Indicates if the first param is actually the bytes of an IID structure.
pywintypes.IsTextUnicode
int, int = IsTextUnicode(str, flags
) Determines whether a buffer probably contains a form of Unicode text.
-
str : string
The string containing the binary data.
-
flags : int
Determines the specific tests to make
The function returns (result, flags), both integers.
result is nonzero if the data in the buffer passes the specified tests.
result is zero if the data in the buffer does not pass the specified tests.
In either case, flags contains the results of the specific tests the function applied to make its determination.
pywintypes.OVERLAPPED
PyOVERLAPPED = OVERLAPPED() Creates a new OVERLAPPED object
pywintypes.SECURITY_ATTRIBUTES
PySECURITY_ATTRIBUTES = SECURITY_ATTRIBUTES() Creates a new SECURITY_ATTRIBUTES object
pywintypes.SECURITY_DESCRIPTOR
PySECURITY_DESCRIPTOR = SECURITY_DESCRIPTOR() Creates a new SECURITY_DESCRIPTOR object
-
data
A buffer (eg, a string) with the raw bytes for the security descriptor.
pywintypes.SID
PySID = SID(bufSize) Creates a new SID object
-
bufSize=32 : int
Size for the SID buffer
-
buffer
A raw data buffer, assumed to hold the SID data.
-
idAuthority
The identifier authority.
-
subAuthorities
A list of sub authorities.
pywintypes.Time
PyTime = Time(timeRepr) Creates a new time object.
-
timeRepr : object
An integer/float/tuple time representation.
Note that the parameter can be any object that supports
int(object) - for example , another PyTime object.
The integer should be as defined by the Python time module.
See the description of the PyTime object for more information.
pywintypes.Unicode
PyUnicode = Unicode() Creates a new Unicode object
pywintypes.UnicodeFromRaw
PyUnicode = UnicodeFromRaw(str) Creates a new Unicode object from raw binary data
-
str : string/buffer
The string containing the binary data.
pywintypes.WAVEFORMATEX
PyWAVEFORMATEX = WAVEFORMATEX() Creates a new WAVEFORMATEX object