Click here to Skip to main content
15,893,790 members
Home / Discussions / C#
   

C#

 
GeneralRe: Turning of the monitors Pin
Nick Parker29-Jul-04 7:22
protectorNick Parker29-Jul-04 7:22 
GeneralRe: Turning of the monitors Pin
Heath Stewart29-Jul-04 5:44
protectorHeath Stewart29-Jul-04 5:44 
GeneralRe: Turning of the monitors Pin
Nick Parker29-Jul-04 7:20
protectorNick Parker29-Jul-04 7:20 
GeneralRe: Turning of the monitors Pin
Heath Stewart29-Jul-04 9:00
protectorHeath Stewart29-Jul-04 9:00 
GeneralRe: Turning of the monitors Pin
Nick Parker29-Jul-04 9:33
protectorNick Parker29-Jul-04 9:33 
GeneralRe: Turning of the monitors Pin
Heath Stewart29-Jul-04 9:50
protectorHeath Stewart29-Jul-04 9:50 
GeneralRe: Turning of the monitors Pin
PrebKlok30-Jul-04 0:50
PrebKlok30-Jul-04 0:50 
GeneralRe: Turning of the monitors Pin
Heath Stewart30-Jul-04 3:33
protectorHeath Stewart30-Jul-04 3:33 
If you followed my directions (downloaded the WMI extensions for VS.NET) and generated a typed class for the Win32_DesktopMonitor CIMv2 class, you might see immediately what was wrong: SetPowerState takes two parameters: a UInt16 and a DateTime.

Change the first line to object[] arg = {6, DateTime.Now}; and it should work.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Turning of the monitors Pin
PrebKlok30-Jul-04 4:01
PrebKlok30-Jul-04 4:01 
GeneralRe: Turning of the monitors Pin
Heath Stewart30-Jul-04 4:23
protectorHeath Stewart30-Jul-04 4:23 
GeneralRe: Turning of the monitors Pin
PrebKlok30-Jul-04 4:53
PrebKlok30-Jul-04 4:53 
GeneralRe: Turning of the monitors Pin
Heath Stewart30-Jul-04 5:01
protectorHeath Stewart30-Jul-04 5:01 
GeneralAsynchronous Pin
sreejith ss nair29-Jul-04 2:17
sreejith ss nair29-Jul-04 2:17 
GeneralRe: Asynchronous Pin
SOCM_FP_CPP29-Jul-04 3:05
SOCM_FP_CPP29-Jul-04 3:05 
GeneralRe: Asynchronous Pin
Heath Stewart29-Jul-04 5:02
protectorHeath Stewart29-Jul-04 5:02 
GeneralRe: Asynchronous Pin
sreejith ss nair29-Jul-04 20:29
sreejith ss nair29-Jul-04 20:29 
GeneralRe: Asynchronous Pin
Heath Stewart30-Jul-04 3:19
protectorHeath Stewart30-Jul-04 3:19 
GeneralRe: Asynchronous Pin
sreejith ss nair30-Jul-04 3:36
sreejith ss nair30-Jul-04 3:36 
GeneralRe: Asynchronous Pin
Heath Stewart30-Jul-04 4:11
protectorHeath Stewart30-Jul-04 4:11 
GeneralRe: Asynchronous Pin
sreejith ss nair30-Jul-04 4:21
sreejith ss nair30-Jul-04 4:21 
GeneralRe: Asynchronous Pin
Heath Stewart30-Jul-04 4:57
protectorHeath Stewart30-Jul-04 4:57 
GeneralRe: Asynchronous Pin
sreejith ss nair30-Jul-04 3:36
sreejith ss nair30-Jul-04 3:36 
GeneralRe: Asynchronous Pin
Tom Larsen29-Jul-04 5:42
Tom Larsen29-Jul-04 5:42 
GeneralQuestion on Porting Pin
SatyaDY29-Jul-04 0:40
SatyaDY29-Jul-04 0:40 
GeneralRe: Question on Porting Pin
Colin Angus Mackay29-Jul-04 0:45
Colin Angus Mackay29-Jul-04 0:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.