2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
15 #include <afs/param.h>
22 static CString strHelpPath;
25 static BOOL IsWindowsNT (void)
27 static BOOL fChecked = FALSE;
28 static BOOL fIsWinNT = FALSE;
33 OSVERSIONINFO Version;
34 memset (&Version, 0x00, sizeof(Version));
35 Version.dwOSVersionInfoSize = sizeof(Version);
37 if (GetVersionEx (&Version)) {
38 if (Version.dwPlatformId == VER_PLATFORM_WIN32_NT)
47 void SetHelpPath(LPCTSTR pszDefaultHelpFilePath)
49 CString str(pszDefaultHelpFilePath);
50 int nIndex = str.ReverseFind('\\');
54 strHelpPath = str.Left(nIndex + 1) + HELPFILE_NATIVE;
56 strHelpPath = str.Left(nIndex + 1) + HELPFILE_LIGHT;
59 void ShowHelp(HWND hWnd, DWORD nHelpID)
61 ::WinHelp(hWnd, strHelpPath, HELPTYPE, nHelpID);