-
Notifications
You must be signed in to change notification settings - Fork 233
/
Program.cs
27 lines (23 loc) · 954 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright(c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using Microsoft.Windows.ApplicationModel.DynamicDependency;
using Microsoft.Windows.System.Power;
namespace DynamicDependenciesBasicCS
{
class Program
{
static void Main(string[] args)
{
//For explicit initialization, call Bootstrap.Initialize() to load the Windows App SDK framework package
//Remove WindowsPackageType=None in project file
// Bootstrap.Initialize(0x00010000, "preview3");
// Call a simple Windows App SDK API, and output the result
DisplayStatus dispStatus = PowerManager.DisplayStatus;
Console.WriteLine("Hello World!");
Console.WriteLine($"DisplayStatus: {dispStatus}");
//When performing explicit initialization, release the Dynamic Dependencies Lifetime Manager
// Bootstrap.Shutdown();
}
}
}