@@ -29,6 +29,14 @@ if sys.platform == "win32":
2929 ERROR_PIPE_CONNECTED : Final = 535
3030 ERROR_SEM_TIMEOUT : Final = 121
3131
32+ if sys .version_info >= (3 , 15 ):
33+ EVENTLOG_AUDIT_FAILURE : Final = 16
34+ EVENTLOG_AUDIT_SUCCESS : Final = 8
35+ EVENTLOG_ERROR_TYPE : Final = 1
36+ EVENTLOG_INFORMATION_TYPE : Final = 4
37+ EVENTLOG_SUCCESS : Final = 0
38+ EVENTLOG_WARNING_TYPE : Final = 2
39+
3240 FILE_FLAG_FIRST_PIPE_INSTANCE : Final = 0x80000
3341 FILE_FLAG_OVERLAPPED : Final = 0x40000000
3442
@@ -232,6 +240,10 @@ if sys.platform == "win32":
232240 ) -> int : ...
233241 def ExitProcess (ExitCode : int , / ) -> NoReturn : ...
234242 def GetACP () -> int : ...
243+ if sys .version_info >= (3 , 15 ):
244+ def DeregisterEventSource (handle : int , / ) -> None : ...
245+ def GetOEMCP () -> int : ...
246+
235247 def GetFileType (handle : int ) -> int : ...
236248 def GetCurrentProcess () -> int : ...
237249 def GetExitCodeProcess (process : int , / ) -> int : ...
@@ -245,6 +257,10 @@ if sys.platform == "win32":
245257 def OpenProcess (desired_access : int , inherit_handle : bool , process_id : int , / ) -> int : ...
246258 def PeekNamedPipe (handle : int , size : int = 0 , / ) -> tuple [int , int ] | tuple [bytes , int , int ]: ...
247259 def LCMapStringEx (locale : str , flags : int , src : str ) -> str : ...
260+ if sys .version_info >= (3 , 15 ):
261+ def RegisterEventSource (unc_server_name : str | None , source_name : str , / ) -> int : ...
262+ def ReportEvent (handle : int , type : int , category : int , event_id : int , string : str , / ) -> None : ...
263+
248264 def UnmapViewOfFile (address : int , / ) -> None : ...
249265
250266 @overload
0 commit comments