hr = g_pMouse->SetCooperativeLevel( hDlg, dwCoopFlags );
the hDlg is a HWND associated with the window / form it was created in. Now
how do i get that handle in the simplesample code for example? Or can anyone
explain me how i create a directInputDevice for that window? I just dont get
it how it's done in that example, and pretty much all other programs use a
windows handle, no directInput :(