device

Resolve Windows device path to drive letter

Hello How do you resolve an NT style device path, e.g. \Device\CdRom0, to is logical drive letter, e.g. G:\ ? Edit: A Volume Name isn't the same as a Device Path so unfortunatly GetVolumePathNamesForVolumeName() won't work. Thanks in advance. ...

What is a way for a web browser to communicate with a hardware device?

I have a data acquisition hardware device attached to a PC via USB that I'd like to send some information and settings, acquire some data, and then retrieve the acquired data on the client and send it to the server. The plan is to use a web portal to communicate with the device attached to the client PC. I was planning on writing a DLL...

wxPython wxDC object from win32gui.GetDC

I am getting a DC for a window handle of an object in another program using win32gui.GetDC which returns an int/long. I need to blit this DC into a memory DC in python. The only thing I can't figure out how to do is get a wxDC derived object from the int/long that win32gui returns. None of the wxDC objects allow me to pass an actual D...

[.NET] How do I disable a system device?

Is there any way to disable a system device from C#.NET. Basically emulating when you go to Device Manager and disable a device that way? I am assuming there is a WinAPI function that I can invoke, but I don't know which one it is? The reason I need to do this is that I need to disable and straight after enable the device again. I ne...

Symbol SDK - Get Device Serial Number

Has anyone done any dev work woek the Symbol Device SDK. I want to get the Device Serial Number and write it to a value in the registry. Does the Symbol SDK get you the facility of getting the Device Serial Number, if so do you no what the class is called as there are quite a few in the SDK pack? Any help would be welcome..... ...

Is there a (free) windows test/dummy print device?

We are creating a batch application which sends its documents (Java Jasperreports) directly to a printer device, running on a Windows server. To test the application and measure the performace, we where looking for a test or dummy windows print device. This device would not print to an actual printer but simulate a printer device in suc...

How to write Linux driver module call/use another driver module?

I'm developing a Linux driver loadable module and I have to use another device in my driver.(kind of driver stacked on another driver) How do I call/use another driver in my driver? I think they are both in the kernel so there might be a way that can use another driver directly. ...

Linux device driver unsafe FXSAVE/FXRSTOR bug -- any precedents?

There's a nasty problem that has temporarily stumped a number of engineers at my company trying to debug it. The C++ program is normally run on a cluster of multicore computers with MPI. It will run for a very long time -- perhaps days -- and then suddenly fail. Most of engineers working on it have eliminated any reasonable possibilit...

Who supports WTAI (Wireless Telephony Application Interface)

Does anyone know how widely WTAI is supported in mobile phones, or can point to a list of supported devices. ...

Programmaticly disable device in device manager (Vista x64)

Is there any way to programmaticly disable a device? (preferably in .net, win32, or batch). Most hits on google suggest using devcon but it does not seem to be working on Windows Vista/7 64bit. http://stackoverflow.com/questions/252185/-net-how-do-i-disable-a-system-device has a solution using SetupDiSetClassInstallParams but it also d...

Linux: Which process is causing "device busy" when doing umount?

Linux: Which process is causing "device busy" when doing umount? ...

Enable/disable hardware w/o Admin rights on Vista?

Hi, I've been asked to provide a program/script/whatever that enables or disables the CD/DVD drive USB ports Floppy (!) drive devices without requiring admin rights, that is, that can be run by a 'normal' user. Ideally, something like a command line utility: C:> foobar cdrom /disable Any pointers, hints or clues gratefully accepte...

How do you get the current battery level in .NET CF 3.5?

How - or what's the best way - to retrieve the device's current battery level in .NET CF 3.5 on Windows Mobile 5 and 6? ...

How can I programmatically take a picture using a webcamera and save it to a file?

Preferably, answers will be in a .Net language. However, all answers are very welcome. Thank you,in advance, for your assistance. ...

Find which drive corresponds to which USB mass storage device in WinXP

I have several USB drives connected to a WinXP SP3 computer, and I need to tell them apart programatically - I need to find which drive letter corresponds to which device (in this case, one device ~ one volume). I can get their Volume IDs and drive letters using mountvol, looking something like this: C:\WINDOWS\> mountvol \\?\Volume{bdb...

Controlling power to PCMCIA slot/card

I'm currently working on a project that utilizes a proprietary PCMCIA radio card to communicate with some wireless devices. I currently have a background process that handles reading data to and from the card and storing it for processing, but I'd like to be able to shut down power to the card when my application is not running. I've don...

Registering a UPnP Device using Microsoft API's

Hi, I am trying to make a UPnP device using Microsoft API's via Visual C++. So far I have created the device and registered it successfully with the IUPnPRegistrar::RegisterDevice method. I have also read in MSDN that there is another method to register a UPnP device using the IUPnPRegistrar::RegisterRunningDevice. There isn't much det...

What are Java's native ways of communicating with devices directly?

What are Java's native ways of communicating with devices or ports such as LPT1, COM1, USB directly? ...

Windows volume device detect failed until reboot. Never failed before.

I have code to detect the connection of USB Flash Drives as volumes. The code has been working very well for awhile, but recently a fellow engineer's machine started to fail and didn't work right again until it was restarted. The project uses Qt 4.5.0, but that shouldn't be very relevant to this question. I register for the notificati...

Is there a way to convert the coordinate system after a change to Landscape Orientation?

In a view-based iPhone OS application, I change the orientation from the initial portrait orientation to a landscape orientation (UIInterfaceOrientationLandscapeRight). But now the x,y origin (0,0) is in the lower-left corner (instead of the usual upper-left) and each time I want to do something that involves coordinates I must re-calcul...