/// <inheritdoc/>
 public int RestartProcesses(int sessionId, RM_WRITE_STATUS_CALLBACK progress) =>
 NativeMethods.RmRestart(sessionId, 0, progress);
Exemple #2
0
 protected static extern int RmRestart(IntPtr pSessionHandle, int dwRestartFlags, RM_WRITE_STATUS_CALLBACK fnStatus);
 /// <inheritdoc/>
 public int ShutdownProcesses(int sessionId, RM_SHUTDOWN_TYPE shutdownType, RM_WRITE_STATUS_CALLBACK progress) =>
 NativeMethods.RmShutdown(sessionId, shutdownType, progress);
Exemple #4
0
 protected static extern int RmShutdown(IntPtr pSessionHandle, RM_SHUTDOWN_TYPE lActionFlags, RM_WRITE_STATUS_CALLBACK fnStatus);
Exemple #5
0
 int IRestartManagerService.ShutdownProcesses(int sessionId, RM_SHUTDOWN_TYPE shutdownType, RM_WRITE_STATUS_CALLBACK progress)
 {
     return(Object.ShutdownProcesses(sessionId, shutdownType, progress));
 }
Exemple #6
0
 int IRestartManagerService.RestartProcesses(int sessionId, RM_WRITE_STATUS_CALLBACK progress)
 {
     return(Object.RestartProcesses(sessionId, progress));
 }
Exemple #7
0
 internal static extern int RmRestart(
     [MarshalAs(UnmanagedType.U4)] int dwSessionHandle,
     [MarshalAs(UnmanagedType.U4)] int dwRestartFlags,
     [MarshalAs(UnmanagedType.FunctionPtr)] RM_WRITE_STATUS_CALLBACK fnStatus);
Exemple #8
0
 internal static extern int RmShutdown(
     [MarshalAs(UnmanagedType.U4)] int dwSessionHandle,
     [MarshalAs(UnmanagedType.U4)] RM_SHUTDOWN_TYPE lActionFlags,
     [MarshalAs(UnmanagedType.FunctionPtr)] RM_WRITE_STATUS_CALLBACK fnStatus);