473,748 Members | 8,376 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8915
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

"RootSpy200 6" <Ro*********@di scussions.micro soft.com> wrote in message
news:4E******** *************** ***********@mic rosoft.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 incompatibilite s. 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_Keyboa rd 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

"RootSpy200 6" <Ro*********@di scussions.micro soft.com> wrote in message
news:4E******** *************** ***********@mic rosoft.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
10768
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 disable (and later enable) that task. I'd like to do so programatically as part of another application instead of opening the task scheduler and right clicking on the relevant task. Any guidance or suggestions for code would be appreciated ...
1
7308
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 also interested in see if I can role back a driver using C#. I've seen a way to do it using unmanaged C but would love to know a way to do it using C# as well. Thanks,
7
13927
by: Michael | last post by:
I'm exploring how to programmatically disable/enable devices in a system using C#. -MH
8
34455
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 problem? All help will be appreciated. rongchaua.
1
3977
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 this problem using c programming language. If any function/library, how could i do that i don't know. Please, help me.
0
4289
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 disabling or enabling the adapter). In HKEY_LOCAL_MACHINE\Comm\NdisPower insert this value to disable the adapter: <adapterNameREG_DWORD 4 (0x00000004)
1
3029
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
5358
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
4205
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 remote system? there is any WMI mechanism ?( means any win32 class is there to change enable and disable property of a particular USB port) if there is no wmi mechanism.. how can we achieve the same? Thanks in advance...
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9541
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9370
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9247
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8242
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3312
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.