diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/nw/svcdlls/nwwks/inc/sapcmn.h | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'private/nw/svcdlls/nwwks/inc/sapcmn.h')
-rw-r--r-- | private/nw/svcdlls/nwwks/inc/sapcmn.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/private/nw/svcdlls/nwwks/inc/sapcmn.h b/private/nw/svcdlls/nwwks/inc/sapcmn.h new file mode 100644 index 000000000..fa8f8449e --- /dev/null +++ b/private/nw/svcdlls/nwwks/inc/sapcmn.h @@ -0,0 +1,66 @@ +/*++ + +Copyright (c) 1992-1993 Microsoft Corporation + +Module Name: + + sapcmn.h.h + +Abstract: + + Header containing the most basic common SAP definitions. This + was derived from the larger file, nwmisc.h in order to + be available to either the old RNR or the new RNR routines. + +Author: + + Arnold Miller (ArnoldM) 8-Dec-95 + +Revision History: + + ArnoldM 8-Dec-95 Created from pieces of nwmisc.h +--*/ + +#ifndef __SAPCMN_H__ +#define __SAPCMN_H__ +// +// Definitions common to client and server side files (getaddr.c and service.c) +// + +#define IPX_ADDRESS_LENGTH 12 +#define IPX_ADDRESS_NETNUM_LENGTH 4 +#define SAP_ADDRESS_LENGTH 15 +#define SAP_ADVERTISE_FREQUENCY 60000 // 60 seconds +#define SAP_MAXRECV_LENGTH 544 +#define SAP_OBJECT_NAME_MAX_LENGTH 48 + +// +// N.B. Keep the following defines in synch. +// +#define NW_RDR_PREFERRED_SERVER L"\\Device\\Nwrdr\\*" +#define NW_RDR_NAME L"\\Device\\Nwrdr\\" +#define NW_RDR_PREFERRED_SUFFIX L"*" +// +// Sap server identification packet format +// + +typedef struct _SAP_IDENT_HEADER { + USHORT ServerType; + UCHAR ServerName[48]; + UCHAR Address[IPX_ADDRESS_LENGTH]; + USHORT HopCount; +} SAP_IDENT_HEADER, *PSAP_IDENT_HEADER; + + +// +// Sap server identification packet format - Extended +// + +typedef struct _SAP_IDENT_HEADER_EX { + USHORT ResponseType; + USHORT ServerType; + UCHAR ServerName[SAP_OBJECT_NAME_MAX_LENGTH]; + UCHAR Address[IPX_ADDRESS_LENGTH]; + USHORT HopCount; +} SAP_IDENT_HEADER_EX, *PSAP_IDENT_HEADER_EX; +#endif |