1
1
# Not available at runtime. Contains type definitions that are otherwise not exposed and not part of a specific module.
2
- from _typeshed import Incomplete
3
- from typing_extensions import final
2
+ from _typeshed import Incomplete , Self
3
+ from collections .abc import Iterable
4
+ from typing import overload
5
+ from typing_extensions import Literal , final
4
6
5
7
class ArgNotFound : ...
6
8
class PyOleEmpty : ...
@@ -162,13 +164,16 @@ class PRINTER_DEFAULTS:
162
164
class PyACL :
163
165
def Initialize (self ) -> None : ...
164
166
def IsValid (self ) -> bool : ...
165
- def AddAccessAllowedAce (self , revision , access , sid : PySID , access1 , sid1 ) -> None : ...
166
- def AddAccessAllowedAceEx (self , revision , aceflags , access , sid : PySID ) -> None : ...
167
+ @overload
168
+ def AddAccessAllowedAce (self , __access : int , __sid : PySID ) -> None : ...
169
+ @overload
170
+ def AddAccessAllowedAce (self , __revision : int , __access : int , __sid : PySID ) -> None : ...
171
+ def AddAccessAllowedAceEx (self , __revision : int , __aceflags : int , __access : int , __sid : PySID ) -> None : ...
167
172
def AddAccessAllowedObjectAce (
168
173
self , AceRevision , AceFlags , AccessMask , ObjectTypeGuid : PyIID , InheritedObjectTypeGuid : PyIID , sid : PySID
169
174
) -> None : ...
170
- def AddAccessDeniedAce (self , revision , access , sid : PySID , access1 , sid1 ) -> None : ...
171
- def AddAccessDeniedAceEx (self , revision , aceflags , access , sid : PySID ) -> None : ...
175
+ def AddAccessDeniedAce (self , __revision : int , __access : int , __sid : PySID , __access1 : int , __sid1 : PySID ) -> None : ...
176
+ def AddAccessDeniedAceEx (self , __revision : int , __aceflags : int , __access : int , __sid : PySID ) -> None : ...
172
177
def AddMandatoryAce (self , AceRevision , AceFlags , MandatoryPolicy , LabelSid : PySID ) -> None : ...
173
178
def AddAuditAccessAce (self , dwAceRevision , dwAccessMask , sid : PySID , bAuditSuccess , bAuditFailure ) -> None : ...
174
179
def AddAuditAccessAceEx (self , dwAceRevision , AceFlags , dwAccessMask , sid : PySID , bAuditSuccess , bAuditFailure ) -> None : ...
@@ -185,11 +190,13 @@ class PyACL:
185
190
) -> None : ...
186
191
def GetAclSize (self ): ...
187
192
def GetAclRevision (self ): ...
188
- def GetAceCount (self ): ...
189
- def GetAce (self , index ) : ...
190
- def DeleteAce (self , index ) -> None : ...
191
- def GetEffectiveRightsFromAcl (self , trustee : PyTRUSTEE ) : ...
193
+ def GetAceCount (self ) -> int : ...
194
+ def GetAce (self , __index : int ) -> tuple [ tuple [ int , int ], int , PySID ] : ...
195
+ def DeleteAce (self , __index : int ) -> None : ...
196
+ def GetEffectiveRightsFromAcl (self , __trustee : PyTRUSTEE | dict [ str , int | PySID ]) -> int : ...
192
197
def GetAuditedPermissionsFromAcl (self , trustee : PyTRUSTEE ) -> tuple [Incomplete , Incomplete ]: ...
198
+ def SetEntriesInAcl (self , __obexpl_list : tuple [dict [str , int | dict [str , int | PySID ]], ...]) -> PyACL : ...
199
+ def GetExplicitEntriesFromAcl (self ) -> tuple [dict [str , int | dict [str , int | PySID ]]] | None : ...
193
200
194
201
class PyBITMAP :
195
202
@property
@@ -546,7 +553,7 @@ class PyConsoleScreenBuffer:
546
553
def ReadConsole (self , NumberOfCharsToRead ): ...
547
554
def WriteConsole (self , Buffer ): ...
548
555
def FlushConsoleInputBuffer (self ) -> None : ...
549
- def SetConsoleTextAttribute (self , Attributes ) -> None : ...
556
+ def SetConsoleTextAttribute (self , __Attributes : int ) -> None : ...
550
557
def SetConsoleCursorPosition (self , CursorPosition : PyCOORD ) -> None : ...
551
558
def SetConsoleScreenBufferSize (self , Size : PyCOORD ) -> None : ...
552
559
def SetConsoleWindowInfo (self , Absolute , ConsoleWindow : PySMALL_RECT ) -> None : ...
@@ -566,7 +573,7 @@ class PyConsoleScreenBuffer:
566
573
def SetConsoleFont (self , Font ) -> None : ...
567
574
def SetStdHandle (self , StdHandle ) -> None : ...
568
575
def SetConsoleDisplayMode (self , Flags , NewScreenBufferDimensions : PyCOORD ) -> None : ...
569
- def WriteConsoleInput (self , Buffer : tuple [PyINPUT_RECORD , ... ]): ...
576
+ def WriteConsoleInput (self , __Buffer : Iterable [PyINPUT_RECORD ]): ...
570
577
def ReadConsoleInput (self , Length ) -> tuple [PyINPUT_RECORD , ...]: ...
571
578
def PeekConsoleInput (self , Length ) -> tuple [PyINPUT_RECORD , ...]: ...
572
579
def GetNumberOfConsoleInputEvents (self ): ...
@@ -864,7 +871,7 @@ class PyEventLogRecord:
864
871
@property
865
872
def StringInserts (self ) -> tuple [str , ...]: ...
866
873
@property
867
- def Sid (self ) -> PySID : ...
874
+ def Sid (self ) -> PySID | None : ...
868
875
@property
869
876
def Data (self ) -> str : ...
870
877
@property
@@ -916,7 +923,7 @@ class PyHANDLE:
916
923
def handle (self ) -> int : ...
917
924
def Close (self ) -> None : ...
918
925
def close (self ) -> None : ...
919
- def Detach (self ) : ...
926
+ def Detach (self : Self ) -> Self : ...
920
927
921
928
@final
922
929
class PyHDESK :
@@ -1049,7 +1056,10 @@ class PyHH_WINTYPE:
1049
1056
def urlJump2 (self ) -> str : ...
1050
1057
1051
1058
class PyHINTERNET : ...
1052
- class PyHKEY : ...
1059
+
1060
+ class PyHKEY :
1061
+ def Close (self ): ...
1062
+
1053
1063
class PyHTHEME : ...
1054
1064
1055
1065
@final
@@ -1060,36 +1070,25 @@ class PyHWINSTA:
1060
1070
def Detach (self , * args , ** kwargs ): ... # incomplete
1061
1071
1062
1072
class PyICONINFO : ...
1073
+
1074
+ @final
1063
1075
class PyIID : ...
1064
1076
1065
1077
@final
1066
1078
class PyINPUT_RECORD :
1067
- @property
1068
- def EventType (self ): ...
1069
- @property
1070
- def KeyDown (self ): ...
1071
- @property
1072
- def RepeatCount (self ): ...
1073
- @property
1074
- def VirtualKeyCode (self ): ...
1075
- @property
1076
- def VirtualScanCode (self ): ...
1077
- @property
1078
- def Char (self ) -> str : ...
1079
- @property
1080
- def ControlKeyState (self ): ...
1081
- @property
1082
- def ButtonState (self ): ...
1083
- @property
1084
- def EventFlags (self ): ...
1085
- @property
1086
- def MousePosition (self ) -> PyCOORD : ...
1087
- @property
1088
- def Size (self ) -> PyCOORD : ...
1089
- @property
1090
- def SetFocus (self ): ...
1091
- @property
1092
- def CommandId (self ): ...
1079
+ EventType : int
1080
+ KeyDown : int | bool
1081
+ RepeatCount : int
1082
+ VirtualKeyCode : int
1083
+ VirtualScanCode : Incomplete
1084
+ Char : str
1085
+ ControlKeyState : int
1086
+ ButtonState : int
1087
+ EventFlags : int
1088
+ MousePosition : PyCOORD
1089
+ Size : PyCOORD
1090
+ SetFocus : Incomplete
1091
+ CommandId : Incomplete
1093
1092
1094
1093
class PyLOCALGROUP_INFO_0 :
1095
1094
@property
@@ -1206,20 +1205,13 @@ class PyNMHDR:
1206
1205
class PyNOTIFYICONDATA : ...
1207
1206
1208
1207
class PyOVERLAPPED :
1209
- @property
1210
- def Offset (self ) -> int : ...
1211
- @property
1212
- def OffsetHigh (self ) -> int : ...
1213
- @property
1214
- def object (self ): ...
1215
- @property
1216
- def dword (self ): ...
1217
- @property
1218
- def hEvent (self ) -> int : ...
1219
- @property
1220
- def Internal (self ) -> int : ...
1221
- @property
1222
- def InternalHigh (self ) -> int : ...
1208
+ Offset : int
1209
+ OffsetHigh : int
1210
+ object : object
1211
+ dword : int
1212
+ hEvent : int
1213
+ Internal : int
1214
+ InternalHigh : int
1223
1215
1224
1216
class PyOVERLAPPEDReadBuffer : ...
1225
1217
@@ -1276,24 +1268,23 @@ class PySCROLLINFO: ...
1276
1268
class PySC_HANDLE : ...
1277
1269
1278
1270
class PySECURITY_ATTRIBUTES :
1279
- @property
1280
- def bInheritHandle (self ): ...
1281
- @property
1282
- def SECURITY_DESCRIPTOR (self ) -> PySECURITY_DESCRIPTOR : ...
1271
+ bInheritHandle : int
1272
+ SECURITY_DESCRIPTOR : PySECURITY_DESCRIPTOR
1283
1273
1284
1274
class PySECURITY_DESCRIPTOR :
1285
1275
def Initialize (self ) -> None : ...
1286
1276
def GetSecurityDescriptorOwner (self ) -> PySID : ...
1287
1277
def GetSecurityDescriptorDacl (self ) -> PyACL : ...
1288
1278
def GetSecurityDescriptorSacl (self ) -> PyACL : ...
1289
1279
def GetSecurityDescriptorControl (self ) -> tuple [Incomplete , Incomplete ]: ...
1290
- def SetSecurityDescriptorOwner (self , sid : PySID , bOwnerDefaulted ) -> None : ...
1280
+ def SetSecurityDescriptorOwner (self , __sid : PySID , __bOwnerDefaulted : int | bool ) -> None : ...
1291
1281
def SetSecurityDescriptorGroup (self , sid : PySID , bOwnerDefaulted ): ...
1282
+ def SetSecurityDescriptorDacl (self , __bSaclPresent : int | bool , __SACL : PyACL , __bSaclDefaulted : int | bool ) -> None : ...
1292
1283
def SetSecurityDescriptorSacl (self , bSaclPresent , SACL : PyACL , bSaclDefaulted ) -> None : ...
1284
+ def SetSecurityDescriptorControl (self , ControlBitsOfInterest , ControlBitsToSet ) -> None : ...
1293
1285
def IsValid (self ) -> bool : ...
1294
1286
def GetLength (self ) -> None : ...
1295
1287
def IsSelfRelative (self ) -> bool : ...
1296
- def SetSecurityDescriptorControl (self , ControlBitsOfInterest , ControlBitsToSet ) -> None : ...
1297
1288
1298
1289
class PySERVER_INFO_100 :
1299
1290
@property
@@ -1661,34 +1652,20 @@ class PySMALL_RECT:
1661
1652
def Bottom (self ): ...
1662
1653
1663
1654
class PySTARTUPINFO :
1664
- @property
1665
- def dwX (self ) -> int : ...
1666
- @property
1667
- def dwY (self ) -> int : ...
1668
- @property
1669
- def dwXSize (self ) -> int : ...
1670
- @property
1671
- def dwYSize (self ) -> int : ...
1672
- @property
1673
- def dwXCountChars (self ) -> int : ...
1674
- @property
1675
- def dwYCountChars (self ) -> int : ...
1676
- @property
1677
- def dwFillAttribute (self ) -> int : ...
1678
- @property
1679
- def dwFlags (self ) -> int : ...
1680
- @property
1681
- def wShowWindow (self ) -> int : ...
1682
- @property
1683
- def hStdInput (self ) -> int : ...
1684
- @property
1685
- def hStdOutput (self ) -> int : ...
1686
- @property
1687
- def hStdError (self ) -> int : ...
1688
- @property
1689
- def lpDesktop (self ) -> str : ...
1690
- @property
1691
- def lpTitle (self ) -> str : ...
1655
+ dwX : int
1656
+ dwY : int
1657
+ dwXSize : int
1658
+ dwYSize : int
1659
+ dwXCountChars : int
1660
+ dwYCountChars : int
1661
+ dwFillAttribute : int
1662
+ dwFlags : int
1663
+ wShowWindow : int
1664
+ hStdInput : int
1665
+ hStdOutput : int
1666
+ hStdError : int
1667
+ lpDesktop : str
1668
+ lpTitle : str
1692
1669
1693
1670
class PySecBuffer :
1694
1671
@property
@@ -1703,6 +1680,7 @@ class PySecBuffer:
1703
1680
1704
1681
class PySecBufferDesc :
1705
1682
Version : Incomplete
1683
+ Buffer : Incomplete
1706
1684
def append (self , buffer ) -> None : ...
1707
1685
1708
1686
class PyTOKEN_GROUPS : ...
@@ -1722,17 +1700,18 @@ class PyTRIVERTEX:
1722
1700
@property
1723
1701
def Alpha (self ): ...
1724
1702
1703
+ # Properties Multiple* are ignored
1725
1704
class PyTRUSTEE :
1726
1705
@property
1727
- def TrusteeForm (self ): ...
1706
+ def TrusteeForm (self ) -> int : ...
1728
1707
@property
1729
- def TrusteeType (self ): ...
1708
+ def TrusteeType (self ) -> int : ...
1730
1709
@property
1731
- def Identifier (self ): ...
1710
+ def Identifier (self ) -> PySID : ...
1732
1711
@property
1733
- def MultipleTrustee (self ): ...
1712
+ def MultipleTrustee (self ) -> None : ...
1734
1713
@property
1735
- def MultipleTrusteeOperation (self ): ...
1714
+ def MultipleTrusteeOperation (self ) -> Literal [ 0 ] : ...
1736
1715
1737
1716
class PyTS_HANDLE : ...
1738
1717
@@ -2459,7 +2438,9 @@ class SERVICE_FAILURE_ACTIONS:
2459
2438
@property
2460
2439
def Actions (self ): ...
2461
2440
2462
- class SERVICE_STATUS : ...
2441
+ class SERVICE_STATUS :
2442
+ def __getitem__ (self , __i : int ) -> int : ...
2443
+
2463
2444
class TRACKMOUSEEVENT : ...
2464
2445
class ULARGE_INTEGER : ...
2465
2446
class WIN32_FIND_DATA : ...
@@ -3389,6 +3370,7 @@ class PyIDirectorySearch:
3389
3370
def GetColumn (self , handle , name : str ) -> tuple [Incomplete , Incomplete , Incomplete ]: ...
3390
3371
def GetNextColumnName (self ) -> None : ...
3391
3372
3373
+ @final
3392
3374
class PyIDispatch :
3393
3375
def Invoke (self , dispid , lcid , flags , bResultWanted , arg : tuple [Incomplete , ...]): ...
3394
3376
def InvokeTypes (
@@ -4679,6 +4661,7 @@ class PyIUniformResourceLocator:
4679
4661
def SetURL (self , URL , InFlags : int = ...) -> None : ...
4680
4662
def InvokeCommand (self , Verb , Flags : int = ..., hwndParent : int = ...): ...
4681
4663
4664
+ @final
4682
4665
class PyIUnknown :
4683
4666
def QueryInterface (self , iid , useIID : Incomplete | None = ...) -> PyIUnknown : ...
4684
4667
@@ -5788,7 +5771,7 @@ class PyCWinApp:
5788
5771
def LoadCursor (self , cursorId : PyResourceId ): ...
5789
5772
def LoadStandardCursor (self , cursorId : PyResourceId ): ...
5790
5773
def LoadOEMCursor (self , cursorId ): ...
5791
- def LoadIcon (self , idResource ) : ...
5774
+ def LoadIcon (self , idResource : int ) -> int : ...
5792
5775
def LoadStandardIcon (self , resourceName : PyResourceId ): ...
5793
5776
def OpenDocumentFile (self , fileName : str ) -> None : ...
5794
5777
def OnFileNew (self ) -> None : ...
0 commit comments