コード例 #1
0
        private static void ShowHelp(string helpPath, string keyword)
        {
            // this is a default page to display when the keyword can't be found
            // the GUIDs map to specific pages in the CHM files, which were
            // selected by UE to be the fallback pages.
            String defaultPage = DefaultPage;

            HH_AKLINK akLink = new HH_AKLINK();

            akLink.pszKeywords  = keyword;
            akLink.fReserved    = false;
            akLink.pszUrl       = defaultPage;
            akLink.pszMsgText   = null;
            akLink.pszMsgTitle  = string.Empty;
            akLink.pszWindow    = string.Empty;
            akLink.fIndexOnFail = false;

            try
            {
                HtmlHelp_AlinkLookup(0, helpPath, ref akLink);
            }
            catch (Exception ex)
            {
                Utilities.HandleException(ex, false, "Error", String.Format("Error in opening help file : {0}",
                                                                            ex.Message));
            }
        }
コード例 #2
0
 private static extern int HtmlHelp_AKLookup_Helper(
     int caller,
     [MarshalAs(UnmanagedType.LPStr)]
     String file,
     uint command,
     ref HH_AKLINK akl
     );
コード例 #3
0
        private static int HtmlHelp_AlinkLookup(
            int caller,
            String file,
            ref HH_AKLINK akl
            )
        {
            akl.cbStruct = Marshal.SizeOf(akl);

            return(HtmlHelp_AKLookup_Helper(
                       caller,
                       file,
                       HH_ALINK_LOOKUP,
                       ref akl));
        }
コード例 #4
0
 public static extern int HtmlHelp(IntPtr hwndCaller, string pszFile, int uCommand, HH_AKLINK dwData);