Skip to content

Commit

Permalink
Add comments about the COM interop interface changes
Browse files Browse the repository at this point in the history
  • Loading branch information
driver1998 committed Aug 11, 2024
1 parent e6e884b commit 4d76b4a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Mile.Xaml.Managed/Interop/ICoreWindowInterop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ namespace Mile.Xaml.Interop
[Guid("45D64A29-A63E-4CB6-B498-5781D298CB4F")]
public partial interface ICoreWindowInterop
{
// Original declaration: IntPtr WindowHandle { get; }
IntPtr GetWindowHandle();

// Original declaration: bool MessageHandled { set; }
void SetMessageHandled([MarshalAs(UnmanagedType.I1)]bool messageHandled);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public partial interface IDesktopWindowXamlSourceNative2
{
void AttachToWindow(IntPtr parentWnd);

// Original declaration: IntPtr WindowHandle { get; }
IntPtr GetWindowHandle();

[return:MarshalAs(UnmanagedType.I1)]
Expand Down
3 changes: 3 additions & 0 deletions Mile.Xaml.Managed/Interop/IWindowPrivate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ namespace Mile.Xaml.Interop
[Guid("06636C29-5A17-458D-8EA2-2422D997A922")]
public partial interface IWindowPrivate
{
// IInspectable methods
void GetIids(out int iidCount, out IntPtr iids);
void GetRuntimeClassName(out IntPtr className);
void GetTrustLevel(out int trustLevel);

// Original declaration: bool TransparentBackground { get; set; }
[return: MarshalAs(UnmanagedType.I1)] bool GetTransparentBackground();
void SetTransparentBackground([MarshalAs(UnmanagedType.I1)] bool transparentBackground);
}
Expand Down

0 comments on commit 4d76b4a

Please sign in to comment.