public CRawInput(IntPtr parentHandle, bool captureOnlyInForeground) { AssignHandle(parentHandle); _keyboardDriver = new RawKeyboard(parentHandle, captureOnlyInForeground); _keyboardDriver.EnumerateDevices(); _devNotifyHandle = RegisterForDeviceNotifications(parentHandle); }