Click here to Skip to main content
15,923,689 members
Home / Discussions / C#
   

C#

 
GeneralAbout ShutDown in XP Pin
lajiyo14-Apr-04 23:02
lajiyo14-Apr-04 23:02 
GeneralRe: About ShutDown in XP Pin
Heath Stewart15-Apr-04 4:59
protectorHeath Stewart15-Apr-04 4:59 
GeneralRe: About ShutDown in XP Pin
lajiyo18-Apr-04 15:19
lajiyo18-Apr-04 15:19 
GeneralRe: About ShutDown in XP Pin
Heath Stewart19-Apr-04 2:17
protectorHeath Stewart19-Apr-04 2:17 
GeneralRe: About ShutDown in XP Pin
lajiyo20-Apr-04 0:37
lajiyo20-Apr-04 0:37 
GeneralRe: About ShutDown in XP Pin
Heath Stewart20-Apr-04 3:55
protectorHeath Stewart20-Apr-04 3:55 
GeneralRe: About ShutDown in XP Pin
lajiyo21-Apr-04 5:14
lajiyo21-Apr-04 5:14 
GeneralRe: About ShutDown in XP Pin
Heath Stewart21-Apr-04 6:46
protectorHeath Stewart21-Apr-04 6:46 
See http://www.mentalis.org/soft/class.qpx?id=7[^] for an example (did a quick google search on "ExitWindows C#"). There's a lot of code involved, so it's just better to point you at an existing implementation.

Alternatively, you could use WMI to shutdown a computer, which will be much easier but more restrictive since WMI must be installed an the necessary CIMv2 classes must be present.

 

Microsoft MVP, Visual C#
My Articles
GeneralAccessing C++ classes from within C# .NET Pin
Vini Deep14-Apr-04 22:53
Vini Deep14-Apr-04 22:53 
GeneralRe: Accessing C++ classes from within C# .NET Pin
lajiyo14-Apr-04 23:10
lajiyo14-Apr-04 23:10 
GeneralRe: Accessing C++ classes from within C# .NET Pin
Vini Deep14-Apr-04 23:24
Vini Deep14-Apr-04 23:24 
GeneralRe: Accessing C++ classes from within C# .NET Pin
Andy Wieberneit15-Apr-04 3:27
Andy Wieberneit15-Apr-04 3:27 
Generaldatagrid hide rowheader Pin
robmays14-Apr-04 22:43
robmays14-Apr-04 22:43 
GeneralRe: datagrid hide rowheader Pin
Heath Stewart15-Apr-04 4:20
protectorHeath Stewart15-Apr-04 4:20 
GeneralRe: datagrid hide rowheader Pin
robmays15-Apr-04 4:59
robmays15-Apr-04 4:59 
GeneralRe: datagrid hide rowheader Pin
Heath Stewart15-Apr-04 5:04
protectorHeath Stewart15-Apr-04 5:04 
GeneralRe: datagrid hide rowheader Pin
robmays15-Apr-04 7:37
robmays15-Apr-04 7:37 
QuestionHow to set the string for cell(rowNumber, colNumber) Pin
DucLinh14-Apr-04 21:50
DucLinh14-Apr-04 21:50 
AnswerRe: How to set the string for cell(rowNumber, colNumber) Pin
Heath Stewart15-Apr-04 4:17
protectorHeath Stewart15-Apr-04 4:17 
GeneralDLL integration Pin
student666914-Apr-04 21:35
student666914-Apr-04 21:35 
GeneralRe: DLL integration Pin
lajiyo14-Apr-04 22:56
lajiyo14-Apr-04 22:56 
GeneralRe: DLL integration Pin
Andy Wieberneit15-Apr-04 3:39
Andy Wieberneit15-Apr-04 3:39 
GeneralRe: DLL integration Pin
Heath Stewart15-Apr-04 4:16
protectorHeath Stewart15-Apr-04 4:16 
QuestionHow to customize PrintPreviewDialog in C# Pin
sachinkalse14-Apr-04 20:45
sachinkalse14-Apr-04 20:45 
AnswerRe: How to customize PrintPreviewDialog in C# Pin
Heath Stewart15-Apr-04 4:13
protectorHeath Stewart15-Apr-04 4:13 

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.