Exemplo n.º 1
0
            public void register(SignalHandler handler)
            {
                _handler  = handler;
                _callback = new CtrlCEventHandler(callback);

                bool rc = SafeNativeMethods.SetConsoleCtrlHandler(_callback, true);

                Debug.Assert(rc);
            }
Exemplo n.º 2
0
            public void register(SignalHandler handler)
            {
                _handler = handler;
                _callback = new CtrlCEventHandler(callback);

                bool rc = NativeMethods.SetConsoleCtrlHandler(_callback, true);
                Debug.Assert(rc);
            }
Exemplo n.º 3
0
 SetConsoleCtrlHandler(CtrlCEventHandler eh, [MarshalAsAttribute(UnmanagedType.Bool)]bool add);
Exemplo n.º 4
0
 SetConsoleCtrlHandler(CtrlCEventHandler eh, [MarshalAsAttribute(UnmanagedType.Bool)] bool add);