Skip to content

Commit

Permalink
Fix invalid ComVisible attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
hughbe committed May 4, 2020
1 parent d851dac commit 4d9d53d
Show file tree
Hide file tree
Showing 40 changed files with 20 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("3050f5da-98b5-11cf-bb82-00aa00bdce0b")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IHTMLDOMNode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("626FC520-A41E-11cf-A731-00A0C9082637")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IHTMLDocument
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("332C4425-26CB-11D0-B483-00C04FD90119")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
internal interface IHTMLDocument2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("3050F485-98B5-11CF-BB82-00AA00BDCE0B")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IHTMLDocument3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("3050F69A-98B5-11CF-BB82-00AA00BDCE0B")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IHTMLDocument4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("3050F1FF-98B5-11CF-BB82-00AA00BDCE0B")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IHTMLElement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("3050f434-98b5-11cf-bb82-00aa00bdce0b")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IHTMLElement2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("3050f673-98b5-11cf-bb82-00aa00bdce0b")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IHTMLElement3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("3050F21F-98B5-11CF-BB82-00AA00BDCE0B")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IHTMLElementCollection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("3050F32D-98B5-11CF-BB82-00AA00BDCE0B")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IHTMLEventObj
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("332C4426-26CB-11D0-B483-00C04FD90119")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IHTMLFramesCollection2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("163BB1E0-6E00-11CF-837A-48DC04C10000")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IHTMLLocation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("3050f35c-98b5-11cf-bb82-00aa00bdce0b")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IHTMLScreen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("3050F25E-98B5-11CF-BB82-00AA00BDCE0B")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IHTMLStyle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("332C4427-26CB-11D0-B483-00C04FD90119")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IHTMLWindow2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("3050f4ae-98b5-11cf-bb82-00aa00bdce0b")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IHTMLWindow3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("3050f6cf-98b5-11cf-bb82-00aa00bdce0b")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IHTMLWindow4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("FECEAAA2-8405-11CF-8BA1-00AA00476DA6")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IOmHistory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ internal partial class Interop
{
internal partial class Mshtml
{
[ComVisible(true)]
[ComImport]
[Guid("FECEAAA5-8405-11CF-8BA1-00AA00476DA6")]
[InterfaceType(ComInterfaceType.InterfaceIsDual)]
public interface IOmNavigator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ internal static partial class Interop
{
internal static partial class UiaCore
{
[ComVisible(true)]
[Guid("76d12d7e-b227-4417-9ce2-42642ffa896a")]
public enum ExpandCollapseState
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ internal static partial class Interop
internal static partial class UiaCore
{
[ComImport]
[ComVisible(true)]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("F8B80ADA-2C44-48D0-89BE-5FF23C9CD875")]
public unsafe interface IAccessibleEx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ internal static partial class Interop
internal static partial class UiaCore
{
[ComImport]
[ComVisible(true)]
[Guid("d847d3a5-cab0-4a98-8c32-ecb45c59ad24")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IExpandCollapseProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ internal static partial class Interop
internal static partial class UiaCore
{
[ComImport]
[ComVisible(true)]
[Guid("d02541f1-fb81-4d64-ae32-f520f8a6dbd1")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IGridItemProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ internal static partial class Interop
internal static partial class UiaCore
{
[ComImport]
[ComVisible(true)]
[Guid("b17d6187-0907-464b-a168-0ef17a1572b1")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IGridProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ internal static partial class UiaCore
/// Menu items
/// </summary>
[ComImport]
[ComVisible(true)]
[Guid("54fcb24b-e18e-47a2-b4d3-eccbe77599a2")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IInvokeProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ internal static partial class UiaCore
[ComImport]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("E44C3566-915D-4070-99C6-047BFF5A08F5")]
[ComVisible(true)]
public interface ILegacyIAccessibleProvider
{
void Select(int flagsSelect);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ internal static partial class Interop
internal static partial class UiaCore
{
[ComImport]
[ComVisible(true)]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("36dc7aef-33e6-4691-afe1-2be7274b3d33")]
public interface IRangeValueProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ internal static partial class UiaCore
/// interface, which is derived from this, and has some additional methods.
/// </summary>
[ComImport]
[ComVisible(true)]
[Guid("f7063da8-8359-439c-9297-bbc5299a7d87")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IRawElementProviderFragment : IRawElementProviderSimple
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ internal static partial class UiaCore
/// interface.
/// </summary>
[ComImport]
[ComVisible(true)]
[Guid("620ce2a5-ab8f-40a9-86cb-de3c75599b58")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IRawElementProviderFragmentRoot : IRawElementProviderFragment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ internal static partial class UiaCore
/// Implemented by providers which want to provide information about or want to
/// reposition contained HWND-based elements.
/// </summary>
[ComVisible(true)]
[ComImport]
[Guid("1d5df27c-8947-4425-b8d9-79787bb460b8")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IRawElementProviderHwndOverride : IRawElementProviderSimple
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ internal static partial class Interop
internal static partial class UiaCore
{
[ComImport]
[ComVisible(true)]
[Guid("D6DD68D1-86FD-4332-8666-9ABEDEA2D24C")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IRawElementProviderSimple
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ internal static partial class UiaCore
/// This allows them to be scrolled into view using known API's based on the control in question.
/// </summary>
[ComImport]
[ComVisible(true)]
[Guid("2360c714-4bf1-4b26-ba65-9b21316127eb")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IScrollItemProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ internal static partial class UiaCore
/// </summary>
[ComImport]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[ComVisible(true)]
[Guid("2acad808-b2d4-452d-a407-91ff1ad167b2")]
public interface ISelectionItemProvider
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ internal static partial class UiaCore
/// ISelectionProvider public interface instead.
/// </remarks>
[ComImport]
[ComVisible(true)]
[Guid("fb8b03af-3bdf-48d4-bd36-1a65793be168")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface ISelectionProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ internal static partial class Interop
internal static partial class UiaCore
{
[ComImport]
[ComVisible(true)]
[Guid("b9734fa6-771f-4d78-9c90-2517999349cd")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface ITableItemProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ internal static partial class Interop
internal static partial class UiaCore
{
[ComImport]
[ComVisible(true)]
[Guid("9c860395-97b3-490a-b52a-858cc22af166")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface ITableProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ internal static partial class Interop
internal static partial class UiaCore
{
[ComImport]
[ComVisible(true)]
[Guid("56D00BD0-C4F4-433C-A836-1A52A57E0892")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IToggleProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ internal static partial class Interop
internal static partial class UiaCore
{
[ComImport]
[ComVisible(true)]
[Guid("c7935180-6fb3-4201-b174-7df73adbf64a")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IValueProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ internal static partial class UiaCore
/// <summary>
/// Directions for navigation the UIAutomation tree
/// </summary>
[ComVisible(true)]
[Guid("670c3006-bf4c-428b-8534-e1848f645122")]
public enum NavigateDirection
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// See the LICENSE file in the project root for more information.

using System;
using System.Runtime.InteropServices;

internal static partial class Interop
{
Expand All @@ -12,8 +11,6 @@ internal static partial class UiaCore
/// <summary>
/// Logical structure change flags
/// </summary>
[ComVisible(true)]
[Guid("e4cfef41-071d-472c-a65c-c14f59ea81eb")]
public enum StructureChangeType
{
/// <summary>
Expand Down

0 comments on commit 4d9d53d

Please sign in to comment.