Some concept questions:
File handle questions:
hReadFile = CreateFile(FILE_NAME_ASCIIZ, %GENERIC_READ OR %GENERIC_WRITE, %FILE_SHARE_READ OR %FILE_SHARE_WRITE, BYVAL %NULL, %OPEN_EXISTING, %FILE_FLAG_OVERLAPPED, %NULL)
Using this file handle I can read just fine. And the overlapped part works with WaitForSingleObjest.
Should I use the same file handle to WriteFile? Or should I have a different, not overlapped, handle to write?
hHid = CreateFile(@pz, %GENERIC_READ OR %GENERIC_WRITE, %FILE_SHARE_READ OR %FILE_SHARE_WRITE, BYVAL %NULL, %OPEN_EXISTING, %NULL, %NULL)
What is the exact sequence that one calls the WinAPI to emulate the the transaction shown in the attached jpg sequence 18876 to 18892.
Should I start with HidD_SetOutputReport?
I have been trying to:
RESULT = WriteFile(BYVAL GLOBAL_FILE_HANDLE, WRITE_BUFFER, MY_OutputReportByteLength, BYTES_WRITTEN, MY_OVERLAPPED)
Where (in powerbasic)
WRITE_BUFFER = CHR$(&h03, &H05, &H55, &HAA, &HD1, &H03, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H00, &H00)
So I guess I have a couple of issues, am I using the correct file handle, am I sending the correct data and am I missing steps...
Thanks