#include "stdafx.h"
#include "Windows.h"
#include "winuser.h"
#include "Dbt.h"int main(int argc, char* argv[])
{ HDEVNOTIFY WdmNotificationHandle;
DEV_BROADCAST_DEVICEINTERFACE dbch;
printf("Hello World!\n");
return 0;
}--------------------Configuration: mytest1 - Win32 Debug--------------------
Compiling...
mytest1.cpp
E:\mytest1\mytest1.cpp(14) : error C2065: 'HDEVNOTIFY' : undeclared identifier
E:\mytest1\mytest1.cpp(14) : error C2146: syntax error : missing ';' before identifier 'WdmNotificationHandle'
E:\mytest1\mytest1.cpp(14) : error C2065: 'WdmNotificationHandle' : undeclared identifier
E:\mytest1\mytest1.cpp(15) : error C2065: 'DEV_BROADCAST_DEVICEINTERFACE' : undeclared identifier
E:\mytest1\mytest1.cpp(15) : error C2146: syntax error : missing ';' before identifier 'dbch'
E:\mytest1\mytest1.cpp(15) : error C2065: 'dbch' : undeclared identifier
Error executing cl.exe.