USB Port Monitoring Control
USB Monitoring Control - USB Device Data Monitoring ActiveX Component Library

INativeListener.OnClassEndpoint Method

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >
Declaration
Native (C++):
HRESULT  OnClassEndpoint ( _FILETIME *  fTime,void *  pData,unsigned long  Size,unsigned char  RequestTypeReservedBits,unsigned char  Request,unsigned short  Value,unsigned short  Index) ;
Parameters
fTime The time of the event. pData Pointer to a USBPACKET. Use it to manually parse all fields. See MFCSample for more details. Size Total size of USBPACKET and all payload data. Equals to nSize variable:
C++
          USBPACKET packet;
          ULONG nSize = packet->Size;

          USBPACKET_URB* pUrb = (USBPACKET_URB*)packet;
          ATLASSERT(pUrb->Size==nSize);
        
RequestTypeReservedBits Specifies a value, from 4 to 31 inclusive, that becomes part of the request type code in the USB-defined setup packet. This value is defined by USB for a class request or the vendor for a vendor request. Request Specifies the USB or vendor-defined request code for the device, interface, endpoint, or other device-defined target. Value Specifies a value, specific to Request, that becomes part of the USB-defined setup packet for the target. This value is defined by the creator of the code used in Request. Index Specifies the device-defined index, returned by a successful configuration request, if the request is for an endpoint or interface. Otherwise, Index must be zero.
Return Value
S_OK or standard OLE error code.
Remarks
Fired when URB packet with urb.UrbHeader.Function=URB_FUNCTION_CLASS_ENDPOINT is received. See _URB_CONTROL_VENDOR_OR_CLASS_REQUEST for more details. The library decodes several parameters from this packet (see above).
< PreviousTopNext >
Copyright © 2011 HHD Software. All rights reserved.