473,414 Members | 1,594 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,414 software developers and data experts.

Setup api and microphone detection

Ram
Hello,
I am trying to detect the USB device arrival and removal. I have
registered to receive the device change message. I am able to get the
interface class and also the name. But I am unable to get the type of class.
IE when a microphone is inserted, I am trying to find whether the newly
inserted device is a kind of "sound, video and game controller" and if yes
then I am refreshing my application.

None of the setpdigetregistryproperty is returning me this string. How to
get this?

Thanks
Ram
Dec 1 '07 #1
2 2911
Hi Ram,

i once wrote a application to detect device changes on my system.
The code is written on the fly and is not very "clean" but runs stable.
I only tested it on windows XP systems but it was usefull for my
work. It was a demonstration how to implement a device watcher
in Visual C++ (6.0) for my programming class. You can easily
translate it into C#, it should be no match to do this:

http://entwicklung.junetz.de/project...iceWatcher.zip

Hope this helps,...
Regards

Kerem
--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
Dec 1 '07 #2
Ram
Hi Kerem,
Thank you very much. I have solved it. The problem was that, I thought
only one event will be fired when an usb object is inserted but later I
could find for each guid, am getting the event. So after getting the usb
guid, I am getting the correct device class and description.

Also, In XP, the SDRP_LOCATION from SetupDiGetDeviceRegistryProperty (),
returns the device name (for eg, Logitech, Microsoft Live Chat etc ) but in
Vista, the location information is different. What it is the difference?

Thanks again

Ram

"Kerem Gümrükcü" <ka*******@hotmail.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
Hi Ram,

i once wrote a application to detect device changes on my system.
The code is written on the fly and is not very "clean" but runs stable.
I only tested it on windows XP systems but it was usefull for my
work. It was a demonstration how to implement a device watcher
in Visual C++ (6.0) for my programming class. You can easily
translate it into C#, it should be no match to do this:

http://entwicklung.junetz.de/project...iceWatcher.zip

Hope this helps,...
Regards

Kerem
--
-----------------------
Beste Grüsse / Best regards / Votre bien devoue
Kerem Gümrükcü
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."

Dec 1 '07 #3

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

Similar topics

2
by: Darwin Fisk | last post by:
I have an app that is deployed that uses .config file settings. I have an update of that app that I am installing using a setup and deployment project. The basic setup process works fine. Now I...
1
by: Wilson Ricardo Passos Oliveira | last post by:
Hi fellows, I have two simple questions regarding the Framework's deploy and the Setup and Deploy Projects: 1. As I've read in another posts and newsgroups (and as I can imagine), VS.NET...
5
by: Tangerine | last post by:
Hello! Can someone tell me how to make a function that returns the sound frequency recorded by the microphone in the last moment? I use Dev-C++ and I'm a total newbie if it's important.
0
by: Dr. Zharkov | last post by:
Hello. The following program does not work for me: 1. We load components of Microsoft Agent and disconnect a computer from Internet. 2. In VB .NET we create the project, appears Form1. 3. On...
0
by: Sakharam Phapale | last post by:
How to detect microphone status using .NET?
1
by: Vikash Yadav | last post by:
hi Can any body tell me how to detect microphone in VB.Net or is there any resdy made application for this. Thanks and regards vikas
1
by: rajibnsu | last post by:
Hi, this is abu syed khan again. i want to write a program in c# that takes input from microphone and then give output through printer port. i can give output through a printer port. but the problem...
3
by: Porkie999 | last post by:
hi i created a program in vb.net 2005 that is meant to allow microphone activity i.e you read the lyrics to a song on the screen and you are meant to be able to sing to it through a microphone like...
0
by: roopaloswal | last post by:
Hi All, I need to record audio captured from microphone to the local file system .Is it possible? I am trying to use NetConnect() to connect to local file system. But its throwing error. I...
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
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.