Questions tagged [plug-and-play]
36 questions
44
votes
10 answers
Device misdetected as serial mouse
I'm working on a device which communicates with a PC through a (virtual) serial port. The problem is that the data we are sending occasionally gets incorrectly identified by Windows as a bus mouse, after which the "Microsoft Serial Ballpoint" driver…

doynax
- 4,285
- 3
- 23
- 19
16
votes
3 answers
How to identify what device was plugged into the USB slot?
I want to detect when the user plugs in or removes a USB sound card. I've managed to actually catch the event when this happens, but I can't tell what just got plugged in.
I tried an approach based on this question:
string query =
"SELECT *…

AngryHacker
- 59,598
- 102
- 325
- 594
8
votes
1 answer
Write file to a PNP device connected to a Windows PC
By plugging in a PNP device to a Windows PC I want to know if the device supports a feature of data transferring. I am majoraly interested in pushing some content to device.
So, for example when I am plugging in a Windows Phone I can see over…

Yaugen Vlasau
- 2,148
- 1
- 17
- 38
7
votes
2 answers
How do I have plugin architecture in Ruby on Rails?
I have to built a social networking site on Ruby on Rails. The features in the site may change from time to time; so we will need to add/remove features with ease. Moreover, we may be building another social networking site. Due to these reasons, we…

sv_in
- 13,929
- 9
- 34
- 55
4
votes
2 answers
Powershell not allowing me to use disable-pnpdevice with Bluetooth devices
I asked this question a few days ago,
How to connect and remove bluetooth in windows powerhell, but whenever I try running the code:
$device = Get-PnpDevice | Where-Object {$_.Class -eq "Bluetooth" -and $_.FriendlyName -eq "MX Master…

AllAwesome497
- 190
- 2
- 3
- 14
4
votes
3 answers
Java SE - Clever way to implement "plug and play" for different library modules
I'm trying to do something clever. I am creating a weather application in which we can replace the weather API with another weather API without affecting the code base. So I started with a Maven project with multiple modules.
I have a Base…

Patricia
- 5,019
- 14
- 72
- 152
3
votes
3 answers
Detect plugged USB devices using WqlEventQuery and retrive their descriptive information
I have play around about WqlEventQuery in purpose to identify a device plugged in USB
var query = new WqlEventQuery();
query.EventClassName = "__InstanceOperationEvent";
query.WithinInterval = new TimeSpan(0, 0, 2);
query.Condition =…

Yaugen Vlasau
- 2,148
- 1
- 17
- 38
3
votes
1 answer
c# receive plug and play events
I was wondering if there are any examples and/or documentation on how to handle Plug and Play event messages used in Windows. Ideally what I am trying to accomplish is to be able to have my application detect a device that has been connected to a…

Jimmy
- 941
- 2
- 8
- 27
2
votes
1 answer
powershell command to enable/disable logitech unifying dongle
I'm trying to run the following powershell command as administrator to arbitrarily enable and disable the Logictech dongle for my keyboard and mouse. Here's what I'm trying to do:
PS C:\> Get-PnpDevice -FriendlyName "Logitech USB Input Device" |…

Bimo
- 5,987
- 2
- 39
- 61
1
vote
1 answer
How to detect device on network?
Some printers include a CD which is able to detect a device without an IP address assigned or with an invalid IP in the LAN.
We are developing an appliance whishing to be able for the user act in the same way: they connect the appliance on network…

FerranB
- 35,683
- 18
- 66
- 85
1
vote
1 answer
How to log "new pnp devices" events to console on Windows?
I want to write something like nestat (that log new tcp connections to console) but for pnp devices with powershell.
Is there an API method "to subscribe to some kind of events bus" specific to PnP and get "connected" and "disconnected" events?
Or…

Roman Pokrovskij
- 9,449
- 21
- 87
- 142
1
vote
1 answer
How to stop a Plug-and-Play filter driver on demand?
I am developing a filter driver under Windows. The driver is PnP-aware to receive device notifications and it also creates a control device to communicate with an accompanying usermode service via IOCTLs.
As far as I understand, driver's lifetime is…

FunkyLoiso
- 113
- 4
1
vote
1 answer
Accessing the files of the Plug and Play android device via WIN API
Let me keep my explanation simple. I am writing a simple windows service, to detect android devices connected to the computer via USB and access the device's memory to read camera photos.
Using RegisterDeviceNotification() in the WIN API we can get…

sp497
- 2,363
- 7
- 25
- 43
1
vote
1 answer
Programming a plug and play device
Does anyone know how to go about programming a chip in order to make it plug and play? i.e how to include the PNPID in the hardware etc? The external device shall be interacting via the USB port.
Any help would be much appreciated.
Thanks in…

RM_90
- 11
- 1
1
vote
1 answer
C++ Windows 7 Get Symbolic Names of Installed drivers
I have an application, that needs to talk to a piece of custom hardware. I know roughly the format that the driver will register a symbolic name, however based on some physical switches on the card, the card will have a somewhat dynamic name. My…

nagates
- 620
- 13
- 40