winget-cli

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

SelfManagement.h (812B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #pragma once
      4 #include <AppInstallerProgress.h>
      5 
      6 namespace AppInstaller::SelfManagement
      7 {
      8     // Gets the stub preference for the current package.
      9     // Returns true if the package is set to prefer stubs.
     10     // Returns false if the package is set to prefer the full package,
     11     // or the current process is not packaged.
     12     bool IsStubPreferred();
     13 
     14     // Sets the stub preference for the current package.
     15     // It is an error to set the preference if the process is not packaged,
     16     // or the preference can otherwise not be set (older version of Windows).
     17     void SetStubPreferred(bool preferStub);
     18 
     19     // Gets a value indicating whether the current package is the stub package.
     20     bool IsStubPackage();
     21 }