using System; using System.Runtime.InteropServices; using Vanara.InteropServices; namespace Vanara.PInvoke { public static partial class Shell32 { /// Exposes a method that can be used by an accessibility application. // https://docs.microsoft.com/en-us/windows/win32/api/shobjidl/nn-shobjidl-iaccessibleobject [PInvokeData("shobjidl.h", MSDNShortId = "NN:shobjidl.IAccessibleObject")] [ComImport, Guid("95A391C5-9ED4-4c28-8401-AB9E06719E11"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IAccessibleObject { /// /// Sets text that is retrieved by IAccessible::get_accName which accessibility tools use to obtain the Name Property of an object. /// /// /// Type: LPCWSTR /// A pointer to a null-terminated, Unicode string containing the name. /// /// /// Type: HRESULT /// If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. /// // https://docs.microsoft.com/en-us/windows/win32/api/shobjidl/nf-shobjidl-iaccessibleobject-setaccessiblename HRESULT // SetAccessibleName( LPCWSTR pszName ); [PreserveSig] HRESULT SetAccessibleName([MarshalAs(UnmanagedType.LPWStr)] string pszName); } } }