how to get operation(shutdown/restart) result by using win32shutdown method

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DKn
    New Member
    • Aug 2007
    • 53

    how to get operation(shutdown/restart) result by using win32shutdown method

    Hi,
    I am doing shutdown for a remote system using this method

    InvokeMethod("W in32Shutdown", inParams, null); in C#.Net 2.0.

    Once the shutdown is done, how to get the status , whether the shutdown is completed or not, As this method InvokeMethod("W in32Shutdown", inParams, null); is asynchronous.
    not only for shutdown, i want the status for restart also. once the restart is completed how to know that , that is done.

    Plz any suggestions.... .
Working...