472,127 Members | 2,064 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 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 8652
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by rongchaua | last post: by
1 post views Thread by solanki.chandrakant | last post: by
1 post views Thread by Sharda | last post: by

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.