adds a console ctrl handler . concode_field_sep ConsoleCtrlHandler handler concode_elem_sep int CTRL_CLOSE_EVENT concode_elem_sep Kernel32Library instance concode_elem_sep ESLogger logger concode_elem_sep List<NativeHandlerCallback> callbacks concode_field_sep boolean SetConsoleCtrlHandler concode_elem_sep boolean callback concode_elem_sep boolean handle concode_elem_sep Kernel32Library getInstance concode_elem_sep ImmutableList<Object> getCallbacks
boolean function ( ConsoleCtrlHandler arg0 ) { boolean loc0 = false ; if ( arg0 != null ) { NativeHandlerCallback loc1 = new NativeHandlerCallback ( arg0 ) ; loc0 = SetConsoleCtrlHandler ( loc1 , true ) ; if ( loc0 ) { callbacks . add ( loc1 ) ; } } return loc0 ; }