In WIN32API.INC what does the "AS ANY" in RegisterRawInputDevices mean? I've tried
all kinds of things in that position (the array name, pointer to the array, etc.) but I keep getting "Parameter mismatches definition."
DECLARE FUNCTION RegisterRawInputDevices LIB "USER32.DLL" ALIAS "RegisterRawInputDevices" (pRawInputDevices AS ANY, BYVAL uiNumDevices AS DWORD, BYVAL cbSize AS DWORD) AS LONG
My code is:
TIA, (PowerBASIC is great; I use it every day to automate all kinds of things.)
all kinds of things in that position (the array name, pointer to the array, etc.) but I keep getting "Parameter mismatches definition."
DECLARE FUNCTION RegisterRawInputDevices LIB "USER32.DLL" ALIAS "RegisterRawInputDevices" (pRawInputDevices AS ANY, BYVAL uiNumDevices AS DWORD, BYVAL cbSize AS DWORD) AS LONG
My code is:
Code:
GLOBAL xx AS RAWINPUTDEVICE ' : ' : DIM xx(1 TO 1) AS GLOBAL RAWINPUTDEVICE ' : ' : CASE %WM_INITDIALOG ' Initialization handler xx(1).usUsagePage=5 ' standard gamepad xx(1).usUsage=1 xx(1).dwFlags=0 xx(1).hwndTarget=%NULL szoxx???=SIZEOF(xx(1)) IF RegisterRawInputDevices <what goes here?>, 1, szoxx??? THEN ' ...
Comment