B
    u9aˆ  ã               @   s´   d dl mZmZ d dlZd dl Z d dlZd dlZeejejƒZdd„ Z	ee	ƒZ
e jjjZeejfe_eje_edkr°ee
dƒsŽedƒ edƒ e ddejd ¡Zded < xq¬W dS )	é    )ÚwintypesÚWINFUNCTYPENc             C   s$   | t jkrn| t jkrntdƒ dS )NzUNKNOWN EVENTr   )ÚsignalZCTRL_C_EVENTZCTRL_BREAK_EVENTÚprint)Zsig© r   ú)/usr/lib/python3.7/win_console_handler.pyÚ_ctrl_handler   s    

r   Ú__main__é   z#Unable to add SetConsoleCtrlHandleréÿÿÿÿ)Zctypesr   r   r   ZmmapÚsysZBOOLZDWORDZHandlerRoutiner   Zctrl_handlerZwindllZkernel32ZSetConsoleCtrlHandlerZargtypesZrestypeÚ__name__r   ÚexitÚargvÚmr   r   r   r   Ú<module>   s$   


