feOpenWinntHlp.c
Go to the documentation of this file.
1 /****************************************
2 * Computer Algebra System SINGULAR *
3 ****************************************/
4 /*
5 * ABSTRACT: encapsulation of call to Win32 WinHelp call for opening
6  a help file
7 */
8 
9 /* you can try this out by compiling with -DTEST and runing:
10  a.exe "poly"*/
11 #ifdef WINNT
12 #include <windows.h>
13 #include <winuser.h>
14 
15 #ifndef MAXPATHLEN
16 #define MAXPATHLEN 1024
17 #endif
18 
19 void heOpenWinntHlp(const char* keyw)
20 {
21  const char helppath[]="/E/home/html/SINGULAR.HLP";
22  char path[MAXPATHLEN];
23 #ifdef TEST
24  printf("keyw:%s\n", keyw);
25 #endif
26  cygwin_conv_to_full_win32_path(helppath, path);
27 #ifdef TEST
28  printf("path:%s\n", path);
29 #endif
30  WinHelp(NULL, path, HELP_PARTIALKEY,(DWORD)keyw);
31 }
32 
33 #ifdef TEST
34 int main(int argc, char* argv[])
35 {
36  heOpenWinntHlp(argv[1]);
37 }
38 #endif
39 #endif
#define MAXPATHLEN
Definition: omRet2Info.c:22
int main(int argc, char *argv[])
Definition: omTables.c:165
#define NULL
Definition: omList.c:10