ウィザードが作成した.cppで
#include "stdafx.h"
#define WINVER 0x0500
#include <DBT.H>
・・・
 DEV_BROADCAST_HDR dbhdr;
 ・・・
 RegisterDeviceNotification();
・・・
としたらコンパイル通って動くけど。
ちなみにVC6 sp6。