devices

Is there a way to get the BSD number of a device in Mac OS X?

My program reads device paths like /dev/rdisk0 from input and then it looks in IOKit for a disk with the BSD name disk0. For this I have to remove /dev/r from the path. Hard coding this path can break in future versions of Mac OS X. Therefore I though of another way: I could match the IOService using the BSD Major and Minor version of t...

How to get high resolution images for Printers in .net?

If you go to "Control Panel\Hardware and Sound\Devices and Printers" in Windows 7 (and i assume vista) you will see some nice pretty pictures of printers. See image below Is it possible to get access to these images through .net? For example to display them on a windows form? ...

Presentation technology for multiple devices

Our application is supposed to serve multiple devices, from simple to smart-phones, IPhones, touch-screens to normal browsers. Application is layered, so we can reuse the business and persistence layer. However, we would like to program single presentation layer as well. I know for example that ASP .NET generates different html output ...

HKLM\SYSTEM\MountedDevices Fully Qualified Name different between 32 and 64 bit Windows 7

I am attempting to resolve a drive letter from a found usb mass storage device via VID and PID. To make this magical connection, I was using the following registry key: Computer\HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices In 32bit versions of windows, the data contained within (for example) \DosDevices\F: is the following: "STORAGE\REMO...

What happens to an open file handler on Linux if the pointed file gets moved, delete ....

Hi, What happens to an open file handler on Linux if the pointed file meanwhile gets: Moved away -> Does the file handler stays valid? Deleted -> Does this lead to an EBADF, indicating an invalid file handler? Replaced by a new file -> Does the file handler pointing to this new file? Replace by a hard link to a new file -> Does my fil...

Pretty (maker-free) device names, where do I find those?

I'm looking to do some things involving (removable) devices, so I was looking at WMI and other APIs, the 'Devices and Printers' screen and the Safely Remove Hardware popup as I want to have as seamless an experience as possible. Problem however.. is that I can't find any way to get the names as my user 'knows' them in his PC. Example......

Android Device Chooser -- device not showing up

I'm using the android plugin for eclipse, and when I try to run my program using a real device through the android device chooser, my phone is not listed as a device. I have updated eclipse and all of the android packages, but it still isn't showing up. My phone is running 1.6, which is also the target version listed in the eclipse proje...

Best fast authentication mechanism for embedded devices with Nginx & Apache

Hello All, We have a project deployed with Nginx, Apache, Django and Postgres. The project has large number of embedded devices login in to the server(https) in 5 minutes intervals and send a file to the server. Also, the WebUI face of the project has normal users login in and performing different functions. Currently, system doesn't ...

Multi-player server for iPhone application, using device as socket server.

I'm working on a multiplayer iPhone application that allows up to 6 users to connect and play in "real time." I've been looking at hosted and non-hosted socket servers (SmartFox, ElectroServer, Photon/Neutron, ProjectDarkstar) and I'm wondering if anyone has any recommendations for services or implementation? Anyone have any idea of what...

How best to implement support for multiple devices in a web application.

Hello. My client would like a business application to support 'every possible device'. The application in question is essentially a web application and 'every possible device', I believe encompasses mobile phones, netbooks, ipad, other browser supporting devices, etc. The application is somewhat complex w.r.t. the data it captures and ot...

Is there any lib for crossplatform Camera like devices streams parsing?

C\C++ lib for cross-platform device streams capturing (It shall find all devices in system and be able to give me their streams for encoding or filtering or any thing else). I want it to be cross-platrorm So is there any lib like this, opensource? ...

What should be the image resolution for Nexus One or Droid?

Hi, As Android supports multiple devices from different manufacturers there are different screen resolutions supported. The table that is available at http://developer.android.com/intl/fr/guide/practices/screens_support.... is not very clear to me. It shows WVGA and FWVGA in MDPI for Large Screens and HDPI for Normal screens. So, if t...

How to know if a device can be disabled or not?

I use the following code to enable/disable a device installed on my computer: SP_PROPCHANGE_PARAMS params; memset(&params, 0, sizeof(params)); devParams.cbSize = sizeof(devParams); params.ClassInstallHeader.cbSize = sizeof(params.ClassInstallHeader); params.ClassInstallHeader.InstallFunction = DIF_PROPERTYCHANGE; params.Scope = ...

Query size of block device file in Python

Hello. I have a Python script that reads a file (typically from optical media) marking the unreadable sectors, to allow a re-attempt to read said unreadable sectors on a different optical reader. I discovered that my script does not work with block devices (e.g. /dev/sr0), in order to create a copy of the contained ISO9660/UDF filesyst...

Reading data from a unix device

On one of my RedHat Linux Servers a couple devices have been setup. /dev/ap and /dev/reuter. They are AP and Reuters news feeds. At the unix command line I can do "cat /dev/ap" and it waits until a message comes down the feed and prints it out to stdout. As soon as there is a pause in the stream cat completes. I tried "more" and got the ...

How to distinguish between USB and floppy devices - C#

Hello all, I'm trying to recognize drives types by looping around DriveInfo.GetDrives() result. But for both USB and floppy I get the same DriveType.Removable value. How can I distinguish between them? Thanks! BP ...

Android ==> Aplication development ???

1- I am an iphone application developer, all iphones have very similar Operating systems, and the size and everything is the same, so I don't need to create applications specific for each iphone. But with android there are different phones, different sizes, So How can i possibly know that my app works, and looks fine on all these device...

view other computers on the network programatically in Python

Is it possible to view other devices that are on the same network in Python (or any programming language for that matter)? Edit: For clarification, what I'd like to do (just to start out) is to display a list of devices connected and their local IP addresses. So on my router, it'll show the info: family_pc, 192.168.1.2 work_laptop, 192...

Command-line tool to dump all Device Properties displayed in Device Manager

In Device Manager, clicking on a specific device takes you to a dialog box, whose Details tab shows all sorts of properties of the device. Is there a command line tool to dump this out? I need to diff all the properties of two devices. ...

WZCQueryInterface(NULL, INTF_ALL, &intfEntry_, &dwOidFlags); returning 2

I've got some code that used to get the interface, now it fails all the time. The dwStatus value is getting set to 2. if (DeviceIoControl( ndisUio_, IOCTL_NDISUIO_QUERY_BINDING, pQueryBinding, sizeof(NDISUIO_QUERY_BINDING), Buf, dwBufLength, &dwBytesWritten, ...