コード例 #1
0
ファイル: SystemHook.cs プロジェクト: Season02/MK2.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);
			}
		}
コード例 #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);
            }
        }
コード例 #3
0
 private static extern SetCallBackResults SetUserHookCallback(HookProcessedHandler hookCallback, HookTypes hookType);
コード例 #4
0
ファイル: SystemHook.cs プロジェクト: Season02/MK2.0
		private static extern SetCallBackResults SetUserHookCallback(HookProcessedHandler hookCallback, HookTypes hookType);