|
// ------------------------------------------------------------------------------
// <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 "hhctrl.ocx".
/// </content>
internal static partial class PInvoke
{
/// <inheritdoc cref="HtmlHelp(winmdroot.Foundation.HWND, winmdroot.Foundation.PCWSTR, winmdroot.Data.HtmlHelp.HTML_HELP_COMMAND, nuint)"/>
internal static unsafe winmdroot.Foundation.HWND HtmlHelp(winmdroot.Foundation.HWND hwndCaller, string pszFile, winmdroot.Data.HtmlHelp.HTML_HELP_COMMAND uCommand, nuint dwData)
{
fixed (char* pszFileLocal = pszFile)
{
winmdroot.Foundation.HWND __result = PInvoke.HtmlHelp(hwndCaller, pszFileLocal, uCommand, dwData);
return __result;
}
}
/// <summary>Displays a help window. (Unicode)</summary>
/// <param name="hwndCaller">
/// <para>Specifies the handle (<i>hwnd</i>) of the window calling <b>HtmlHelp</b>. The help window is owned by this window.</para>
/// <para>When the help window is closed, <b>HtmlHelp</b> will return focus to the owner unless the owner is the desktop. If <i>hwndCaller</i> is the desktop, then the operating system determines where focus is returned. In addition, if <b>HtmlHelp</b> sends any notification messages from the help window, they are sent to <i>hwndCaller</i> as long as you have enabled <a href="https://docs.microsoft.com/previous-versions/windows/desktop/htmlhelp/about-notification-messages">notification message</a> tracking in the help window definition.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/htmlhelp/nf-htmlhelp-htmlhelpw#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <param name="pszFile">
/// <para>Depending on the <i>uCommand</i> value, specifies the <a href="https://docs.microsoft.com/previous-versions/windows/desktop/htmlhelp/about-html-help-urls">file path</a> to either a compiled help (.chm) file, or a topic file within a specified help file.</para>
/// <para>A <a href="https://docs.microsoft.com/previous-versions/windows/desktop/legacy/ms644703(v=vs.85)">window type</a> name can also be specified, preceded with a greater-than (>) character. If the specified command does not require a file, this value may be NULL.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/htmlhelp/nf-htmlhelp-htmlhelpw#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <param name="uCommand">Specifies the <a href="https://docs.microsoft.com/previous-versions/windows/desktop/htmlhelp/about-commands">command</a> to complete.</param>
/// <param name="dwData">Specifies any data that may be required, based on the value of the <i>uCommand</i> parameter.</param>
/// <returns>
/// <para>Depending on the specified <i>uCommand</i> and the result, <b>HtmlHelp</b> returns one or both of the following: </para>
/// <para>This doc was truncated.</para>
/// </returns>
/// <remarks>
/// <para>The syntax applies to ANSI character sets. When using a Unicode character set, the type of the <i>pszFile</i> parameter should be "LPCTSTR ". When using the HTML Help API, set the stack size of the hosting executable to at least 100k. If the defined stack size is too small, then the thread created to run HTML Help will also be created with this stack size, and failure could result. Optionally, you can remove /STACK from the link command line, and remove any STACK setting in the executable's DEF file (default stack size is 1MB in this case). You can also you can set the stack size using the /Fnumber compiler command (the compiler will pass this to the linker as /STACK).</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/htmlhelp/nf-htmlhelp-htmlhelpw#">Read more on docs.microsoft.com</see>.</para>
/// </remarks>
internal static winmdroot.Foundation.HWND HtmlHelp(winmdroot.Foundation.HWND hwndCaller, winmdroot.Foundation.PCWSTR pszFile, winmdroot.Data.HtmlHelp.HTML_HELP_COMMAND uCommand, nuint dwData)
{
winmdroot.Foundation.HWND __retVal = LocalExternFunction(hwndCaller, pszFile, (uint)uCommand, dwData);
return __retVal;
[DllImport("hhctrl.ocx", ExactSpelling = true, EntryPoint = "HtmlHelpW"),DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
static extern winmdroot.Foundation.HWND LocalExternFunction(winmdroot.Foundation.HWND hwndCaller, winmdroot.Foundation.PCWSTR pszFile, uint uCommand, nuint dwData);
}
}
}
|