Source code of Windows XP (NT5)
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.

71 lines
2.6 KiB

  1. #ifndef H__netbasic
  2. #define H__netbasic
  3. #include "warning.h"
  4. typedef ULONG_PTR CONNID;
  5. typedef unsigned long PKTID;
  6. typedef ULONG_PTR HPKTZ;
  7. typedef ULONG_PTR HROUTER;
  8. typedef ULONG_PTR HDDER;
  9. typedef ULONG_PTR HIPC;
  10. typedef ULONG_PTR HTIMER;
  11. /* maximum node name string length.
  12. Buffers for names should be declared char buf[ MAX_NODE_NAME+1 ]; */
  13. #define MAX_NODE_NAME 16
  14. /* maximum network interface name string length.
  15. Buffers for names should be declared char buf[ MAX_NI_NAME+1 ]; */
  16. #define MAX_NI_NAME 8
  17. /* maximum connection info for a netintf DLL
  18. Buffers for names should be declared char buf[ MAX_CONN_INFO+1 ]; */
  19. #define MAX_CONN_INFO (512)
  20. /* maximum string length of "additional routing info". This is the
  21. information used for routing from one node to another.
  22. Buffers for names should be declared char buf[ MAX_ROUTE_INFO+1 ]; */
  23. #define MAX_ROUTE_INFO 512
  24. /* maximum application name string length.
  25. Buffers for names should be declared char buf[ MAX_APP_NAME+1 ]; */
  26. #define MAX_APP_NAME 255
  27. /* maximum topic name string length.
  28. Buffers for names should be declared char buf[ MAX_TOPIC_NAME+1 ]; */
  29. #define MAX_TOPIC_NAME 255
  30. /* max length for a share name */
  31. #define MAX_SHARENAMEBUF MAX_APP_NAME + MAX_TOPIC_NAME + 1
  32. #define ILLEGAL_NAMECHARS " +*\\/,?()\"'"
  33. /*
  34. Reason codes for Initiate Ack failing
  35. */
  36. #define RIACK_TASK_MEMORY_ERR (1)
  37. #define RIACK_NETDDE_NOT_ACTIVE (2)
  38. #define RIACK_LOCAL_MEMORY_ERR (3)
  39. #define RIACK_ROUTE_NOT_ESTABLISHED (4)
  40. #define RIACK_DEST_MEMORY_ERR (5)
  41. #define RIACK_NOPERM (6)
  42. #define RIACK_NOPERM_TO_STARTAPP (7)
  43. #define RIACK_STARTAPP_FAILED (8)
  44. #define RIACK_NORESP_AFTER_STARTAPP (9)
  45. #define RIACK_UNKNOWN (10)
  46. #define RIACK_TASK_IO_ERR (11)
  47. #define RIACK_TASK_MAGIC_ERR (12)
  48. #define RIACK_DUPLICATE_NODE_NAME (13)
  49. /* 1.1 reason codes */
  50. #define RIACK_NEED_PASSWORD (16)
  51. #define RIACK_SHARE_NAME_TOO_BIG (17)
  52. /* NT reason codes */
  53. #define RIACK_NO_NDDE_AGENT (20)
  54. #define RIACK_NOT_SHARED (21)
  55. #define RIACK_NOPERM_TO_INITAPP (22)
  56. /* Share access error base: 0x100 + error code returned by ntddeapi */
  57. #define RIACK_SHARE_ACCESS_ERROR (256)
  58. /* !!! Any changes must be put into hpux\netdde.h !!! */
  59. #endif