Permalink
Browse files

Merge pull request #12 from Grabacr07/propose/args_update

Update IApplicationView method args
  • Loading branch information...
2 parents ab252fa + 09d0d8e commit 4211ae6d5b34f351198869ef0a551b5e59416220 @Grabacr07 committed on GitHub Aug 8, 2016
Showing with 20 additions and 4 deletions.
  1. +20 −4 source/VirtualDesktop/Interop/IApplicationView.cs
@@ -20,7 +20,7 @@ public interface IApplicationView
int GetVisibility(out int visibility);
- int SetCloak(int /* APPLICATION_VIEW_CLOAK_TYPE */ cloakType, int unknown);
+ int SetCloak(APPLICATION_VIEW_CLOAK_TYPE cloakType, int unknown);
int GetPosition(ref Guid guid /* GUID for IApplicationViewPosition */, out IntPtr /* IApplicationViewPosition** */ position);
@@ -58,9 +58,9 @@ public interface IApplicationView
int CanReceiveInput(out bool canReceiveInput);
- int GetCompatibilityPolicyType(out int /* APPLICATION_VIEW_COMPATIBILITY_POLICY* */ flags);
+ int GetCompatibilityPolicyType(out APPLICATION_VIEW_COMPATIBILITY_POLICY flags);
- int SetCompatibilityPolicyType(int /* APPLICATION_VIEW_COMPATIBILITY_POLICY */ flags);
+ int SetCompatibilityPolicyType(APPLICATION_VIEW_COMPATIBILITY_POLICY flags);
int GetPositionPriority(out IntPtr /* IShellPositionerPriority** */ priority);
@@ -86,7 +86,7 @@ public interface IApplicationView
int Flash();
- int GetRootSwitchableOwner(out IntPtr /* IApplicationView** */ rootSwitchableOwner);
+ int GetRootSwitchableOwner(out IApplicationView rootSwitchableOwner);
int EnumerateOwnershipTree(out IObjectArray ownershipTree);
@@ -113,4 +113,20 @@ public struct Rect
public int Right;
public int Bottom;
}
+
+ public enum APPLICATION_VIEW_CLOAK_TYPE : int
+ {
+ AVCT_NONE = 0,
+ AVCT_DEFAULT = 1,
+ AVCT_VIRTUAL_DESKTOP = 2
+ }
+
+ public enum APPLICATION_VIEW_COMPATIBILITY_POLICY : int
+ {
+ AVCP_NONE = 0,
+ AVCP_SMALL_SCREEN = 1,
+ AVCP_TABLET_SMALL_SCREEN = 2,
+ AVCP_VERY_SMALL_SCREEN = 3,
+ AVCP_HIGH_SCALE_FACTOR = 4
+ }
}

0 comments on commit 4211ae6

Please sign in to comment.