473,508 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disabling hardware or services using WMI

Im having some trouble disabling hardware using WMI. I got a handle on
the device, but when I call SetPowerState I get a type mismatch. The
definition of the method says it takes an int (power level), datetime
(when to do it)
objNetCard.SetPowerState(6, Convert.ToDateTime(Now()))
:(
Seeing as that wasnt going anywhere I tried stopping the service for
the driver using StopService - but this returns 4, which apparently
means Invalid service control.... but ive got no idea what that really
means or how to fix it.
Help!

Aug 17 '05 #1
0 928

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

Similar topics

0
1267
by: Ken North | last post by:
To counter the overhead of XML processing, some organizations are turning to hardware accelerators. Jeff Carmichael of Tarari discussed XML accelerators and content processors at the recent web...
3
3526
by: Peter | last post by:
If I want to build a web services application (not web application), what is the hardware requirement ? Does anyone have the experience?
12
1498
by: Boris | last post by:
I need to build a new .NET development server (Visual Studio) for 50 users who will be accesing the server using Windows Server 2003 Terminal Service. Do you have any advice in terms of how...
20
2077
by: dukeleto | last post by:
I know this is an annoying thing on some sites. I have set some images in an online gallery to have their own java po up window that is set to be the same size as the image. I would like to...
2
2826
by: HumptyDumpty | last post by:
Does anyone know if there is a problem with re-enabling the Screen Saver after it has been disabled programmatically. I am using the SystemParametersInfo function within User32.dll, and have...
0
776
by: ChrisC | last post by:
Im having some trouble disabling hardware using WMI. I got a handle on the device, but when I call SetPowerState I get a type mismatch. The definition of the method says it takes an int (power...
2
1234
by: eclectic.01 | last post by:
I need to control the way a document is printed ... I would like a user to print a 'ticket', however, if multiple 'tickets' are selected, each ticket must be printed separately (separate piece of...
110
10441
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst...
5
1309
by: Dave | last post by:
I'm developing a piece of Hardware that I wish to have utilize a web service on a Windows 2003 server. I send an XML file to the server over port 80 but, it doesn't work. Whatis required to make...
0
7223
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,...
1
7034
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...
0
5623
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,...
1
5045
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...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1544
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 ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.