HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/test/__pycache__/win_console_handler.cpython-311.pyc
�

��Vc���r�dZddlmZmZddlZddlZddlZddlZeejej��Z	d�Z
e	e
��Zejj
jZe	ejfe_eje_edkrGeed��sed��ed��ejddejd��Zded<		�dS)	aYScript 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�h�|tjkrn |tjkrntd��dS)z8Handle a sig event and return 0 to terminate the processz
UNKNOWN EVENTr)�signal�CTRL_C_EVENT�CTRL_BREAK_EVENT�print)�sigs �,D:\Python311\Lib\test\win_console_handler.py�
_ctrl_handlerrs;��
�f�!�!���	��'�	'���
�o�����1��__main__�z#Unable to add SetConsoleCtrlHandler���)�__doc__�ctypesrrr�mmap�sys�BOOL�DWORD�HandlerRoutiner�ctrl_handler�windll�kernel32�SetConsoleCtrlHandler�argtypes�restype�__name__r	�exit�argv�m�r
r�<module>r#s,����)�(�(�(�(�(�(�(�
�
�
�
�
�
�
�
�����
�
�
�
���X�]�H�N�;�;��
�
�
��~�m�,�,���
�.�D��"0�(�-�!@��� (�
����z��
� � ��q�1�1��
��3�4�4�4���R����	��	�"�a���!��%�%�A��A�a�D�
��
�
�
r