www.pudn.com > slist.zip > SLIST.H


/***************************************************************************** 
 
EXHIBIT A 
 
"The contents of this file are subject to the Novell Free Source Agreement  
Version 1.0 (the "Agreement"); you may not use this file except in  
compliance with the Agreement. You may obtain a copy of the Agreement at  
http://developer.novell.com/. 
 
Software distributed under the Agreement is distributed on an "AS IS" basis, 
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the Agreement  
for the specific language governing rights and limitations under the  
Agreement. 
 
The Original Code is myntt.h, released under the Novell Free Source License  
Agreement 1.0 on 1999. 
 
The Initial Developer of the Original Code is Novell. Portions created  
by Novell are Copyright (C) 1986-90, Novell, Inc. All Rights Reserved. 
 
*****************************************************************************/ 
 
#include  
#define INCL_SUB 
#include  
#include  
#include  
/* #include */ 
#include  
#include  
#include  
#include  
#include  
#include  
#include "Messages.Mlh" 
#include  
#include	 
#include  
 
/****************************************************************************/ 
 
/* 
	Define GetMessage function 
*/ 
extern char *programMesgTable[]; 
#define GetMessage(messageNumber)   programMesgTable[messageNumber] 
 
#define	MAX		500				/* Maximum number of servers 				*/ 
 
#define TRUE	  1 
#define FALSE	  0 
#define	ASTERISK	'\x2A' 
#define	QUESTION	'\x3F' 
#define	SPERIOD		'\xAE'	/*period with parity bit set*/ 
#define	SASTERISK	'\xAA'	/*asterisk with parity bit set*/ 
#define SQUESTION	'\xBF'	/*question mark with parity set*/ 
#define DOMAIN_OBJ_TYPE 0x3301  /* SWAP THIS CORRECTLY AFTER TESTING*/ 
#define	MIN_LINES	24 
#define 	VIDEO_INT	0x010 
 
typedef struct { 
	long	netAddress;			/* Network address							*/ 
	int		highNode;			/* High byte of node address				*/ 
	long	lowNode;			/* Low byte of node address					*/ 
	char	junk[118];			/* Unused garbage							*/ 
} NETADDRESS; 
 
typedef struct 
{ 
	char name[SERVER_NAME_SIZE];				/* Server name								*/ 
	char addr[26];				/* Network address in ascii					*/ 
} SERVER; 
 
SERVER	 serverList[MAX];		/* Array of server names and addresses		*/ 
 
/****************************************************************************/ 
 
extern	void	main				(int	 , char **			); 
extern	int		ReadServerNames		(SERVER *, WORD				); 
extern	void	SortServerNames		(SERVER *, int				); 
extern	void	PrintServerNames	(SERVER *, int	  , WORD	); 
extern	void	Print				(char *  ,...				); 
extern	void	Error				(int     ,...				); 
extern	void	GetServer			(void						); 
extern	int		IsWild				(char *						); 
extern	int		WildMatch			(char *	 , char *			); 
extern   void  DisplayDomainNames(WORD); 
extern   WORD  GetServerName(WORD, WORD, char *,char *,int); 
extern   void  PrintSomething( void ); 
extern	 void  CheckDot( void ); 
extern	void 	DisplayUsageLine(void); 
extern	void 	IsServerInADomain(WORD, int *, char *); 
extern	void	SetScrollParms(void); 
 
/****************************************************************************/ 
/****************************************************************************/