inilib.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:3k
- //=============================================================================
- // Microsoft (R) Network Monitor (tm).
- // Copyright (C) 1993-1999. All rights reserved.
- //
- // MODULE: nminilib.h
- //
- // These files are used to read a parsers ini file and generate the
- // appropriate handoff set. Ini_path gets the path to the ini file given the
- // parser dll s name and buildhs reads the ini file and builds the parsers
- // handoff set.
- //=============================================================================
- #include <nmsupp.h>
- #ifndef _NMINILIB_
- #define _NMINILIB_
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- #define INI_PATH_LENGTH 256 // Maximum path tha can be specified
- #define MAX_HANDOFF_ENTRY_LENGTH 80 // Longest entry that can be specified ie.. 0x451 = NCP
- #define MAX_PROTOCOL_NAME 40 // Longest name for a protoocl
- #define NUMALLOCENTRIES 10
- #define RAW_INI_STR_LEN 200
- #define PARSERS_SUBDIR "PARSERS"
- #define INI_EXTENSION "INI"
- #define BASE10_FORMAT_STR "%ld=%s %ld"
- #define BASE16_FORMAT_STR "%lx=%s %lx"
- // Given "XNS" or "TCP" or whatever BuildINIPath will return fully qual. path to "XNS.INI" or "TCP.INI"
- extern LPSTR _cdecl BuildINIPath( char *FullPath, // Buffer that will contain fully qual. path to ini file
- char *IniFileName ); // DLL name
- // Builds Handoff Set
- extern DWORD WINAPI CreateHandoffTable(LPSTR secName,
- LPSTR iniFile,
- LPHANDOFFTABLE * hTable,
- DWORD nMaxProtocolEntries,
- DWORD base);
- extern HPROTOCOL WINAPI GetProtocolFromTable(LPHANDOFFTABLE hTable, // lp to Handoff Table...
- DWORD ItemToFind, // port number etc...
- PDWORD_PTR lpInstData ); // inst data to give to next protocol
- extern VOID WINAPI DestroyHandoffTable( LPHANDOFFTABLE hTable );
- extern BOOLEAN WINAPI IsRawIPXEnabled(LPSTR secName,
- LPSTR iniFile,
- LPSTR CurProtocol );
- #ifdef __cplusplus
- }
- #endif
- #endif