summaryrefslogtreecommitdiffstats
path: root/private/rpc/install/detect/detect.h
blob: 47cb30f793bb7b3e021503407f7111afb7792ea1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95


#include <sys\types.h>
#include <io.h>           /* for file I/O  */
#include <sys\stat.h>     /* for file I/O  */
#include <fcntl.h>        /* for file I/O  */
#include <dos.h>          /* for file I/O  */
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <stdio.h>        /* for null def etc. */
#include <malloc.h>


#define  N_UNKNOWN_NET         	0
#define  N_MS_NET              	1
#define  N_NOVELL_NET          	2
#define  N_BANYAN_NET          	3
#define  N_PCLP_NET            	4
#define  N_LANMAN_BASIC        	5
#define  N_LANMAN_ENHANCED     	6
#define  N_LM_MSNET_BASIC      	7
#define  N_LM1X_ENHANCED       	8
#define  N_LANTASTIC_NET	9
#define  N_UBNET		10
#define  N_DEBUG		11
#define	 N_LANMAN11		12
#define	 N_MSNET11		13
#define	 N_3OPEN		14
#define	 N_3SHARE		15
#define	 N_IBMLAN		16


#define	EOL		'\0'
#define	OK		0
#define	MIN_BUF_SIZE	5000L
#define	MAX_PATH_LEN	128
#define	FALSE		0
#define	_A_FILE		_A_HIDDEN | _A_SYSTEM

#define	NO_MEMORY	-1

extern int FindString( char far *Buf, char far *szString, unsigned usize );
extern int GetMS_Net_ID(unsigned long _far *MsVer);
extern int IFSFUNC_Present( void );
extern int Lantastic_chk(unsigned long _far *LanVer);
extern int banyan_chk(unsigned long _far *BanVer);
extern int Is10NetInstalled (void);

typedef struct 
{
	char *szName;
	unsigned long (*pfnDetect)();
} KnownNet;

KnownNet rgKnownNet [];

int GetInstalledNet(
     unsigned far *iType,
     unsigned far *iMajor,
     unsigned far *iMinor,
     unsigned far *iRev,
     unsigned far *fEnhance
     );


unsigned long Detect3Com_3_Open 	(void);
unsigned long Detect3Com_3_Share 	(void);
unsigned long DetectLANtastic 		(void);
unsigned long DetectBanyan 		(void);
unsigned long DetectDOS_LAN_Requestor 	(void);
unsigned long DetectPC_LAN_Program 	(void);
unsigned long DetectLanMan 		(void);
unsigned long DetectMS_Network 		(void);
unsigned long DetectNovell_Netware 	(void);
unsigned long DetectDEC_Pathworks 	(void);
unsigned long DetectTCS_10Net 		(void);

int IsUbnet(void);
int IsIBMLan(void);
void GetPathStrings( char **apszPaths, char *chBuffer, int BufSize );
int	FindPath( char *szPathname );
int ScanPath( char *szFullpath, char *szSubpath );
int MultScanBuf( char far *Buf, char _far * _far *apszText, unsigned uSize );
int	SearchRedir( char *szRedirname, char _far *szRedirPath );
int ScanHimemStr( char _far *szRedirPath );
int MultStrMatch( char _far *szPath, char _far * _far *apszText );
unsigned RemoveSpaces( char *szString );
void ReplaceChar( char *szString, char chOldChar, char chNewChar );
void DetectExit( int iErr );
long GetMaxHugeSize( void );
unsigned MaxStrLen( char _far * _far *Strings );
int ScanFile( int iFile, char _far * _far *apszText, char far *Buf, unsigned BufSize );
unsigned long Bcd ( unsigned long lInput, unsigned iFrom, unsigned iTo );
int IFS_Present( void );