+
    Bi                        R t ^ RIHtHt ^ RIt^ RIt^ RIt^ RIt]! ]P                  ]P                  4      t	R t
]	! ]
4      t]P                  P                  P                  t]	]P                  3]n        ]P                  ]n        ]R8X  dM   ]! ]^4      '       g   ]! R4       ]! R4       ]P
                  ! R^]P(                  ^,          4      t^]^ &    K  R# )aY  Script used to test os.kill on Windows, for issue #1220212

This script is started as a subprocess in test_os and is used to test the
CTRL_C_EVENT and CTRL_BREAK_EVENT signals, which requires a custom handler
to be written into the kill target.

See http://msdn.microsoft.com/en-us/library/ms685049%28v=VS.85%29.aspx for a
similar example in C.
)wintypesWINFUNCTYPENc                |    V \         P                  8X  d    ^ # V \         P                  8X  d    ^ # \        R4       ^ # )z8Handle a sig event and return 0 to terminate the processzUNKNOWN EVENT)signalCTRL_C_EVENTCTRL_BREAK_EVENTprint)sigs   &//usr/lib/python3.14/test/win_console_handler.py_ctrl_handlerr      s=    
f!!!
 	 
''	'  	o    __main__z#Unable to add SetConsoleCtrlHandler)__doc__ctypesr   r   r   mmapsysBOOLDWORDHandlerRoutiner   ctrl_handlerwindllkernel32SetConsoleCtrlHandlerargtypesrestype__name__r   exitargvm r   r
   <module>r!      s    )    
 X]]HNN; m, ..DD "0(--!@   (  z q1134R 			"a!%AAaD  r   