public static extern int RmRegisterResources(SafeRestartSessionHandle pSessionHandle, int nFiles, string[] rgsFilenames, int nApplications, RM_UNIQUE_PROCESS[] rgApplications, int nServices, string[] rgsServiceNames);
 public static extern int RmStartSession(out SafeRestartSessionHandle pSessionHandle, int dwSessionFlags, string strSessionKey);
 public static extern int RmGetList(SafeRestartSessionHandle dwSessionHandle, out int pnProcInfoNeeded, ref int pnProcInfo, [In, Out] RM_PROCESS_INFO[] rgAffectedApps, ref RM_REBOOT_REASON lpdwRebootReasons);