Click here to Skip to main content
15,905,316 members
Home / Discussions / C#
   

C#

 
AnswerRe: Please tell me why this simple shutdown application isn't working Pin
Mirko198025-Jan-11 4:12
Mirko198025-Jan-11 4:12 
AnswerRe: Please tell me why this simple shutdown application isn't working Pin
Dave Kreskowiak25-Jan-11 4:17
mveDave Kreskowiak25-Jan-11 4:17 
GeneralRe: Please tell me why this simple shutdown application isn't working Pin
Mirko198025-Jan-11 4:25
Mirko198025-Jan-11 4:25 
GeneralRe: Please tell me why this simple shutdown application isn't working Pin
turbosupramk325-Jan-11 4:55
turbosupramk325-Jan-11 4:55 
GeneralRe: Please tell me why this simple shutdown application isn't working Pin
turbosupramk325-Jan-11 4:58
turbosupramk325-Jan-11 4:58 
GeneralRe: Please tell me why this simple shutdown application isn't working Pin
Dave Kreskowiak25-Jan-11 6:51
mveDave Kreskowiak25-Jan-11 6:51 
GeneralRe: Please tell me why this simple shutdown application isn't working Pin
turbosupramk325-Jan-11 7:18
turbosupramk325-Jan-11 7:18 
GeneralRe: Please tell me why this simple shutdown application isn't working Pin
Dave Kreskowiak25-Jan-11 8:08
mveDave Kreskowiak25-Jan-11 8:08 
I told you this only works if the shutdown was initiated with SHUTDOWN.EXE. If something calls ExitWindowsEx, SHUTDOWN /A will NOT abort it. If it works with your test patch, great, that's one test. I can pretty much guarantee that it won't work in all cases. If your patch uses SHUTDOWN.EXE to restart the machine, you'll be OK. Not great, but OK. There will be those cases where your 1 second delay (or whatever you use) will be sufficient for the patch to call SHUTDOWN.EXE and shutdown actually gets around to calling ExitWindowsEx before your piece of code can launch SHUTDOWN /A.

QuestionHow to create a Module class in C# similar to VB .NET Pin
LAPEC25-Jan-11 1:23
LAPEC25-Jan-11 1:23 
AnswerRe: How to create a Module class in C# similar to VB .NET Pin
Estys25-Jan-11 1:29
Estys25-Jan-11 1:29 
GeneralRe: How to create a Module class in C# similar to VB .NET Pin
LAPEC25-Jan-11 1:40
LAPEC25-Jan-11 1:40 
GeneralRe: How to create a Module class in C# similar to VB .NET Pin
Pravin Patil, Mumbai25-Jan-11 1:52
Pravin Patil, Mumbai25-Jan-11 1:52 
GeneralRe: How to create a Module class in C# similar to VB .NET Pin
Estys25-Jan-11 2:17
Estys25-Jan-11 2:17 
GeneralRe: How to create a Module class in C# similar to VB .NET Pin
LAPEC25-Jan-11 2:19
LAPEC25-Jan-11 2:19 
GeneralRe: How to create a Module class in C# similar to VB .NET Pin
OriginalGriff25-Jan-11 2:25
mveOriginalGriff25-Jan-11 2:25 
GeneralRe: How to create a Module class in C# similar to VB .NET Pin
OriginalGriff25-Jan-11 2:22
mveOriginalGriff25-Jan-11 2:22 
GeneralRe: How to create a Module class in C# similar to VB .NET Pin
Estys25-Jan-11 2:01
Estys25-Jan-11 2:01 
AnswerRe: How to create a Module class in C# similar to VB .NET Pin
Pravin Patil, Mumbai25-Jan-11 1:41
Pravin Patil, Mumbai25-Jan-11 1:41 
QuestionTextbox Validation against IP Pin
Rei ho24-Jan-11 22:36
Rei ho24-Jan-11 22:36 
AnswerRe: Textbox Validation against IP Pin
OriginalGriff24-Jan-11 22:52
mveOriginalGriff24-Jan-11 22:52 
GeneralRe: Textbox Validation against IP Pin
Rei ho24-Jan-11 22:55
Rei ho24-Jan-11 22:55 
GeneralRe: Textbox Validation against IP Pin
OriginalGriff24-Jan-11 23:00
mveOriginalGriff24-Jan-11 23:00 
GeneralRe: Textbox Validation against IP Pin
Thomas Krojer24-Jan-11 23:11
Thomas Krojer24-Jan-11 23:11 
GeneralRe: Textbox Validation against IP Pin
OriginalGriff24-Jan-11 23:14
mveOriginalGriff24-Jan-11 23:14 
GeneralRe: Textbox Validation against IP Pin
Pete O'Hanlon24-Jan-11 23:49
mvePete O'Hanlon24-Jan-11 23:49 

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.