OnWriteData Event in Serial Port Sniffer AX Control

The OnWriteData event occurs when other application writes data to the sniffed port. (See OnRead event)  

  BYTE *Buf // Pointer to the buffer
  LONG *Count // Length of the buffer that receives data

  Buf     [in, out] Pointer to the buffer that contain Write information   Count     [in, out] Pointer to buffer length.


Additionally you can change these values. See example.


void OnWriteData (BYTE* Buf, LONG* Count)

  delete[] Buf ;  
  Buf = new Buf[10];  
  FillMemory (Buf, 10, 10);  
  *Count = 10  


See also

OnRead event
OnWrite event