在你的类中加入下面的程序。```csharp public const int WM_DEVICECHANGE = 0x219; public const int DBT_DEVICEARRIVAL = 0x8000; public const int DBT_CONFIGCHANGECANCELED = 0x0019; publ...
// UsbHook.cpp : Defines the entry point for the application.//include "stdafx.h"include "Dbt.h"void DeviceChangeEventOpt(WPARAM wParam, LPARAMlParam){switch(wParam){caseDBT_CONFIG...
最新评论