Esempio n. 1
0
        private static void Unhook()
        {
            if (_dlgRunReport != null)
            {
                _dlgRunReport.ReleaseHandle();
                _dlgRunReport = null;
            }

            if (_dlgReports != null)
            {
                _dlgReports.ReleaseHandle();
                _dlgReports = null;
            }

            if (_hHook != 0)
            {
                Win32.UnhookWindowsHookEx(_hHook);
                _hHook = 0;
            }
        }