|
// ------------------------------------------------------------------------------
// <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
{
/// <content>
/// Contains extern methods from "OLEAUT32.dll".
/// </content>
internal static partial class PInvoke
{
/// <summary>Obtains the error information pointer set by the previous call to SetErrorInfo in the current logical thread.</summary>
/// <param name="dwReserved">Reserved for future use. Must be zero.</param>
/// <param name="pperrinfo">An error object.</param>
/// <returns>
/// <para>This function can return one of these values. </para>
/// <para>This doc was truncated.</para>
/// </returns>
/// <remarks>
/// <para>This function returns a pointer to the most recently set <a href="https://docs.microsoft.com/previous-versions/windows/desktop/api/oaidl/nn-oaidl-ierrorinfo">IErrorInfo</a> pointer in the current logical thread. It transfers ownership of the error object to the caller, and clears the error state for the thread. Making a COM call that goes through a proxy-stub will clear any existing error object for the calling thread. A called object should not make any such calls after calling <a href="https://docs.microsoft.com/previous-versions/windows/desktop/api/oleauto/nf-oleauto-seterrorinfo">SetErrorInfo</a> and before returning. The caller should not make any such calls after the call returns and before calling <b>GetErrorInfo</b>. As a rule of thumb, an interface method should return as soon as possible after calling <b>SetErrorInfo</b>, and the caller should call <b>GetErrorInfo</b> as soon as possible after the call returns.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/oleauto/nf-oleauto-geterrorinfo#">Read more on docs.microsoft.com</see>.</para>
/// </remarks>
[DllImport("OLEAUT32.dll", ExactSpelling = true),DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
internal static extern unsafe winmdroot.Foundation.HRESULT GetErrorInfo(uint dwReserved, winmdroot.System.Com.IErrorInfo** pperrinfo);
/// <inheritdoc cref="LoadTypeLib(winmdroot.Foundation.PCWSTR, winmdroot.System.Com.ITypeLib**)"/>
internal static unsafe winmdroot.Foundation.HRESULT LoadTypeLib(string szFile, winmdroot.System.Com.ITypeLib** pptlib)
{
fixed (char* szFileLocal = szFile)
{
winmdroot.Foundation.HRESULT __result = PInvoke.LoadTypeLib(szFileLocal, pptlib);
return __result;
}
}
/// <summary>Loads and registers a type library.</summary>
/// <param name="szFile">The name of the file from which the method should attempt to load a type library.</param>
/// <param name="pptlib">The loaded type library.</param>
/// <returns>
/// <para>This function can return one of these values. </para>
/// <para>This doc was truncated.</para>
/// </returns>
/// <remarks>
/// <para>The function <b>LoadTypeLib</b> loads a type library (usually created with MkTypLib) that is stored in the specified file. If <i>szFile</i> specifies only a file name without any path, <b>LoadTypeLib</b> searches for the file and proceeds as follows: </para>
/// <para>This doc was truncated.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/oleauto/nf-oleauto-loadtypelib#">Read more on docs.microsoft.com</see>.</para>
/// </remarks>
[DllImport("OLEAUT32.dll", ExactSpelling = true),DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
internal static extern unsafe winmdroot.Foundation.HRESULT LoadTypeLib(winmdroot.Foundation.PCWSTR szFile, winmdroot.System.Com.ITypeLib** pptlib);
/// <inheritdoc cref="OleCreateFontIndirect(winmdroot.System.Ole.FONTDESC*, global::System.Guid*, void**)"/>
[SupportedOSPlatform("windows5.0")]
internal static unsafe winmdroot.Foundation.HRESULT OleCreateFontIndirect(in winmdroot.System.Ole.FONTDESC lpFontDesc, in global::System.Guid riid, out void* lplpvObj)
{
fixed (void** lplpvObjLocal = &lplpvObj)
{
fixed (global::System.Guid* riidLocal = &riid)
{
fixed (winmdroot.System.Ole.FONTDESC* lpFontDescLocal = &lpFontDesc)
{
winmdroot.Foundation.HRESULT __result = PInvoke.OleCreateFontIndirect(lpFontDescLocal, riidLocal, lplpvObjLocal);
return __result;
}
}
}
}
/// <summary>Creates and initializes a standard font object using an initial description of the font's properties in a FONTDESC structure.</summary>
/// <param name="lpFontDesc">Address of a caller-allocated, <a href="https://docs.microsoft.com/windows/desktop/api/olectl/ns-olectl-fontdesc">FONTDESC</a> structure containing the initial state of the font. This value must not be <b>NULL</b>.</param>
/// <param name="riid">Reference to the identifier of the interface describing the type of interface pointer to return in <i>lplpvObj</i>.</param>
/// <param name="lplpvObj">Address of pointer variable that receives the interface pointer requested in riid. Upon successful return, this parameter contains the requested interface pointer on the newly created font object. If successful, the caller is responsible to call Release through this interface pointer when the new object is no longer needed. If unsuccessful, the value of is set to <b>NULL</b>.</param>
/// <returns>
/// <para>This function returns S_OK on success. Other possible values include the following. </para>
/// <para>This doc was truncated.</para>
/// </returns>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/olectl/nf-olectl-olecreatefontindirect">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
[DllImport("OLEAUT32.dll", ExactSpelling = true),DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
[SupportedOSPlatform("windows5.0")]
internal static extern unsafe winmdroot.Foundation.HRESULT OleCreateFontIndirect(winmdroot.System.Ole.FONTDESC* lpFontDesc, global::System.Guid* riid, void** lplpvObj);
/// <inheritdoc cref="OleCreatePropertyFrame(winmdroot.Foundation.HWND, uint, uint, winmdroot.Foundation.PCWSTR, uint, winmdroot.System.Com.IUnknown**, uint, global::System.Guid*, uint, uint, void*)"/>
[SupportedOSPlatform("windows5.0")]
internal static unsafe winmdroot.Foundation.HRESULT OleCreatePropertyFrame(winmdroot.Foundation.HWND hwndOwner, uint x, uint y, string lpszCaption, uint cObjects, winmdroot.System.Com.IUnknown** ppUnk, uint cPages, in global::System.Guid pPageClsID, uint lcid)
{
fixed (global::System.Guid* pPageClsIDLocal = &pPageClsID)
{
fixed (char* lpszCaptionLocal = lpszCaption)
{
winmdroot.Foundation.HRESULT __result = PInvoke.OleCreatePropertyFrame(hwndOwner, x, y, lpszCaptionLocal, cObjects, ppUnk, cPages, pPageClsIDLocal, lcid, default, default);
return __result;
}
}
}
/// <summary>Invokes a new property frame, that is, a property sheet dialog box, whose parent is hwndOwner, where the dialog is positioned at the point (x,y) in the parent window and has the caption lpszCaption.</summary>
/// <param name="hwndOwner">Handle to the parent window of the resulting property sheet dialog box.</param>
/// <param name="x">Reserved. Horizontal position for the dialog box relative to <i>hwndOwner</i>.</param>
/// <param name="y">Reserved. Vertical position for the dialog box relative to <i>hwndOwner</i>.</param>
/// <param name="lpszCaption">Pointer to the string used for the caption of the dialog box.</param>
/// <param name="cObjects">Number of object pointers passed in <i>ppUnk</i>.</param>
/// <param name="ppUnk">An array of <a href="https://docs.microsoft.com/windows/desktop/api/unknwn/nn-unknwn-iunknown">IUnknown</a> pointers on the objects for which this property sheet is being invoked. The number of elements in the array is specified by <i>cObjects</i>. These pointers are passed to each property page through <a href="https://docs.microsoft.com/windows/desktop/api/ocidl/nf-ocidl-ipropertypage-setobjects">IPropertyPage::SetObjects</a>.</param>
/// <param name="cPages">Number of property pages specified in <i>pPageCIsID</i>.</param>
/// <param name="pPageClsID">Array of size <i>cPages</i> containing the CLSIDs of each property page to display in the property sheet.</param>
/// <param name="lcid">Locale identifier to use for the property sheet. Property pages can retrieve this identifier through <a href="https://docs.microsoft.com/windows/desktop/api/ocidl/nf-ocidl-ipropertypagesite-getlocaleid">IPropertyPageSite::GetLocaleID</a>.</param>
/// <param name="dwReserved">Reserved for future use; must be zero.</param>
/// <param name="pvReserved">Reserved for future use; must be <b>NULL</b>.</param>
/// <returns>
/// <para>This function supports the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following: </para>
/// <para>This doc was truncated.</para>
/// </returns>
/// <remarks>
/// <para>The property pages to be displayed are identified with <i>pPageClsID</i>, which is an array of <i>cPages</i> <a href="https://docs.microsoft.com/windows/desktop/com/clsid">CLSID</a> values. The objects that are affected by this property sheet are identified in <i>ppUnk</i>, an array of size <i>cObjects</i> containing <a href="https://docs.microsoft.com/windows/desktop/api/unknwn/nn-unknwn-iunknown">IUnknown</a> pointers. This function always creates a modal dialog box and does not return until the dialog box is closed.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/olectl/nf-olectl-olecreatepropertyframe#">Read more on docs.microsoft.com</see>.</para>
/// </remarks>
[DllImport("OLEAUT32.dll", ExactSpelling = true),DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
[SupportedOSPlatform("windows5.0")]
internal static extern unsafe winmdroot.Foundation.HRESULT OleCreatePropertyFrame(winmdroot.Foundation.HWND hwndOwner, uint x, uint y, winmdroot.Foundation.PCWSTR lpszCaption, uint cObjects, winmdroot.System.Com.IUnknown** ppUnk, uint cPages, global::System.Guid* pPageClsID, uint lcid, uint dwReserved, void* pvReserved);
/// <inheritdoc cref="OleCreatePropertyFrameIndirect(winmdroot.System.Ole.OCPFIPARAMS*)"/>
[SupportedOSPlatform("windows5.0")]
internal static unsafe winmdroot.Foundation.HRESULT OleCreatePropertyFrameIndirect(in winmdroot.System.Ole.OCPFIPARAMS lpParams)
{
fixed (winmdroot.System.Ole.OCPFIPARAMS* lpParamsLocal = &lpParams)
{
winmdroot.Foundation.HRESULT __result = PInvoke.OleCreatePropertyFrameIndirect(lpParamsLocal);
return __result;
}
}
/// <summary>Creates a property frame, that is, a property sheet dialog box, based on a structure (OCPFIPARAMS) that contains the parameters, rather than specifying separate parameters as when calling OleCreatePropertyFrame.</summary>
/// <param name="lpParams">Pointer to the caller-allocated structure containing the creation parameters for the dialog box.</param>
/// <returns>
/// <para>This function supports the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following: </para>
/// <para>This doc was truncated.</para>
/// </returns>
/// <remarks>
/// <para>Besides <b>cbStructSize</b> (the size of the structure) and <b>dispIDInitialProperty</b>, all of the members of the <a href="https://docs.microsoft.com/windows/desktop/api/olectl/ns-olectl-ocpfiparams">OCPFIPARAMS</a> structure have the same semantics as the parameters for <a href="https://docs.microsoft.com/windows/desktop/api/olectl/nf-olectl-olecreatepropertyframe">OleCreatePropertyFrame</a>. When <i>dispIDInitialProperty</i> is DISPID_UNKNOWN, the behavior of the two functions is identical. Working in conjunction with <a href="https://docs.microsoft.com/windows/desktop/api/ocidl/nn-ocidl-iperpropertybrowsing">IPerPropertyBrowsing</a> and <a href="https://docs.microsoft.com/windows/desktop/api/ocidl/nn-ocidl-ipropertypage2">IPropertyPage2</a>, <i>dispIDInitialProperty</i> allows the caller to specify which single property should be highlighted when the dialog box is made visible. This feature is not available when using <a href="https://docs.microsoft.com/windows/desktop/api/olectl/nf-olectl-olecreatepropertyframe">OleCreatePropertyFrame</a>. To determine the page and property to show initially, the property frame will do the following: </para>
/// <para>This doc was truncated.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/olectl/nf-olectl-olecreatepropertyframeindirect#">Read more on docs.microsoft.com</see>.</para>
/// </remarks>
[DllImport("OLEAUT32.dll", ExactSpelling = true),DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
[SupportedOSPlatform("windows5.0")]
internal static extern unsafe winmdroot.Foundation.HRESULT OleCreatePropertyFrameIndirect(winmdroot.System.Ole.OCPFIPARAMS* lpParams);
/// <inheritdoc cref="VarFormat(winmdroot.System.Variant.VARIANT*, winmdroot.Foundation.PWSTR, winmdroot.System.Ole.VARFORMAT_FIRST_DAY, winmdroot.System.Ole.VARFORMAT_FIRST_WEEK, uint, winmdroot.Foundation.BSTR*)"/>
internal static unsafe winmdroot.Foundation.HRESULT VarFormat(in winmdroot.System.Variant.VARIANT pvarIn, winmdroot.Foundation.PWSTR pstrFormat, winmdroot.System.Ole.VARFORMAT_FIRST_DAY iFirstDay, winmdroot.System.Ole.VARFORMAT_FIRST_WEEK iFirstWeek, uint dwFlags, winmdroot.Foundation.BSTR* pbstrOut)
{
fixed (winmdroot.System.Variant.VARIANT* pvarInLocal = &pvarIn)
{
winmdroot.Foundation.HRESULT __result = PInvoke.VarFormat(pvarInLocal, pstrFormat, iFirstDay, iFirstWeek, dwFlags, pbstrOut);
return __result;
}
}
/// <summary>Formats a variant into string form by parsing a format string.</summary>
/// <param name="pvarIn">The variant.</param>
/// <param name="pstrFormat">The format string. For example "mm-dd-yy".</param>
/// <param name="iFirstDay">
/// <para>First day of the week.</para>
/// <para></para>
/// <para>This doc was truncated.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/oleauto/nf-oleauto-varformat#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <param name="iFirstWeek">
/// <para>First week of the year. </para>
/// <para>This doc was truncated.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/oleauto/nf-oleauto-varformat#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <param name="dwFlags">Flags that control the formatting process. The only flags that can be set are VAR_CALENDAR_HIJRI or VAR_FORMAT_NOSUBSTITUTE.</param>
/// <param name="pbstrOut">The formatted string that represents the variant.</param>
/// <returns>
/// <para>This function can return one of these values. </para>
/// <para>This doc was truncated.</para>
/// </returns>
/// <remarks>This function uses the user's default locale while calling <a href="https://docs.microsoft.com/previous-versions/windows/desktop/api/oleauto/nf-oleauto-vartokenizeformatstring">VarTokenizeFormatString</a> and <a href="https://docs.microsoft.com/previous-versions/windows/desktop/api/oleauto/nf-oleauto-varformatfromtokens">VarFormatFromTokens</a>.</remarks>
[DllImport("OLEAUT32.dll", ExactSpelling = true),DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
internal static extern unsafe winmdroot.Foundation.HRESULT VarFormat(winmdroot.System.Variant.VARIANT* pvarIn, winmdroot.Foundation.PWSTR pstrFormat, winmdroot.System.Ole.VARFORMAT_FIRST_DAY iFirstDay, winmdroot.System.Ole.VARFORMAT_FIRST_WEEK iFirstWeek, uint dwFlags, winmdroot.Foundation.BSTR* pbstrOut);
}
}
|