home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / inilib.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  3.2 KB  |  56 lines

  1. #pragma option push -b -a8 -pc -A- /*P_O_Push*/
  2. //=================================================================================================================//
  3. //                                                                                                                 //
  4. //  inilib.h  - Include file for buildhs.c and ini_path.c                                                          //
  5. //              These files are used to read a parsers ini file and generate the appropriate handoff               //
  6. //              set. Ini_path gets the path to the ini file given the parser dll s name and buildhs                //
  7. //              reads the ini file and builds the parsers handoff set.                                             //
  8. //                                                                                                                 //
  9. //  Created     SteveRo     11/8/93                                                                                      //
  10. //                                                                                                                 //
  11. //=================================================================================================================//
  12.  
  13. #include <bhsupp.h>
  14.  
  15. #if !defined(_INILIB_)
  16.  
  17. #define _INILIB_
  18.  
  19.  
  20. #define INI_PATH_LENGTH             256                 // Maximum path tha can be specified
  21. #define MAX_HANDOFF_ENTRY_LENGTH    80                  // Longest entry that can be specified ie.. 0x451 = NCP
  22. #define MAX_PROTOCOL_NAME           40                  // Longest name for a protoocl
  23. #define NUMALLOCENTRIES             10
  24. #define RAW_INI_STR_LEN             200
  25.  
  26. #define PARSERS_SUBDIR              "PARSERS"
  27. #define INI_EXTENSION               "INI"
  28. #define BASE10_FORMAT_STR           "%ld=%s %ld"           
  29. #define BASE16_FORMAT_STR           "%lx=%s %lx"           
  30.  
  31.  
  32. // Given "XNS" or "TCP" or whatever BuildINIPath will return fully qual. path to "XNS.INI" or "TCP.INI"
  33. extern LPSTR BuildINIPath( char     *FullPath,          // Buffer that will contain fully qual. path to ini file
  34.                            char     *IniFileName );     // DLL name
  35.  
  36.  
  37. // Builds Handoff Set
  38.  
  39. extern DWORD     WINAPI CreateHandoffTable(LPSTR               secName,
  40.                                            LPSTR               iniFile,
  41.                                            LPHANDOFFTABLE *    hTable,
  42.                                            DWORD               nMaxProtocolEntries,
  43.                                            DWORD               base);
  44.  
  45. extern HPROTOCOL WINAPI GetProtocolFromTable(LPHANDOFFTABLE  hTable, // lp to Handoff Table...
  46.                                              DWORD           ItemToFind,       // port number etc...
  47.                                              LPDWORD         lpInstData );   // inst data to give to next protocol
  48.  
  49. extern VOID      WINAPI DestroyHandoffTable( LPHANDOFFTABLE hTable );
  50.  
  51. extern BOOLEAN WINAPI IsRawIPXEnabled(LPSTR               secName,
  52.                                       LPSTR               iniFile,
  53.                                       LPSTR               CurProtocol );
  54. #endif
  55. #pragma option pop /*P_O_Pop*/
  56.