hmm, still doesn't work. i'm beginning to think something else is wrong, maybe the part where i get the handle (C version above, VB version below):
'DevName= "\\\\.\\PPJoyIOCTL1";DevName = "\\.\PPJoyIOCTL1"'h= CreateFile(DevName,GENERIC_WRITE,FILE_SHARE_WRITE,NULL,OPEN_EXISTING,0,NULL);h = CreateFile(DevName, GENERIC_WRITE, FILE_SHARE_WRITE, ByVal CLng(0), OPEN_EXISTING, 0, ByVal CLng(0))
i do get a handle in return, so i think it's weird if this is why it fails.
As allways, any help is greatly apreciated!
[Edited by - -Fruz- on July 29, 2006 7:29:31 PM]