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

Enable/Disable Hardware Device (Device Manager) programatically

Hi All,

Problem Definition:
---------------------
Microsoft Wirelss Keyboard works in BIOS but does not work when booting into
windows.

Discovered Work-around:
-----------------------------
1.> Open Device Manager(The keyboard device will have an exclamation and
will read:"Could not start")
2.> Right-click on the device and select disable.
3.> While hammering and button on the keyboard >> Right click the keyboard
icon
4.> Click on enable

The device works like this

Suggestions Required:
--------------------------

How can i perfom this process programtically to save the user the hassle?

Any code on how to enable/disable a device will be appreciated!

Thanx

Johann

--
In Adversity lies opportunity! - Anonymous
Apr 25 '06 #1
2 8848
HI,

The easiest way is to simply buy a new keyboard :) , there is something
wrong with the one you have now.

regarding the device managers handling you should look into WMI
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"RootSpy2006" <Ro*********@discussions.microsoft.com> wrote in message
news:4E**********************************@microsof t.com...
Hi All,

Problem Definition:
---------------------
Microsoft Wirelss Keyboard works in BIOS but does not work when booting
into
windows.

Discovered Work-around:
-----------------------------
1.> Open Device Manager(The keyboard device will have an exclamation and
will read:"Could not start")
2.> Right-click on the device and select disable.
3.> While hammering and button on the keyboard >> Right click the keyboard
icon
4.> Click on enable

The device works like this

Suggestions Required:
--------------------------

How can i perfom this process programtically to save the user the hassle?

Any code on how to enable/disable a device will be appreciated!

Thanx

Johann

--
In Adversity lies opportunity! - Anonymous

Apr 26 '06 #2
Hi Ignacio,

Thank you fopr your speedy reply! The keyboard works fine with other
systems, it is one of those unlisted hardware incompatibilites. The keyboard
also has other problems like the CTRL key not working for multiple
selections/timing out(Can be resolved by positioning the keyboard closer to
the receiver than the mouse).

I did start exploring the WMI route and System32_Keyboard API rather limited
with regards to functional calls.

I'm still looking for some code to enable/disable a hardware deive.

Kind Regards
--
In Adversity lies opportunity! - Anonymous
"Ignacio Machin ( .NET/ C# MVP )" wrote:
HI,

The easiest way is to simply buy a new keyboard :) , there is something
wrong with the one you have now.

regarding the device managers handling you should look into WMI
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"RootSpy2006" <Ro*********@discussions.microsoft.com> wrote in message
news:4E**********************************@microsof t.com...
Hi All,

Problem Definition:
---------------------
Microsoft Wirelss Keyboard works in BIOS but does not work when booting
into
windows.

Discovered Work-around:
-----------------------------
1.> Open Device Manager(The keyboard device will have an exclamation and
will read:"Could not start")
2.> Right-click on the device and select disable.
3.> While hammering and button on the keyboard >> Right click the keyboard
icon
4.> Click on enable

The device works like this

Suggestions Required:
--------------------------

How can i perfom this process programtically to save the user the hassle?

Any code on how to enable/disable a device will be appreciated!

Thanx

Johann

--
In Adversity lies opportunity! - Anonymous


Apr 28 '06 #3

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

Similar topics

4
by: mabond | last post by:
Does anyone know some code that will allow me to enable and/or disable a task which already exists in the task scheduer. I have a task which runs at 15 min intervals and from time to time I want to...
1
by: karan.shashi | last post by:
Hello to all the C# gurus :), I'm interested in whether it's possible to enable and/or disable devices in the device manager programmatically using C#. Anybody with some insight on this? I'm...
7
by: Michael | last post by:
I'm exploring how to programmatically disable/enable devices in a system using C#. -MH
8
by: rongchaua | last post by:
Hi all, i would like now to disable and enable network adapter programmatically with c#. I have searched but found nothing useful. There's no topic about this problem. Has someone done with this...
1
by: solanki.chandrakant | last post by:
Hi All, i m working on Linux Fedora Core 4. i have to develop one program in that i have device id. Based on given device id i have to enable/disable particular device id. i have to work with...
0
by: BLUE | last post by:
Enable and Disable in the Network and DialUp Connections manager is actually setting a bit in the registry for the target adapter and then calling NDIS to unbind or bind (depending on whether your...
1
by: Sharda | last post by:
Hi, I want to Enable/Disable USB drive programatically. I dont to use devcon.exe. If anyone knows some API please tell me. Thanks in advance.
1
by: Nasif | last post by:
Dear All, I can enable/disable serial port through device manager. But I have to do it through programming . How can i do that in C#? Please help. Thanks in advance Nasif
3
by: sakthikumarb | last post by:
Hi.. In local system, under universal serial bus controllers in Device manager.We can enable and disable the particular USB port. How can we do the enable and disable the particular USB port in...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.