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

INativeListener.OnSelectInterface Method

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >
Declaration
Native (C++):
HRESULT  OnSelectInterface ( _FILETIME *  fTime,void *  pData,unsigned long  Size,unsigned long  InterfaceNumber,unsigned char  AlternateSetting) ;
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);
      
InterfaceNumber Specifies the device-defined index identifier for this interface. AlternateSetting Specifies a device-defined index identifier that indicates which alternate setting this interface is using, should use, or describes.
Return Value
S_OK or standard OLE error code.
Remarks
Fired when URB packet with urb.UrbHeader.Function=URB_FUNCTION_SELECT_INTERFACE is received. See _URB_SELECT_INTERFACE for more details. The library decodes several parameters from this packet (see above).
< PreviousTopNext >
Copyright © 2011 HHD Software. All rights reserved.