Interceptor.Input.Load C# (CSharp) Method

Load() public method

public Load ( ) : bool
return bool
        public bool Load()
        {
            if (IsLoaded) return false;

            context = InterceptionDriver.CreateContext();

            if (context != IntPtr.Zero)
            {
                callbackThread = new Thread(new ThreadStart(DriverCallback));
                callbackThread.Priority = ThreadPriority.Highest;
                callbackThread.IsBackground = true;
                callbackThread.Start();

                IsLoaded = true;

                return true;
            }
            else
            {
                IsLoaded = false;

                return false;
            }
        }

Usage Example

Example #1
0
        public InputCapture(ClientSession client)
        {
            this.client = client;
            this.input = new Input();

            input.KeyboardFilterMode = KeyboardFilterMode.All;

            input.Load();

            input.OnKeyPressed += new EventHandler<KeyPressedEventArgs>(OnKeyPressed);
        }
All Usage Examples Of Interceptor.Input::Load