Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
for i := 0 to bufferSize-1 do begin buffer[i+SizeOf(TSingleTransfernEP0)] := pBuffer^; // buffer direkt hinter den SINGLE_TRANFER record schreiben end;
if not DeviceIoControl( handle,IOCTL_ADAPT_SEND_NON_EP0_TRANSFER, @buffer, bufferSize+SizeOf(SINGLE_TRANSFER), @buffer, bufferSize+SizeOf(SINGLE_TRANSFER), dwBytes,nil) then raise ECyUSBException.Create('Error #17 during nonEP0 control Transfer : ' + IntToStr(getLastError())); end;
The SINGLE_TRANSFER structure seems to be correct. It works fine for EP0 Transfers. I also tried IOCTL_ADAPT_SEND_NON_EP0_DIRECT, which gives the same error. Can someone tell me what I'm doing wrong ?