473,394 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Why is it that this VB.Net code only works for detecting flash disks?

Why is it that this VB.Net code only works for detecting flash disks?

[Select Case m.WParam
[Case WM_DEVICECHANGE_WPPARAMS.DBT_DEVICEARRIV…]
[MsgBox("USB Inserted")]
[Case WM_DEVICECHANGE_WPPARAMS.DBT_DEVICEREMOV…]
[MsgBox("USB Removed")]
[End Select]

What would be the possible way to detect the insertion and removal of other USB Peripherals such as mouse and keyboard?

Please and Thank You
Jan 9 '12 #1
1 1546
PsychoCoder
465 Expert Mod 256MB
Take a look at this I think it might help
Jan 10 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: J Dubal | last post by:
Hello good people, Following works in FC1 (python-2.2.3-7, postgresql-7.3.4-11, kernel-2.4.22-1.2194.nptl, pyPgSQL-2.4) from pyPgSQL import PgSQL conn =...
2
by: vch | last post by:
Here's an example from some book: def foo(n): s = def bar(i): s += i return s return bar what I don't understand is how this example works, taking into account
4
by: lawrence | last post by:
Can anyone tell me why this code works in Netscape 7.1 but not in IE??? <SCRIPT type='text/javascript'> function makeVisible(nameOfDiv) {...
5
by: ojvm | last post by:
ok. thanks again for the time spend reading this. this code adds 2 controls in html form but it places in top of the form. i want this control1 control2 control1 control2 control1 ...
1
by: Avi | last post by:
Hi All. This code works very fine in Firefox but not in I.E. Can anybody help me out? it gives ... "Unknown Runtime Error" in I.E. This code ... Stores N*2 Matrix at Client Side & provide the...
5
by: Notgiven | last post by:
Both of the following code smippets work in IE but not in Firefox. The javascript error for both scripts below is "x has not properties". The select boxes are shown as arrays since they are...
4
by: sgurminder | last post by:
Can anyone explain how this shell spawning code works...... I am not able to figure out exactly..... I got this from Aleph1's Smashing the stack file. :) Here it is...
1
by: rn5a | last post by:
I want an ASP app to retrieve records from a MS-Access database table but display them in a HTML table but I want the HTML table table to display only 7 records in a row (<tr>...</tr>) in 7...
5
gpraghuram
by: gpraghuram | last post by:
HI all, I wrote the following piece of code class A { A(){cout<<"ctor"<<endl; ~A(){cout<<"dtor"<<endl; }; int main()
8
by: Luis Angel Fernandez Fernandez | last post by:
Hi why this code works? #include <iostream> class A { public: void foo() {std::cout << "hi" << std::endl; }; };
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.