device-driver

Is the naming convention for java native interface method and module name?

做~自己de王妃 提交于 2019-12-01 00:19:56
I am able to follow a jni tutorial just fine. But when I change the method name, I run into trouble. Is there a naming convention I need to follow? The tutorial used HelloJNI as the module name, and library name. I used "useaaacom". I got great feedback on this and i am making progress. I have a related question; let me know if I should create another post for it. I like to build on this app, which runs at this point. How do I call functions from a device driver? I have the header file, and the driver is loaded into my image. By "how" I mean, do I need to have a copy of the header file in my

Programmatically enabling/disabling hardware device [duplicate]

拟墨画扇 提交于 2019-11-30 22:55:09
Possible Duplicates: [.NET] How do I disable a system device? Win32 API function to programatically enable/disable device Is there a way, in C#, to programmatically disable and re-enable a device? I'm looking for essentially the same functionality that occurs when you go into device manager and right click on a device and disable or enable it. How can I do this in C#? Will A Take a look at net-how-do-i-disable-a-system-device . Keith Adler According to this link: http://bytes.com/topic/c-sharp/answers/513855-can-i-use-wmi-c-disable-enable-device You need to interface with CfgMgr32 (Win32 API)

Why can't I find cfgmgr32.lib in the Windows SDK?

丶灬走出姿态 提交于 2019-11-30 22:51:52
I'm trying to use the Configuration Manager API, e.g., CM_Get_Device_ID . The documentation says to link to cfgmgr32.lib . However, when I do this, I get an error message from the linker: Error 1 error LNK1104: cannot open file 'cfgmgr32.lib' I can't find cfgmgr32.lib anywhere in the Windows SDK. If I leave out cfgmgr32.lib I get unresolved external symbol errors. How can I use the Configuration Manager API? If the version of the Windows SDK you are using does not contain cfgmgr32.lib , you should link to setupapi.lib instead. This contains the Configuration Manager functions. Note that

Is the naming convention for java native interface method and module name?

只谈情不闲聊 提交于 2019-11-30 19:23:55
问题 I am able to follow a jni tutorial just fine. But when I change the method name, I run into trouble. Is there a naming convention I need to follow? The tutorial used HelloJNI as the module name, and library name. I used "useaaacom". I got great feedback on this and i am making progress. I have a related question; let me know if I should create another post for it. I like to build on this app, which runs at this point. How do I call functions from a device driver? I have the header file, and

Programmatically enabling/disabling hardware device [duplicate]

不问归期 提交于 2019-11-30 17:18:56
问题 This question already has answers here : Closed 9 years ago . Possible Duplicates: [.NET] How do I disable a system device? Win32 API function to programatically enable/disable device Is there a way, in C#, to programmatically disable and re-enable a device? I'm looking for essentially the same functionality that occurs when you go into device manager and right click on a device and disable or enable it. How can I do this in C#? 回答1: Take a look at net-how-do-i-disable-a-system-device. 回答2:

How Can I put ARM processor in different modes using C program?

最后都变了- 提交于 2019-11-30 16:57:16
I am going through different mode of ARM processor. I want to check the processor state(ex: register values) while it is in different mode. So can someone help me to find out sample code to put processor in different mode ? For example I found a code for undefined mode: asm volatile (".short 0xffff\n"); artless noise If you wish to test the modes from user space, this is a difficult question. There maybe no way to go to FIQ mode, if there is no FIQ peripheral in the system. Your system may not be using Monitor mode at all, etc. To get to abort mode, you can use an invalid pointer, or use mmap

Install ADB interface driver for android

a 夏天 提交于 2019-11-30 16:44:00
I tried to install through Device Manager. After I connected the phone to my laptop, i got link as 'Celkon incorporated GSM handset' in 'Other devices' portion of Device manager. I right clicked and clicked 'uddate driver' and 'install from specified location' and located the 'inf' file (usb2ser_2kXP.inf), but the messsage is ' cannot install this hardware, and 'the wizard cannot find the necessary software'.. So, how i have to edit the 'inf' file ? Right click on mycomputer-->then go to manage-->select your device in other device in Device manager-->then right click on it and select update

Check if a Windows driver exists for a given Device ID

白昼怎懂夜的黑 提交于 2019-11-30 15:53:12
问题 I'm writing a Windows library using C++. This library should be able to check if the device driver of a specific device is installed on the system. So I am searching for a way to check if a driver is installed for a known Device ID. So far, I found this information: SetupDiBuildDriverInfoList lists available drivers for given devices. However, I have to supply more than just a Device ID. SetupDiGetClassDevs seems to return exactly what I need for calling SetupDiBuildDriverInfoList, but it

Check if a Windows driver exists for a given Device ID

浪子不回头ぞ 提交于 2019-11-30 15:28:10
I'm writing a Windows library using C++. This library should be able to check if the device driver of a specific device is installed on the system. So I am searching for a way to check if a driver is installed for a known Device ID . So far, I found this information: SetupDiBuildDriverInfoList lists available drivers for given devices. However, I have to supply more than just a Device ID. SetupDiGetClassDevs seems to return exactly what I need for calling SetupDiBuildDriverInfoList, but it still doesn't take a Device ID as input. It may take a GUID of a device setup/interface class, but if I

Is there software or code to alter USB power output

梦想的初衷 提交于 2019-11-30 09:40:40
问题 I had a look at this and this but no one sounded particularly sure of their ideas and I'm kind of after a different thing anyway. I want to hook my usb power cables (red and black) up to my phone so I don't have to use a battery (the battery is dead anyway and this is just an experiment). The problem is that USB standards ensure that a minimum of 4.35V is supplied, when I only want 3.7V. Does anyone know for sure that you can or cannot regulate power output programmatically? Some other