11from _typeshed import Incomplete , Unused
2+ from abc import abstractmethod
23from collections .abc import Sequence
3- from typing import SupportsInt , overload
4+ from typing import ClassVar , SupportsInt , overload
45from typing_extensions import TypeAlias , deprecated
56
67import _win32typing
@@ -10,6 +11,15 @@ error: TypeAlias = com_error # noqa: Y042
1011
1112class internal_error (Exception ): ...
1213
14+ class com_record :
15+ @abstractmethod
16+ def __init__ (self , / , * args , ** kwargs ) -> None : ...
17+ TLBID : ClassVar [str ]
18+ MJVER : ClassVar [int ]
19+ MNVER : ClassVar [int ]
20+ LCID : ClassVar [int ]
21+ GUID : ClassVar [str ]
22+
1323def CoCreateFreeThreadedMarshaler (unk : _win32typing .PyIUnknown , / ) -> _win32typing .PyIUnknown : ...
1424def CoCreateInstanceEx (
1525 clsid : _win32typing .PyIID ,
@@ -60,7 +70,13 @@ def GetActiveObject(cls, /) -> _win32typing.PyIUnknown: ...
6070def GetClassFile (fileName , / ) -> _win32typing .PyIID : ...
6171def GetFacilityString (scode , / ) -> str : ...
6272def GetRecordFromGuids (
63- iid : _win32typing .PyIID , verMajor , verMinor , lcid , infoIID : _win32typing .PyIID , data : Incomplete | None = ..., /
73+ iid : str | _win32typing .PyIID ,
74+ verMajor : int ,
75+ verMinor : int ,
76+ lcid : int ,
77+ infoIID : str | _win32typing .PyIID ,
78+ data : Incomplete | None = ...,
79+ / ,
6480): ...
6581def GetRecordFromTypeInfo (TypeInfo : _win32typing .PyITypeInfo , / ): ...
6682def GetRunningObjectTable (reserved : int = ..., / ) -> _win32typing .PyIRunningObjectTable : ...
@@ -399,6 +415,7 @@ TYPEFLAG_FPREDECLID: int
399415TYPEFLAG_FREPLACEABLE : int
400416TYPEFLAG_FRESTRICTED : int
401417TYPEFLAG_FREVERSEBIND : int
418+ RecordClasses : dict [Incomplete , com_record ]
402419TypeIIDs : dict [_win32typing .PyIID , type ]
403420URL_MK_LEGACY : int
404421URL_MK_UNIFORM : int
0 commit comments