/// <inheritdoc/> public int RestartProcesses(int sessionId, RM_WRITE_STATUS_CALLBACK progress) => NativeMethods.RmRestart(sessionId, 0, progress);
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);
protected static extern int RmShutdown(IntPtr pSessionHandle, RM_SHUTDOWN_TYPE lActionFlags, RM_WRITE_STATUS_CALLBACK fnStatus);
int IRestartManagerService.ShutdownProcesses(int sessionId, RM_SHUTDOWN_TYPE shutdownType, RM_WRITE_STATUS_CALLBACK progress) { return(Object.ShutdownProcesses(sessionId, shutdownType, progress)); }
int IRestartManagerService.RestartProcesses(int sessionId, RM_WRITE_STATUS_CALLBACK progress) { return(Object.RestartProcesses(sessionId, progress)); }
internal static extern int RmRestart( [MarshalAs(UnmanagedType.U4)] int dwSessionHandle, [MarshalAs(UnmanagedType.U4)] int dwRestartFlags, [MarshalAs(UnmanagedType.FunctionPtr)] RM_WRITE_STATUS_CALLBACK fnStatus);
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);