i get an access violation at dinput8.dll when i use sizeof(TKeyBuff) or sizeof(KeyBuff^)

i'm beggining to hate directinput.