Exemplo n.º 1
0
		/// <include file='ManagedHooks.xml' path='Docs/SystemHook/ctor/*'/>
		public SystemHook(HookTypes type)
		{
			_type = type;

			_processHandler = new HookProcessedHandler(InternalHookCallback);
			SetCallBackResults result = SetUserHookCallback(_processHandler, _type);
			if (result != SetCallBackResults.Success)
			{
				this.Dispose();
				GenerateCallBackException(type, result);
			}
		}
Exemplo n.º 2
0
        /// <include file='Internal.xml' path='Docs/SystemHook/ctor/*'/>
        public SystemHook(HookTypes type)
        {
            this.type = type;

            processHandler = new HookProcessedHandler(InternalHookCallback);
            SetCallBackResults result = SetUserHookCallback(processHandler, type);

            if (result != SetCallBackResults.Success)
            {
                this.Dispose();
                GenerateCallBackException(type, result);
            }
        }
Exemplo n.º 3
0
 private static extern SetCallBackResults SetUserHookCallback(HookProcessedHandler hookCallback, HookTypes hookType);
Exemplo n.º 4
0
		private static extern SetCallBackResults SetUserHookCallback(HookProcessedHandler hookCallback, HookTypes hookType);