1、C#的usb通讯编程usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.IO;namespaceU盘更新{ publicpartialclassForm1:Form { public const intWM_DEVICECHANGE=0x219; public
2、const intDBT_DEVICEARRIVAL=0x8000; public const intDBT_CONFIGCHANGECANCELED=0x0019; public const intDBT_CONFIGCHANGED=0x0018; public const intDBT_CUSTOMEVENT=0x8006; public const intDBT_DEVICEQUERYREMOVE=0x8001; public const intDBT_DEVICEQUERYREMOVEFAIL
3、ED=0x8002; public const intDBT_DEVICEREMOVECOMPLETE=0x8004; public const intDBT_DEVICEREMOVEPENDING=0x8003; public const intDBT_DEVICETYPESPECIFIC=0x8005; public const intDBT_DEVNODES_CHANGED=0x0007; public const intDBT_QUERYCHANGECONFIG=0x0017;