Example #1
0
        protected override void OnStart()
        {
            _module   = NativeModule.Load(_moduleName);
            _callback = _module.GetProcedureAddress(_functionName);

            _hook = NativeMethods.SetWindowsHookEx(_hookType, _callback, _module, _threadId);
        }