Skip to content

Latest commit

 

History

History
251 lines (126 loc) · 5.53 KB

pywintypes.md

File metadata and controls

251 lines (126 loc) · 5.53 KB

pywintypes

Module pywintypes

A module which supports common Windows types.

Methods

MS_WINCE 

NO_PYWINTYPES_SECURITY 

PyACL = ACL(bufSize) Creates a new ACL object

Parameters

  • 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

PyHKEY = HKEY() Creates a new HKEY object

PyIID = IID(iidString, is_bytes

) Creates a new IID object

Parameters

  • 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.

Parameters

  • str : string

    The string containing the binary data.

  • flags : int

    Determines the specific tests to make

Return Value

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

Alternative Parameters

  • data

    A buffer (eg, a string) with the raw bytes for the security descriptor.

PySID = SID(bufSize) Creates a new SID object

Parameters

  • bufSize=32 : int

    Size for the SID buffer

Alternative Parameters

  • buffer

    A raw data buffer, assumed to hold the SID data.

Alternative Parameters

  • idAuthority

    The identifier authority.

  • subAuthorities

    A list of sub authorities.

PyTime = Time(timeRepr) Creates a new time object.

Parameters

  • timeRepr : object

    An integer/float/tuple time representation.

Comments

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

Parameters

  • str : string/buffer

    The string containing the binary data.

pywintypes.WAVEFORMATEX

PyWAVEFORMATEX = WAVEFORMATEX() Creates a new WAVEFORMATEX object