IOCTL_USBTMC_RESET_PIPE 0x8000_201C Clears a Halt condition on a pipe. IOCTL_USBTMC_SEND_REQUEST 0x8000_2080 Sends an arbitrary request to the device control endpoint. Gets the most recent error IOCTL_USBTMC_GET_LAST_ERROR 0x8000_2088 returned from the lower-level USB driver. Table -- USBTMC IOCTL codes All DeviceIoControl() requests have the following parameters. Parameter Type Parameter Name Description HANDLE hDevice Device handle, obtained by calling CreateFile. DWORD dwControlCode Operation control code. One of the IOCTL’s in Table 1. LPVOID lpInBuffer Input data buffer DWORD nInBufferSize Size of input data buffer DWORD lpOutBuffer Output data buffer Size of output data buffer DWORD nOutBufferSize LPDWORD lpBytesReturned Pointer to a location to receive the number of bytes returned. Optional pointer to an OVERLAPPED structure LPOVERLAPPED lpOverlapped (described in the Windows Platform SDK documentation). Table -- DeviceIoControl parameters IOCTL_USBTMC_GETINFO Returns information about the USBTMC driver. Parameter Name Description hDevice Device handle, obtained by calling CreateFile. dwControlCode IOCTL_USBTMC_GETINFO lpInBuffer NULL nInBufferSize 0 lpOutBuffer Output data buffer. Pointer to a structure. USBTMC_DRV_INFO nOutBufferSize Size of output data buffer. Must be sizeof(USBTMC_DRV_INFO). Pointer to a location to receive the number of bytes returned. Optional pointer to an structure (described in the Windows lpOverlapped OVERLAPPED Platform SDK documentation).
IOCTL_USBTMC_RESET_PIPE 0x8000_201C Clears a Halt condition on a pipe. IOCTL_USBTMC_SEND_REQUEST 0x8000_2080 Sends an arbitrary request to the device control endpoint. IOCTL_USBTMC_GET_LAST_ERROR 0x8000_2088 Gets the most recent error returned from the lower-level USB driver. Table -- USBTMC IOCTL codes All DeviceIoControl() requests have the following parameters. Parameter Type Parameter Name Description HANDLE hDevice Device handle, obtained by calling CreateFile. DWORD dwControlCode Operation control code. One of the IOCTL’s in Table 1. LPVOID lpInBuffer Input data buffer DWORD nInBufferSize Size of input data buffer DWORD lpOutBuffer Output data buffer DWORD nOutBufferSize Size of output data buffer LPDWORD lpBytesReturned Pointer to a location to receive the number of bytes returned. LPOVERLAPPED lpOverlapped Optional pointer to an OVERLAPPED structure (described in the Windows Platform SDK documentation). Table -- DeviceIoControl parameters IOCTL_USBTMC_GETINFO Returns information about the USBTMC driver. Parameter Name Description hDevice Device handle, obtained by calling CreateFile. dwControlCode IOCTL_USBTMC_GETINFO lpInBuffer NULL nInBufferSize 0 lpOutBuffer Output data buffer. Pointer to a USBTMC_DRV_INFO structure. nOutBufferSize Size of output data buffer. Must be sizeof(USBTMC_DRV_INFO). Pointer to a location to receive the number of bytes returned. lpOverlapped Optional pointer to an OVERLAPPED structure (described in the Windows Platform SDK documentation).
Ivi-6%202_USBTMC_2018-11-01.docx