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.

72 lines
2.1 KiB

  1. /*
  2. *
  3. * NOTES:
  4. *
  5. * REVISIONS:
  6. * ash16Oct95: creation
  7. * djs23Apr96: moved GCIP constants to gcip.h
  8. * srt21Jun96: Added consts for RPC events
  9. */
  10. #ifndef __CONSTNTS_H
  11. #define __CONSTNTS_H
  12. #include "_defs.h"
  13. #include "w32utils.h"
  14. // Common constants
  15. #define GCIP_BUFFER_SIZE 4096
  16. #define BUFFER_SIZE 128
  17. #define NAME_SIZE 64
  18. #define CREATE_STATUS 1
  19. #define CREATE_ALERT 2
  20. #define TCP_CLIENT 0
  21. #define SPX_CLIENT 1
  22. #define RPC_CLIENT 2
  23. #define IA_PROTO 0
  24. #define RPC_CLIENT_LIST_LOCK "Local_Client_List_Mutex"
  25. #define RPC_REQUEST_LIST_LOCK "_Request_List_Mutex"
  26. #define RPC_RESPONSE_LIST_LOCK "_Response_List_Mutex"
  27. #define RPC_ALERT_LIST_LOCK "_Alert_List_Lock"
  28. #define RPC_PROTOCOL_SEQ "ncalrpc"
  29. #define RPC_ENDPOINT "pwrchute"
  30. #define RPC_CLIENT_MUTEX "_Status_Mutex"
  31. #define RPC_CLIENT_NAME "PowerChute"
  32. #define RPC_REQUEST_LIST_EVENT "_Request_List_Event"
  33. #define RPC_RESPONSE_LIST_EVENT "_Response_List_Event"
  34. #define RPC_ALERT_LIST_EVENT "_Alert_List_Event"
  35. #define RPC_CLIENT_DISC_TIMEOUT 20 //seconds
  36. // Client only
  37. #define POLLING_INTERVAL 4 // 4 seconds
  38. #define FINDERLOOPTIME 4 // 4 seconds
  39. // Server only
  40. #define TIMEOUT 1000
  41. #define MAX_BUF_LEN 8192
  42. #define UDP_SERVICE_NAME "PwrChuteUdp"
  43. #define TCP_STATUS_SERVICE "PwrChuteTcpS"
  44. #define TCP_ALERT_SERVICE "PwrChuteTcpA"
  45. #define IPX_SERVICE_NAME "PwrChuteIpx"
  46. #define SPX_STATUS_SERVICE "PwrChuteSpxS"
  47. #define SPX_ALERT_SERVICE "PwrChuteSpxA"
  48. #define IP_ADDR_LEN 16
  49. #define SPX_ADDR_LEN 14
  50. #define MAXNAMELEN 80
  51. #define MAX_PROTOCOLS 20
  52. #define TCP_PROTOCOL "TCP"
  53. #define SPX_PROTOCOL "SPX"
  54. #define RPC_PROTOCOL "LOCAL"
  55. // Client only
  56. // Server only
  57. #define QUEUE_LEN 5
  58. #endif