Reply to Memset
If you don't have an account, just leave the password field blank.
This line does what I believe it does?
memset(&jinfo,0,sizeof(JOYINFOEX));
Set all bytes of "jinfo" to zeros?
memset(&jinfo,0,sizeof(JOYINFOEX));
Set all bytes of "jinfo" to zeros?