source: git/Singular/feOpenWinntHlp.c @ 7222f9

spielwiese
Last change on this file since 7222f9 was be9391, checked in by Viktor Levandovskyy <levandov@…>, 23 years ago
Win32 Call, works well git-svn-id: file:///usr/local/Singular/svn/trunk@4967 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 831 bytes
Line 
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
19void 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
34int main(int argc, char* argv[])
35{
36  heOpenWinntHlp(argv[1]);
37}
38#endif
39#endif
Note: See TracBrowser for help on using the repository browser.