|
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
#pragma warning disable CS1591,CS1573,CS0465,CS0649,CS8019,CS1570,CS1584,CS1658,CS0436,CS8981
using global::System;
using global::System.Diagnostics;
using global::System.Diagnostics.CodeAnalysis;
using global::System.Runtime.CompilerServices;
using global::System.Runtime.InteropServices;
using global::System.Runtime.Versioning;
using winmdroot = global::Windows.Win32;
namespace Windows.Win32
{
namespace UI.Controls.RichEdit
{
[Guid("00020D00-0000-0000-C000-000000000046")]
[SupportedOSPlatform("windows6.0.6000")]
[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.151+58e949951d.RR")]
internal unsafe partial struct IRichEditOle
:IVTable<IRichEditOle,IRichEditOle.Vtbl>,IComIID {
/// <inheritdoc cref="QueryInterface(global::System.Guid*, void**)"/>
internal unsafe winmdroot.Foundation.HRESULT QueryInterface(in global::System.Guid riid, out void* ppvObject)
{
fixed (void** ppvObjectLocal = &ppvObject)
{
fixed (global::System.Guid* riidLocal = &riid)
{
winmdroot.Foundation.HRESULT __result = this.QueryInterface(riidLocal, ppvObjectLocal);
return __result;
}
}
}
public unsafe winmdroot.Foundation.HRESULT QueryInterface(global::System.Guid* riid, void** ppvObject)
{
return ((delegate *unmanaged [Stdcall]<IRichEditOle*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IRichEditOle*)Unsafe.AsPointer(ref this), riid, ppvObject);
}
public uint AddRef()
{
return ((delegate *unmanaged [Stdcall]<IRichEditOle*,uint>)lpVtbl[1])((IRichEditOle*)Unsafe.AsPointer(ref this));
}
public uint Release()
{
return ((delegate *unmanaged [Stdcall]<IRichEditOle*,uint>)lpVtbl[2])((IRichEditOle*)Unsafe.AsPointer(ref this));
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT GetClientSite(IRichEditOle* pThis, winmdroot.System.Ole.IOleClientSite** lplpolesite)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.GetClientSite(lplpolesite);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Retrieves an IOleClientSite interface to be used when creating a new object. All objects inserted into a rich edit control must use client site interfaces returned by this function. A client site may be used with exactly one object.</summary>
/// <param name="lplpolesite">
/// <para>Type: <b>LPOLECLIENTSITE*</b> The address of the <a href="https://docs.microsoft.com/windows/desktop/api/oleidl/nn-oleidl-ioleclientsite">IOleClientSite</a> interface.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-getclientsite#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <returns>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">HRESULT</a></b> Returns <b>S_OK</b> on success, or a failure code otherwise. <b>E_OUTOFMEMORY</b> is returned if memory could not be allocated for the client site.</para>
/// </returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-getclientsite">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe void GetClientSite(winmdroot.System.Ole.IOleClientSite** lplpolesite)
{
((delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.System.Ole.IOleClientSite** ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IRichEditOle*)Unsafe.AsPointer(ref this), lplpolesite).ThrowOnFailure();
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static int GetObjectCount(IRichEditOle* pThis)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
__hr.ThrowOnFailure();
return __object.GetObjectCount();
}
catch (Exception ex)
{
global::System.Environment.FailFast("COM object threw an exception from a non-HRESULT returning method.", ex);
throw;
}
}
/// <summary>Returns the number of objects currently contained in a rich edit control.</summary>
/// <returns>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">LONG</a></b> This method returns the number of objects.</para>
/// </returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-getobjectcount">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public int GetObjectCount()
{
return ((delegate *unmanaged [Stdcall]<IRichEditOle*,int>)lpVtbl[4])((IRichEditOle*)Unsafe.AsPointer(ref this));
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static int GetLinkCount(IRichEditOle* pThis)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
__hr.ThrowOnFailure();
return __object.GetLinkCount();
}
catch (Exception ex)
{
global::System.Environment.FailFast("COM object threw an exception from a non-HRESULT returning method.", ex);
throw;
}
}
/// <summary>Returns the number of objects in a rich edit control that are links.</summary>
/// <returns>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">LONG</a></b> This method returns the number of links.</para>
/// </returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-getlinkcount">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public int GetLinkCount()
{
return ((delegate *unmanaged [Stdcall]<IRichEditOle*,int>)lpVtbl[5])((IRichEditOle*)Unsafe.AsPointer(ref this));
}
/// <inheritdoc cref="GetObject(int, winmdroot.UI.Controls.RichEdit.REOBJECT*, winmdroot.UI.Controls.RichEdit.RICH_EDIT_GET_OBJECT_FLAGS)"/>
internal unsafe void GetObject(int iob, ref winmdroot.UI.Controls.RichEdit.REOBJECT lpreobject, winmdroot.UI.Controls.RichEdit.RICH_EDIT_GET_OBJECT_FLAGS dwFlags)
{
fixed (winmdroot.UI.Controls.RichEdit.REOBJECT* lpreobjectLocal = &lpreobject)
{
this.GetObject(iob, lpreobjectLocal, dwFlags);
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT GetObject(IRichEditOle* pThis, int iob, winmdroot.UI.Controls.RichEdit.REOBJECT* lpreobject, winmdroot.UI.Controls.RichEdit.RICH_EDIT_GET_OBJECT_FLAGS dwFlags)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.GetObject(iob, lpreobject, dwFlags);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Retrieves information, stored in a REOBJECT structure, about an object in a rich edit control.</summary>
/// <param name="iob">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">LONG</a></b> Zero-based index that specifies which object to return information about. If this parameter is <b>REO_IOB_USE_CP</b>, information about the object at the character position specified by the <a href="https://docs.microsoft.com/windows/desktop/api/richole/ns-richole-reobject">REOBJECT</a> structure is returned.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-getobject#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <param name="lpreobject">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/api/richole/ns-richole-reobject">REOBJECT</a>*</b> Structure that receives information about the object. The reference count of the interfaces returned in this structure has been incremented; it is the responsibility of the caller to use the <a href="https://docs.microsoft.com/windows/desktop/api/unknwn/nf-unknwn-iunknown-release">Release</a> method to decrement the count.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-getobject#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <param name="dwFlags">Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">DWORD</a></b></param>
/// <returns>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">HRESULT</a></b> Returns <b>S_OK</b> if successful, or an error value otherwise. <b>E_INVALIDARG</b> is returned if no buffer for the <a href="https://docs.microsoft.com/windows/desktop/api/richole/ns-richole-reobject">REOBJECT</a> structure was given or if the <i>iob</i> value or character position is invalid.</para>
/// </returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-getobject">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe void GetObject(int iob, winmdroot.UI.Controls.RichEdit.REOBJECT* lpreobject, winmdroot.UI.Controls.RichEdit.RICH_EDIT_GET_OBJECT_FLAGS dwFlags)
{
((delegate *unmanaged [Stdcall]<IRichEditOle*,int ,winmdroot.UI.Controls.RichEdit.REOBJECT* ,winmdroot.UI.Controls.RichEdit.RICH_EDIT_GET_OBJECT_FLAGS ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IRichEditOle*)Unsafe.AsPointer(ref this), iob, lpreobject, dwFlags).ThrowOnFailure();
}
/// <inheritdoc cref="InsertObject(winmdroot.UI.Controls.RichEdit.REOBJECT*)"/>
internal unsafe void InsertObject(ref winmdroot.UI.Controls.RichEdit.REOBJECT lpreobject)
{
fixed (winmdroot.UI.Controls.RichEdit.REOBJECT* lpreobjectLocal = &lpreobject)
{
this.InsertObject(lpreobjectLocal);
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT InsertObject(IRichEditOle* pThis, winmdroot.UI.Controls.RichEdit.REOBJECT* lpreobject)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.InsertObject(lpreobject);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Inserts an object into a rich edit control.</summary>
/// <param name="lpreobject">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/api/richole/ns-richole-reobject">REOBJECT</a>*</b> The object information and interfaces. The rich edit control automatically increments the reference count for the interfaces if it holds onto them, so the caller can safely release the interfaces if they are not needed.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-insertobject#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <returns>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">HRESULT</a></b> Returns S_OK on success, or a failure code otherwise. E_OUTOFMEMORY is returned if memory could not be allocated to insert the object.</para>
/// </returns>
/// <remarks>If the <b>cp</b> member of the <a href="https://docs.microsoft.com/windows/desktop/api/richole/ns-richole-reobject">REOBJECT</a> structure is REO_CP_SELECTION, the selection is replaced with the specified object.</remarks>
public unsafe void InsertObject(winmdroot.UI.Controls.RichEdit.REOBJECT* lpreobject)
{
((delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.UI.Controls.RichEdit.REOBJECT* ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IRichEditOle*)Unsafe.AsPointer(ref this), lpreobject).ThrowOnFailure();
}
/// <inheritdoc cref="ConvertObject(int, global::System.Guid*, winmdroot.Foundation.PCSTR)"/>
internal unsafe void ConvertObject(int iob, in global::System.Guid rclsidNew, string lpstrUserTypeNew)
{
fixed (byte* lpstrUserTypeNewLocal = lpstrUserTypeNew is object ? global::System.Text.Encoding.Default.GetBytes(lpstrUserTypeNew) : null)
{
fixed (global::System.Guid* rclsidNewLocal = &rclsidNew)
{
this.ConvertObject(iob, rclsidNewLocal, new winmdroot.Foundation.PCSTR (lpstrUserTypeNewLocal));
}
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT ConvertObject(IRichEditOle* pThis, int iob, global::System.Guid* rclsidNew, winmdroot.Foundation.PCSTR lpstrUserTypeNew)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.ConvertObject(iob, rclsidNew, lpstrUserTypeNew);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Converts an object to a new type. This call reloads the object but does not force an update; the caller must do this.</summary>
/// <param name="iob">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">LONG</a></b> Index of the object to convert. If this parameter is REO_IOB_SELECTION, the selected object is to be converted.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-convertobject#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <param name="rclsidNew">
/// <para>Type: <b>REFCLSID</b> Class identifier of the class to which the object is converted.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-convertobject#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <param name="lpstrUserTypeNew">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">LPCSTR</a></b> User-visible type name of the class to which the object is converted.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-convertobject#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <returns>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">HRESULT</a></b> Returns S_OK on success, or a failure code otherwise. E_INVALIDARG is returned if the index is invalid.</para>
/// </returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-convertobject">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe void ConvertObject(int iob, global::System.Guid* rclsidNew, winmdroot.Foundation.PCSTR lpstrUserTypeNew)
{
((delegate *unmanaged [Stdcall]<IRichEditOle*,int ,global::System.Guid* ,winmdroot.Foundation.PCSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IRichEditOle*)Unsafe.AsPointer(ref this), iob, rclsidNew, lpstrUserTypeNew).ThrowOnFailure();
}
/// <inheritdoc cref="ActivateAs(global::System.Guid*, global::System.Guid*)"/>
internal unsafe void ActivateAs(in global::System.Guid rclsid, in global::System.Guid rclsidAs)
{
fixed (global::System.Guid* rclsidAsLocal = &rclsidAs)
{
fixed (global::System.Guid* rclsidLocal = &rclsid)
{
this.ActivateAs(rclsidLocal, rclsidAsLocal);
}
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT ActivateAs(IRichEditOle* pThis, global::System.Guid* rclsid, global::System.Guid* rclsidAs)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.ActivateAs(rclsid, rclsidAs);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Handles Activate As behavior by unloading all objects of the old class, telling OLE to treat those objects as objects of the new class, and reloading the objects. If objects cannot be reloaded, they are deleted.</summary>
/// <param name="rclsid">
/// <para>Type: <b>REFCLSID</b> Class identifier of the old class.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-activateas#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <param name="rclsidAs">
/// <para>Type: <b>REFCLSID</b> Class identifier of the new class.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-activateas#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <returns>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">HRESULT</a></b> Returns S_OK on success, or a failure code otherwise.</para>
/// </returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-activateas">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe void ActivateAs(global::System.Guid* rclsid, global::System.Guid* rclsidAs)
{
((delegate *unmanaged [Stdcall]<IRichEditOle*,global::System.Guid* ,global::System.Guid* ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IRichEditOle*)Unsafe.AsPointer(ref this), rclsid, rclsidAs).ThrowOnFailure();
}
/// <inheritdoc cref="SetHostNames(winmdroot.Foundation.PCSTR, winmdroot.Foundation.PCSTR)"/>
internal unsafe void SetHostNames(string lpstrContainerApp, string lpstrContainerObj)
{
fixed (byte* lpstrContainerObjLocal = lpstrContainerObj is object ? global::System.Text.Encoding.Default.GetBytes(lpstrContainerObj) : null)
{
fixed (byte* lpstrContainerAppLocal = lpstrContainerApp is object ? global::System.Text.Encoding.Default.GetBytes(lpstrContainerApp) : null)
{
this.SetHostNames(new winmdroot.Foundation.PCSTR (lpstrContainerAppLocal), new winmdroot.Foundation.PCSTR (lpstrContainerObjLocal));
}
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT SetHostNames(IRichEditOle* pThis, winmdroot.Foundation.PCSTR lpstrContainerApp, winmdroot.Foundation.PCSTR lpstrContainerObj)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.SetHostNames(lpstrContainerApp, lpstrContainerObj);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Sets the host names to be given to objects as they are inserted to a rich edit control. The host names are used in the user interface of servers to describe the container context of opened objects.</summary>
/// <param name="lpstrContainerApp">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">LPCSTR</a></b> Null-terminated name of the container application.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-sethostnames#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <param name="lpstrContainerObj">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">LPCSTR</a></b> Null-terminated name of the container document or object.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-sethostnames#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <returns>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">HRESULT</a></b> Returns S_OK on success, or a failure code otherwise. E_OUTOFMEMORY is returned if memory could not be allocated to remember the strings.</para>
/// </returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-sethostnames">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public void SetHostNames(winmdroot.Foundation.PCSTR lpstrContainerApp, winmdroot.Foundation.PCSTR lpstrContainerObj)
{
((delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.Foundation.PCSTR ,winmdroot.Foundation.PCSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IRichEditOle*)Unsafe.AsPointer(ref this), lpstrContainerApp, lpstrContainerObj).ThrowOnFailure();
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT SetLinkAvailable(IRichEditOle* pThis, int iob, winmdroot.Foundation.BOOL fAvailable)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.SetLinkAvailable(iob, fAvailable);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Sets the value of the link-available bit in the object's flags.</summary>
/// <param name="iob">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">LONG</a></b> Index of object whose bit is to be set. If this parameter is REO_IOB_SELECTION, the bit on the selected object is to be set.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-setlinkavailable#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <param name="fAvailable">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">BOOL</a></b> Value used in the set operation. The value can be <b>TRUE</b> or <b>FALSE</b>.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-setlinkavailable#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <returns>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">HRESULT</a></b> Returns S_OK on success, or a failure code otherwise. E_INVALIDARG is returned if the index is invalid.</para>
/// </returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-setlinkavailable">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public void SetLinkAvailable(int iob, winmdroot.Foundation.BOOL fAvailable)
{
((delegate *unmanaged [Stdcall]<IRichEditOle*,int ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((IRichEditOle*)Unsafe.AsPointer(ref this), iob, fAvailable).ThrowOnFailure();
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT SetDvaspect(IRichEditOle* pThis, int iob, uint dvaspect)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.SetDvaspect(iob, dvaspect);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Sets the aspect that a rich edit control uses to draw an object. This call does not change the drawing information cached in the object; this must be done by the caller. The call does cause the object to be redrawn.</summary>
/// <param name="iob">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">LONG</a></b> Index of the object whose aspect is to be set. If this parameter is REO_IOB_SELECTION, the aspect of the selected object is to be set.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-setdvaspect#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <param name="dvaspect">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">DWORD</a></b> Aspect to use when drawing. The values are defined by OLE.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-setdvaspect#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <returns>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">HRESULT</a></b> Returns S_OK on success, or a failure code otherwise. E_INVALIDARG is returned if the index is invalid.</para>
/// </returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-setdvaspect">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public void SetDvaspect(int iob, uint dvaspect)
{
((delegate *unmanaged [Stdcall]<IRichEditOle*,int ,uint ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((IRichEditOle*)Unsafe.AsPointer(ref this), iob, dvaspect).ThrowOnFailure();
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT HandsOffStorage(IRichEditOle* pThis, int iob)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.HandsOffStorage(iob);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Indicates when a rich edit control is to release its reference to the storage interface associated with the specified object. This call does not call the object's IRichEditOle::HandsOffStorage method; the caller must do that.</summary>
/// <param name="iob">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">LONG</a></b> Index of the object whose storage is to be released. If this parameter is REO_IOB_SELECTION, the storage of the selected object is to be released.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-handsoffstorage#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <returns>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">HRESULT</a></b> Returns S_OK on success, or a failure code otherwise. E_INVALIDARG is returned if the index is invalid.</para>
/// </returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-handsoffstorage">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public void HandsOffStorage(int iob)
{
((delegate *unmanaged [Stdcall]<IRichEditOle*,int ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((IRichEditOle*)Unsafe.AsPointer(ref this), iob).ThrowOnFailure();
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT SaveCompleted(IRichEditOle* pThis, int iob, winmdroot.System.Com.StructuredStorage.IStorage* lpstg)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.SaveCompleted(iob, lpstg);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Indicates when the most recent save operation has been completed and that the rich edit control should hold onto a different storage for the object.</summary>
/// <param name="iob">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">LONG</a></b> Index of the object whose storage is being specified. If this parameter is REO_IOB_SELECTION, the selected object is used.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-savecompleted#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <param name="lpstg">
/// <para>Type: <b>LPSTORAGE</b> New storage for the object. If the storage is not <b>NULL</b>, the rich edit control releases any storage it is currently holding for the object and uses this new storage instead.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-savecompleted#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <returns>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">HRESULT</a></b> Returns S_OK on success, or a failure code otherwise. E_INVALIDARG is returned if the index is invalid.</para>
/// </returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-savecompleted">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe void SaveCompleted(int iob, winmdroot.System.Com.StructuredStorage.IStorage* lpstg)
{
((delegate *unmanaged [Stdcall]<IRichEditOle*,int ,winmdroot.System.Com.StructuredStorage.IStorage* ,winmdroot.Foundation.HRESULT>)lpVtbl[14])((IRichEditOle*)Unsafe.AsPointer(ref this), iob, lpstg).ThrowOnFailure();
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT InPlaceDeactivate(IRichEditOle* pThis)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.InPlaceDeactivate();
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Indicates when a rich edit control is to deactivate the currently active in-place object, if any.</summary>
/// <returns>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">HRESULT</a></b> Returns S_OK on success, or a failure code otherwise. If there is no active in-place object, the method succeeds.</para>
/// </returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-inplacedeactivate">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public void InPlaceDeactivate()
{
((delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.Foundation.HRESULT>)lpVtbl[15])((IRichEditOle*)Unsafe.AsPointer(ref this)).ThrowOnFailure();
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT ContextSensitiveHelp(IRichEditOle* pThis, winmdroot.Foundation.BOOL fEnterMode)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.ContextSensitiveHelp(fEnterMode);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Indicates if a rich edit control should transition into or out of context-sensitive help mode. A rich edit control calls the IRichEditOle::ContextSensitiveHelp method of any in-place object which is currently active if a state change is occurring.</summary>
/// <param name="fEnterMode">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">BOOL</a></b> Indicator of whether the control is entering context-sensitive help mode (<b>TRUE</b>) or leaving it (<b>FALSE</b>).</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-contextsensitivehelp#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <returns>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">HRESULT</a></b> Returns S_OK on success, or a failure code otherwise.</para>
/// </returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-contextsensitivehelp">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public void ContextSensitiveHelp(winmdroot.Foundation.BOOL fEnterMode)
{
((delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[16])((IRichEditOle*)Unsafe.AsPointer(ref this), fEnterMode).ThrowOnFailure();
}
/// <inheritdoc cref="GetClipboardData(winmdroot.UI.Controls.RichEdit.CHARRANGE*, uint, winmdroot.System.Com.IDataObject**)"/>
internal unsafe void GetClipboardData(ref winmdroot.UI.Controls.RichEdit.CHARRANGE lpchrg, uint reco, winmdroot.System.Com.IDataObject** lplpdataobj)
{
fixed (winmdroot.UI.Controls.RichEdit.CHARRANGE* lpchrgLocal = &lpchrg)
{
this.GetClipboardData(lpchrgLocal, reco, lplpdataobj);
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT GetClipboardData(IRichEditOle* pThis, winmdroot.UI.Controls.RichEdit.CHARRANGE* lpchrg, uint reco, winmdroot.System.Com.IDataObject** lplpdataobj)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.GetClipboardData(lpchrg, reco, lplpdataobj);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Retrieves a clipboard object for a range in an edit control.</summary>
/// <param name="lpchrg">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/api/richedit/ns-richedit-charrange">CHARRANGE</a>*</b> The range for which to create the clipboard object.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-getclipboarddata#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <param name="reco">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">DWORD</a></b> Unused.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-getclipboarddata#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <param name="lplpdataobj">
/// <para>Type: <b>LPDATAOBJECT*</b> The <a href="https://docs.microsoft.com/windows/desktop/api/objidl/nn-objidl-idataobject">IDataObject</a> interface of the clipboard object representing the range specified in the <i>lpchrg</i> parameter.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-getclipboarddata#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <returns>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">HRESULT</a></b> Returns <b>S_OK</b> on success. If the method fails, it can return one of the following values. </para>
/// <para>This doc was truncated.</para>
/// </returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-getclipboarddata">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe void GetClipboardData(winmdroot.UI.Controls.RichEdit.CHARRANGE* lpchrg, uint reco, winmdroot.System.Com.IDataObject** lplpdataobj)
{
((delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.UI.Controls.RichEdit.CHARRANGE* ,uint ,winmdroot.System.Com.IDataObject** ,winmdroot.Foundation.HRESULT>)lpVtbl[17])((IRichEditOle*)Unsafe.AsPointer(ref this), lpchrg, reco, lplpdataobj).ThrowOnFailure();
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT ImportDataObject(IRichEditOle* pThis, winmdroot.System.Com.IDataObject* lpdataobj, ushort cf, winmdroot.Foundation.HGLOBAL hMetaPict)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.ImportDataObject(lpdataobj, cf, hMetaPict);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Imports a clipboard object into a rich edit control, replacing the current selection.</summary>
/// <param name="lpdataobj">
/// <para>Type: <b>LPDATAOBJECT</b> The clipboard object to import.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-importdataobject#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <param name="cf">
/// <para>Type: <b>CLIPFORMAT</b> Clipboard format to use. A value of zero will use the best available format.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-importdataobject#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <param name="hMetaPict">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">HGLOBAL</a></b> Handle to a metafile containing the icon view of an object. The handle is used only if the <b>DVASPECT_ICON</b> display aspect is required by a <a href="https://docs.microsoft.com/windows/desktop/api/oledlg/nf-oledlg-oleuipastespeciala">Paste Special</a> operation.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-importdataobject#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <returns>
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">HRESULT</a></b> Returns <b>S_OK</b> on success. If the method fails, it can return one of the following values. </para>
/// <para>This doc was truncated.</para>
/// </returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/richole/nf-richole-iricheditole-importdataobject">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe void ImportDataObject(winmdroot.System.Com.IDataObject* lpdataobj, ushort cf, winmdroot.Foundation.HGLOBAL hMetaPict)
{
((delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.System.Com.IDataObject* ,ushort ,winmdroot.Foundation.HGLOBAL ,winmdroot.Foundation.HRESULT>)lpVtbl[18])((IRichEditOle*)Unsafe.AsPointer(ref this), lpdataobj, cf, hMetaPict).ThrowOnFailure();
}
internal unsafe global::Windows.Win32.Foundation.HRESULT QueryInterface<T>(out T* ppv)
where T : unmanaged
{
var hr = this.QueryInterface(typeof(T).GUID, out void* pv);
if (hr.Succeeded)
{
ppv = (T*)pv;
}
else
{
ppv = null;
}
return hr;
}
internal struct Vtbl
{
internal delegate *unmanaged [Stdcall]<IRichEditOle*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,uint> AddRef_2;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,uint> Release_3;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.System.Ole.IOleClientSite** ,winmdroot.Foundation.HRESULT> GetClientSite_4;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,int> GetObjectCount_5;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,int> GetLinkCount_6;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,int ,winmdroot.UI.Controls.RichEdit.REOBJECT* ,winmdroot.UI.Controls.RichEdit.RICH_EDIT_GET_OBJECT_FLAGS ,winmdroot.Foundation.HRESULT> GetObject_7;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.UI.Controls.RichEdit.REOBJECT* ,winmdroot.Foundation.HRESULT> InsertObject_8;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,int ,global::System.Guid* ,winmdroot.Foundation.PCSTR ,winmdroot.Foundation.HRESULT> ConvertObject_9;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,global::System.Guid* ,global::System.Guid* ,winmdroot.Foundation.HRESULT> ActivateAs_10;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.Foundation.PCSTR ,winmdroot.Foundation.PCSTR ,winmdroot.Foundation.HRESULT> SetHostNames_11;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,int ,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> SetLinkAvailable_12;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,int ,uint ,winmdroot.Foundation.HRESULT> SetDvaspect_13;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,int ,winmdroot.Foundation.HRESULT> HandsOffStorage_14;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,int ,winmdroot.System.Com.StructuredStorage.IStorage* ,winmdroot.Foundation.HRESULT> SaveCompleted_15;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.Foundation.HRESULT> InPlaceDeactivate_16;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.Foundation.BOOL ,winmdroot.Foundation.HRESULT> ContextSensitiveHelp_17;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.UI.Controls.RichEdit.CHARRANGE* ,uint ,winmdroot.System.Com.IDataObject** ,winmdroot.Foundation.HRESULT> GetClipboardData_18;
internal delegate *unmanaged [Stdcall]<IRichEditOle*,winmdroot.System.Com.IDataObject* ,ushort ,winmdroot.Foundation.HGLOBAL ,winmdroot.Foundation.HRESULT> ImportDataObject_19;
}
public static void PopulateVTable(Vtbl* vtable)
{
vtable->GetClientSite_4 = &GetClientSite;
vtable->GetObjectCount_5 = &GetObjectCount;
vtable->GetLinkCount_6 = &GetLinkCount;
vtable->GetObject_7 = &GetObject;
vtable->InsertObject_8 = &InsertObject;
vtable->ConvertObject_9 = &ConvertObject;
vtable->ActivateAs_10 = &ActivateAs;
vtable->SetHostNames_11 = &SetHostNames;
vtable->SetLinkAvailable_12 = &SetLinkAvailable;
vtable->SetDvaspect_13 = &SetDvaspect;
vtable->HandsOffStorage_14 = &HandsOffStorage;
vtable->SaveCompleted_15 = &SaveCompleted;
vtable->InPlaceDeactivate_16 = &InPlaceDeactivate;
vtable->ContextSensitiveHelp_17 = &ContextSensitiveHelp;
vtable->GetClipboardData_18 = &GetClipboardData;
vtable->ImportDataObject_19 = &ImportDataObject;
}
private void** lpVtbl;
/// <summary>The IID guid for this interface.</summary>
/// <value>{00020d00-0000-0000-c000-000000000046}</value>
internal static readonly Guid IID_Guid = new Guid(0x00020D00, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46);
static ref readonly Guid IComIID.Guid {
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x00,0x0D,0x02,0x00,0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46 };
return ref Unsafe.As<byte,Guid>(ref MemoryMarshal.GetReference(data));
}
}
[Guid("00020D00-0000-0000-C000-000000000046"),InterfaceType(ComInterfaceType.InterfaceIsIUnknown),ComImport()]
[SupportedOSPlatform("windows6.0.6000")]
internal interface Interface
{
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT GetClientSite(winmdroot.System.Ole.IOleClientSite** lplpolesite);
[PreserveSig()]
int GetObjectCount();
[PreserveSig()]
int GetLinkCount();
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT GetObject(int iob, winmdroot.UI.Controls.RichEdit.REOBJECT* lpreobject, winmdroot.UI.Controls.RichEdit.RICH_EDIT_GET_OBJECT_FLAGS dwFlags);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT InsertObject(winmdroot.UI.Controls.RichEdit.REOBJECT* lpreobject);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT ConvertObject(int iob, global::System.Guid* rclsidNew, winmdroot.Foundation.PCSTR lpstrUserTypeNew);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT ActivateAs(global::System.Guid* rclsid, global::System.Guid* rclsidAs);
[PreserveSig()]
winmdroot.Foundation.HRESULT SetHostNames(winmdroot.Foundation.PCSTR lpstrContainerApp, winmdroot.Foundation.PCSTR lpstrContainerObj);
[PreserveSig()]
winmdroot.Foundation.HRESULT SetLinkAvailable(int iob, winmdroot.Foundation.BOOL fAvailable);
[PreserveSig()]
winmdroot.Foundation.HRESULT SetDvaspect(int iob, uint dvaspect);
[PreserveSig()]
winmdroot.Foundation.HRESULT HandsOffStorage(int iob);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT SaveCompleted(int iob, winmdroot.System.Com.StructuredStorage.IStorage* lpstg);
[PreserveSig()]
winmdroot.Foundation.HRESULT InPlaceDeactivate();
[PreserveSig()]
winmdroot.Foundation.HRESULT ContextSensitiveHelp(winmdroot.Foundation.BOOL fEnterMode);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT GetClipboardData(winmdroot.UI.Controls.RichEdit.CHARRANGE* lpchrg, uint reco, winmdroot.System.Com.IDataObject** lplpdataobj);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT ImportDataObject(winmdroot.System.Com.IDataObject* lpdataobj, ushort cf, winmdroot.Foundation.HGLOBAL hMetaPict);
}
}
}
}
|