<DllImport("user32.dll", SetLastError:=True, Charset:=Charset.Ansi)> _
Public Function bool WinHelp(hWndMain As IntPtr, _
<MarshalAs(UnmanagedType.LPStr)>lpszHelp As String, _
uCommand As UInteger, _
dwData As UInteger) As <MarshalAs(UnmanagedType.Bool)> Boolean
End function
IntPtr ParentHWnd = new IntPtr(0);
ParentHWnd = FindWindow(lpszClass, lpszWindow);
if (!ParentHWnd.Equals(IntPtr.Zero))
{
bool ret = WinHelp(ParentHWnd, "Your help file.hlp", HELP_CONTEXT, YOUR_CONTEXT_SENSITIVE_HELP_ID);
}
Alternative Managed API:
Do you know one? Please contribute it!
The WinHelp API
2/6/2012 6:32:12 AM - -202.74.138.1
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).