Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1992-1993 Microsoft Corporation
  3. Module Name:
  4. sapcmn.h.h
  5. Abstract:
  6. Header containing the most basic common SAP definitions. This
  7. was derived from the larger file, nwmisc.h in order to
  8. be available to either the old RNR or the new RNR routines.
  9. Author:
  10. Arnold Miller (ArnoldM) 8-Dec-95
  11. Revision History:
  12. ArnoldM 8-Dec-95 Created from pieces of nwmisc.h
  13. --*/
  14. #ifndef __SAPCMN_H__
  15. #define __SAPCMN_H__
  16. //
  17. // Definitions common to client and server side files (getaddr.c and service.c)
  18. //
  19. #define IPX_ADDRESS_LENGTH 12
  20. #define IPX_ADDRESS_NETNUM_LENGTH 4
  21. #define SAP_ADDRESS_LENGTH 15
  22. #define SAP_ADVERTISE_FREQUENCY 60000 // 60 seconds
  23. #define SAP_MAXRECV_LENGTH 544
  24. #define SAP_OBJECT_NAME_MAX_LENGTH 48
  25. //
  26. // N.B. Keep the following defines in synch.
  27. //
  28. #define NW_RDR_PREFERRED_SERVER L"\\Device\\Nwrdr\\*"
  29. #define NW_RDR_NAME L"\\Device\\Nwrdr\\"
  30. #define NW_RDR_PREFERRED_SUFFIX L"*"
  31. //
  32. // Sap server identification packet format
  33. //
  34. typedef struct _SAP_IDENT_HEADER {
  35. USHORT ServerType;
  36. UCHAR ServerName[48];
  37. UCHAR Address[IPX_ADDRESS_LENGTH];
  38. USHORT HopCount;
  39. } SAP_IDENT_HEADER, *PSAP_IDENT_HEADER;
  40. //
  41. // Sap server identification packet format - Extended
  42. //
  43. typedef struct _SAP_IDENT_HEADER_EX {
  44. USHORT ResponseType;
  45. USHORT ServerType;
  46. UCHAR ServerName[SAP_OBJECT_NAME_MAX_LENGTH];
  47. UCHAR Address[IPX_ADDRESS_LENGTH];
  48. USHORT HopCount;
  49. } SAP_IDENT_HEADER_EX, *PSAP_IDENT_HEADER_EX;
  50. #endif