I\'ve got an issue using IDirectInputDevice8: I created the keyboard stuff like this code:
IDirectInputDevice8
hr = Key.pKeyboard->SetCooperativeLevel(winHandle,