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
11 #include <afs/param.h>
19 static CString strHelpPath;
22 static BOOL IsWindowsNT (void)
24 static BOOL fChecked = FALSE;
25 static BOOL fIsWinNT = FALSE;
30 OSVERSIONINFO Version;
31 memset (&Version, 0x00, sizeof(Version));
32 Version.dwOSVersionInfoSize = sizeof(Version);
34 if (GetVersionEx (&Version)) {
35 if (Version.dwPlatformId == VER_PLATFORM_WIN32_NT)
45 void SetHelpPath(const char *pszDefaultHelpFilePath)
47 CString str = pszDefaultHelpFilePath;
48 int nIndex = str.ReverseFind('\\');
52 strHelpPath = str.Left(nIndex + 1) + HELPFILE_NATIVE;
54 strHelpPath = str.Left(nIndex + 1) + HELPFILE_LIGHT;
57 void ShowHelp(HWND hWnd, DWORD nHelpID)
59 ::WinHelp(hWnd, strHelpPath, HELPTYPE, nHelpID);