Native (C++):
HRESULT
ProcessRAWBuffer
(
void *
Data,unsigned long
Size,long *
bStopParsing)
;
Parameters
Data
Pointer to a raw buffer that may contain multiple packets. Use it to manually parse all packets. See MFCSample for more details.
Size
Total size of the raw buffer.
bStopParsing
Set to TRUE if you don't need USBMC to parse this buffer any more. That means that USBMC will not call methods like
OnPacketUp/OnPacketDown/OnUrb/OnGetDescriptorFromDevice/OnGetDescriptorFromEndpoint for all packets that are contained in buffer. That could be used for optimization if you manually parse this buffer.
Return Value
S_OK or standard OLE error code.