469,612 Members | 1,572 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,612 developers. It's quick & easy.

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 8248
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
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.