473,398 Members | 2,404 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,398 software developers and data experts.

.NET support for USB devices?

These days, many devices connect to the computer using USB interface.
For example, my MP3 player and printer is connected through USB. I
searched for 'USB' in the Object Browser but there was virtually no
result. I could find only System.IO.Port and it didn't seem to related
to USB. I want to get notifed when a USB mass storage device is
connected. Is there any .NET support for this kind of operations or
should I look for those tricky Windows APIs?

Jan 12 '06 #1
2 2022
To be more specific, I don't need those low-level I/O operations. All I
want to do is,

1. To get notified when a USB mass storage gets connected and
disconnected.
Which works as a removable disk on Windows.

2. To detect the type of that USB mass storage.
Many different kinds of devices work as USB mass storage, such as
camaras, mp3 players. So I need to figure out whether it is a camara,
mp3 or so on.

I can copy files using normal .NET IO methods.
Sin Jeong-hun wrote:
These days, many devices connect to the computer using USB interface.
For example, my MP3 player and printer is connected through USB. I
searched for 'USB' in the Object Browser but there was virtually no
result. I could find only System.IO.Port and it didn't seem to related
to USB. I want to get notifed when a USB mass storage device is
connected. Is there any .NET support for this kind of operations or
should I look for those tricky Windows APIs?


Jan 12 '06 #2
Hi,

AFAIK, there are no built in classes for accessing USB devices (But there is
a new SerialPort class).

These might help:
http://msdn.microsoft.com/coding4fun...u/default.aspx
http://msmvps.com/blogs/coad/archive/2005/03.aspx

--
HTH,
Rakesh Rajan
MVP, MCSD
http://www.rakeshrajan.com/
"Sin Jeong-hun" wrote:
To be more specific, I don't need those low-level I/O operations. All I
want to do is,

1. To get notified when a USB mass storage gets connected and
disconnected.
Which works as a removable disk on Windows.

2. To detect the type of that USB mass storage.
Many different kinds of devices work as USB mass storage, such as
camaras, mp3 players. So I need to figure out whether it is a camara,
mp3 or so on.

I can copy files using normal .NET IO methods.
Sin Jeong-hun wrote:
These days, many devices connect to the computer using USB interface.
For example, my MP3 player and printer is connected through USB. I
searched for 'USB' in the Object Browser but there was virtually no
result. I could find only System.IO.Port and it didn't seem to related
to USB. I want to get notifed when a USB mass storage device is
connected. Is there any .NET support for this kind of operations or
should I look for those tricky Windows APIs?


Jan 12 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: A. Fuentes | last post by:
Fellow Oracle Netters: I have the following problem: Enviroment: Oracle9i/AIX5.2/Veritas vxvm I am trying to create an Oracle database using RAW devices UNDER the Veritas vxvm.(Veritas...
21
by: kaeli | last post by:
Hey all, Does anyone know if all the newer browsers support XHTML? My main target is IE6/NN6+(firefox/mozilla/etc), but I'd like to know if Safari, Opera, Konqueror, and other browsers also...
18
by: Bud Cookson | last post by:
We are in the process of developing the requirements for a new medical device and the question has been raised about what development tool/language should be used. The application(s) will be...
42
by: Jim Smith | last post by:
Note the cross-posting - but no flame wars please. This question was prompted by a thread on the a postgres mailing list during which someone (Gregory Williamson) claimed <quote> raw devices,...
46
by: H.A. Sujith | last post by:
Why doesn't the standard library provide (at least basic) networking facilities using TCP/IP ?
22
by: Matthew Louden | last post by:
I want to know why C# doesnt support multiple inheritance? But why we can inherit multiple interfaces instead? I know this is the rule, but I dont understand why. Can anyone give me some concrete...
0
by: gewe | last post by:
I am using the following code to enumerate devices on the local computer: ManagementObjectSearcher searcher = new ManagementObjectSearcher("SELECT * from Win32_PnPEntity");...
3
by: stacy | last post by:
I am developing an application that must look out over TCP on an ethernet connection to locate our proprietary devices. The Web application and the devices are communicating over ethernet with...
2
by: Johnson | last post by:
While I have done a substantial amount of ASP.NET programming, I have only dabbled with AJAX (update panels and a 3rd party JSON setup - jayrock - that directly updates the DOM). In any case, I'm...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.