#NEWLINE# @ staticmethod #NEWLINE# def create_interrupt_event( ) : #NEWLINE# #INDENT# ' Create an interrupt event handle.\n\n        The parent process should use this static method for creating the\n        interrupt event that is passed to the child process. It should store\n        this handle and use it with ``send_interrupt`` to interrupt the child\n        process.\n        ' #NEWLINE# class SECURITY_ATTRIBUTES ( ctypes . Structure ) : #NEWLINE# #INDENT# _fields_ = [ ( 'nLength' , ctypes . c_int ) , ( 'lpSecurityDescriptor' , ctypes . c_void_p ) , ( 'bInheritHandle' , ctypes . c_int ) ] #NEWLINE# #UNINDENT# sa = SECURITY_ATTRIBUTES ( ) #NEWLINE# sa_p = ctypes . pointer ( sa_p ) #NEWLINE# sa . nLength = ctypes . sizeof ( SECURITY_ATTRIBUTES ) #NEWLINE# sa . lpSecurityDescriptor = 0 #NEWLINE# sa . bInheritHandle = 1 #NEWLINE# return ctypes . windll . kernel32 . CreateEventA ( sa_p , False , False , '' )