mm_soledad

mm_soledad

  • NA
  • 13
  • 0

shut down the computer

Oct 31 2003 6:45 AM
hi all... i wanna to develop an application to shut down the computer using C#.... i did it and call ExitWondowsEx API......it works fine in windows 98.... but in windows xp i doesn't work....becauseof the priviliges..... does any one know the code in C# to handle the priviliges??....... or does any one know how to use Sytem.management to shut down the computer??? thx in advance

Answers (8)