lmcons.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef NETCONS_INCLUDED
  7. #define NETCONS_INCLUDED
  8. #ifndef PASCAL
  9. #define PASCAL WINAPI
  10. #endif
  11. #ifndef FAR
  12. #define FAR
  13. #endif
  14. #define CNLEN 15
  15. #define LM20_CNLEN 15
  16. #define DNLEN CNLEN
  17. #define LM20_DNLEN LM20_CNLEN
  18. #if (CNLEN!=DNLEN)
  19. #error CNLEN and DNLEN are not equal
  20. #endif
  21. #define UNCLEN (CNLEN+2)
  22. #define LM20_UNCLEN (LM20_CNLEN+2)
  23. #define NNLEN 80
  24. #define LM20_NNLEN 12
  25. #define RMLEN (UNCLEN+1+NNLEN)
  26. #define LM20_RMLEN (LM20_UNCLEN+1+LM20_NNLEN)
  27. #define SNLEN 80
  28. #define LM20_SNLEN 15
  29. #define STXTLEN 256
  30. #define LM20_STXTLEN 63
  31. #define PATHLEN 256
  32. #define LM20_PATHLEN 256
  33. #define DEVLEN 80
  34. #define LM20_DEVLEN 8
  35. #define EVLEN 16
  36. #define UNLEN 256
  37. #define LM20_UNLEN 20
  38. #define GNLEN UNLEN
  39. #define LM20_GNLEN LM20_UNLEN
  40. #define PWLEN 256
  41. #define LM20_PWLEN 14
  42. #define SHPWLEN 8
  43. #define CLTYPE_LEN 12
  44. #define MAXCOMMENTSZ 256
  45. #define LM20_MAXCOMMENTSZ 48
  46. #define QNLEN NNLEN
  47. #define LM20_QNLEN LM20_NNLEN
  48. #if (QNLEN!=NNLEN)
  49. #error QNLEN and NNLEN are not equal
  50. #endif
  51. #define ALERTSZ 128
  52. #define MAXDEVENTRIES (sizeof (int)*8)
  53. #define NETBIOS_NAME_LEN 16
  54. #define MAX_PREFERRED_LENGTH ((DWORD) -1)
  55. #define CRYPT_KEY_LEN 7
  56. #define CRYPT_TXT_LEN 8
  57. #define ENCRYPTED_PWLEN 16
  58. #define SESSION_PWLEN 24
  59. #define SESSION_CRYPT_KLEN 21
  60. #ifndef PARMNUM_ALL
  61. #define PARMNUM_ALL 0
  62. #endif
  63. #define PARM_ERROR_UNKNOWN ((DWORD) (-1))
  64. #define PARM_ERROR_NONE 0
  65. #define PARMNUM_BASE_INFOLEVEL 1000
  66. #define LMSTR LPWSTR
  67. #define LMCSTR LPCWSTR
  68. #define MESSAGE_FILENAME TEXT("NETMSG")
  69. #define OS2MSG_FILENAME TEXT("BASE")
  70. #define HELP_MSG_FILENAME TEXT("NETH")
  71. #define BACKUP_MSG_FILENAME TEXT("BAK.MSG")
  72. #ifndef NULL
  73. #ifdef __cplusplus
  74. #ifndef _WIN64
  75. #define NULL 0
  76. #else
  77. #define NULL 0LL
  78. #endif /* W64 */
  79. #else
  80. #define NULL ((void *)0)
  81. #endif
  82. #endif
  83. #define NET_API_STATUS DWORD
  84. #define API_RET_TYPE NET_API_STATUS
  85. #define NET_API_FUNCTION WINAPI
  86. #ifndef _NO_W32_PSEUDO_MODIFIERS
  87. #ifndef IN
  88. #define IN
  89. #endif
  90. #ifndef OUT
  91. #define OUT
  92. #endif
  93. #ifndef OPTIONAL
  94. #define OPTIONAL
  95. #endif
  96. #endif
  97. #define PLATFORM_ID_DOS 300
  98. #define PLATFORM_ID_OS2 400
  99. #define PLATFORM_ID_NT 500
  100. #define PLATFORM_ID_OSF 600
  101. #define PLATFORM_ID_VMS 700
  102. #define MIN_LANMAN_MESSAGE_ID NERR_BASE
  103. #define MAX_LANMAN_MESSAGE_ID 5899
  104. #endif