Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Detecting Hardware Insertion and/or Removal

, 19 Jun 2006
A user-mode application to detect hardware add/remove with WM_DEVICECHANGE and RegisterDeviceNotification()
hwdetect.zip
HWDetect
Debug
HWDetect.aps
HWDetect.ncb
HWDetect.suo
Release
res
HWDetect.ico
HWDetect.manifest
hwdetect_exe.zip
HWDetect.exe
hwdetect_src.zip
HWDetect.ico
HWDetect.manifest
<html>
<head>
<META HTTP-EQUIV="Content-Type" content="text/html; charset=big5">
</head>
<body>
<pre>
<table width=100% bgcolor=#CFCFE5><tr> <td> <font face=arial size=+3>
Build Log
</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>
<h3>------- Build started: Project: HWDetect, Configuration: Debug|Win32 -------
</h3>
</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>
Command Lines
</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>This edition of Visual C++ does not support the optimizing compiler.
Creating temporary file "c:\Dev\HWDetect\Debug\RSP000006.rsp" with contents
[
/D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "_AFXDLL" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Zc:wchar_t /Yu"stdafx.h" /Fp"Debug/HWDetect.pch" /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /c /Wp64 /ZI /TP
.\HWDetectDlg.cpp
.\HWDetect.cpp
]
Creating command line "cl.exe @c:\Dev\HWDetect\Debug\RSP000006.rsp /nologo"
Creating temporary file "c:\Dev\HWDetect\Debug\RSP000007.rsp" with contents
[
/D "WIN32" /D "_WINDOWS" /D "_DEBUG" /D "_AFXDLL" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Zc:wchar_t /Yc"stdafx.h" /Fp"Debug/HWDetect.pch" /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /c /Wp64 /ZI /TP
.\stdafx.cpp
]
Creating command line "cl.exe @c:\Dev\HWDetect\Debug\RSP000007.rsp /nologo"
Creating command line "rc.exe /d "_DEBUG" /d "_AFXDLL" /l 0x409 /I "Debug" /fo"Debug/HWDetect.res" .\HWDetect.rc"
Creating temporary file "c:\Dev\HWDetect\Debug\RSP000008.rsp" with contents
[
/OUT:"Debug/HWDetect.exe" /INCREMENTAL /NOLOGO /DEBUG /PDB:"Debug/HWDetect.pdb" /SUBSYSTEM:WINDOWS /MACHINE:X86 Setupapi.lib
.\Debug\HWDetect.obj
.\Debug\HWDetectDlg.obj
.\Debug\stdafx.obj
.\Debug\HWDetect.res
]
Creating command line "link.exe @c:\Dev\HWDetect\Debug\RSP000008.rsp"
</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>
Output Window
</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Compiling...
stdafx.cpp
Compiling...
HWDetectDlg.cpp
HWDetect.cpp
Generating Code...
Compiling resources...
Linking...
</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>
Results
</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>
Build log was saved at "file://c:\Dev\HWDetect\Debug\BuildLog.htm"
HWDetect - 0 error(s), 0 warning(s)</pre></table><table   width=100% height=20 bgcolor=#CFCFE5><tr><td><font face=arial size=+2>
</font></table></body></html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Sam NG

Hong Kong Hong Kong
No Biography provided

| Advertise | Privacy | Mobile
Web02 | 2.8.140922.1 | Last Updated 19 Jun 2006
Article Copyright 2006 by Sam NG
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid