Helper.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;

namespace DockPSHelper
{
    public static class AppBarHelper
    {
        public enum AppBarEdge : uint
        {
            Left = 0,
            Top = 1,
            Right = 2,
            Bottom = 3
        }

        public static void CleanUp()
        {
        }

        public static void AddAppBarWindow(IntPtr target, AppBarEdge dockingPosition)
        {
            throw new PlatformNotSupportedException("The operation is not supported until Windows 10 Anniversary Update, Version 1607 (Build 14393).");
        }

        public static void MoveAppBarWindow(IntPtr target, AppBarEdge dockingPosition)
        {
            throw new PlatformNotSupportedException("The operation is not supported until Windows 10 Anniversary Update, Version 1607 (Build 14393).");
        }

        public static void ResizeAppBarWindow(IntPtr target, double newWidth, double newHeight)
        {
            throw new PlatformNotSupportedException("The operation is not supported until Windows 10 Anniversary Update, Version 1607 (Build 14393).");
        }

        public static void RemoveAppBarWindow(IntPtr target)
        {
            throw new PlatformNotSupportedException("The operation is not supported until Windows 10 Anniversary Update, Version 1607 (Build 14393).");
        }

    }
}