#NEWLINE# @ classmethod #NEWLINE# def callback( cls , handle , proc_id ) : #NEWLINE# #INDENT# curr_proc_id = ctypes . c_long ( ) #NEWLINE# ctypes . windll . user32 . GetWindowThreadProcessId ( handle , ctypes . byref ( curr_proc_id ) ) #NEWLINE# if ( curr_proc_id . value == proc_id ) : #NEWLINE# #INDENT# cls . same_proc_handles . add ( handle ) #NEWLINE# #UNINDENT# return True