1
1
from _typeshed import Incomplete , Unused
2
+ from abc import abstractmethod
2
3
from collections .abc import Sequence
3
- from typing import SupportsInt , overload
4
+ from typing import ClassVar , SupportsInt , overload
4
5
from typing_extensions import TypeAlias , deprecated
5
6
6
7
import _win32typing
@@ -10,6 +11,15 @@ error: TypeAlias = com_error # noqa: Y042
10
11
11
12
class internal_error (Exception ): ...
12
13
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
+
13
23
def CoCreateFreeThreadedMarshaler (unk : _win32typing .PyIUnknown , / ) -> _win32typing .PyIUnknown : ...
14
24
def CoCreateInstanceEx (
15
25
clsid : _win32typing .PyIID ,
@@ -60,7 +70,13 @@ def GetActiveObject(cls, /) -> _win32typing.PyIUnknown: ...
60
70
def GetClassFile (fileName , / ) -> _win32typing .PyIID : ...
61
71
def GetFacilityString (scode , / ) -> str : ...
62
72
def 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
+ / ,
64
80
): ...
65
81
def GetRecordFromTypeInfo (TypeInfo : _win32typing .PyITypeInfo , / ): ...
66
82
def GetRunningObjectTable (reserved : int = ..., / ) -> _win32typing .PyIRunningObjectTable : ...
@@ -399,6 +415,7 @@ TYPEFLAG_FPREDECLID: int
399
415
TYPEFLAG_FREPLACEABLE : int
400
416
TYPEFLAG_FRESTRICTED : int
401
417
TYPEFLAG_FREVERSEBIND : int
418
+ RecordClasses : dict [str , com_record ]
402
419
TypeIIDs : dict [_win32typing .PyIID , type ]
403
420
URL_MK_LEGACY : int
404
421
URL_MK_UNIFORM : int
0 commit comments