winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

Reboot.h (601B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #pragma once
      4 
      5 namespace AppInstaller::Reboot
      6 {
      7     bool InitiateReboot();
      8 
      9     // Registers the application to be restarted by Windows Error Reporting (WER) in case of an unexpected shutdown.
     10     bool RegisterRestartForWER(const std::string& commandLineArgs);
     11 
     12     // Unregisters the application from being restarted by Windows Error Reporting (WER).
     13     bool UnregisterRestartForWER();
     14 
     15     // Runs a program when a user logs on.
     16     void WriteToRunOnceRegistry(const std::string& resumeId, const std::string& commandLine);
     17 }