⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 slist.h

📁 Novell 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 <os2def.h>
#define INCL_SUB
#include <bsesub.h>
#include <NWCalls.H>
#include <NWError.H>
/* #include <StdArg.H>*/
#include <StdIO.H>
#include <string.h>
#include <stdlib.h>
#include <io.h>
#include <conio.h>
#include <nwuser.h>
#include "Messages.Mlh"
#include <time.h>
#include	<dos.h>
#include <constant.102>

/****************************************************************************/

/*
	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);

/****************************************************************************/
/****************************************************************************/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -