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.

63 lines
774 B

  1. #ifndef _HOSTSERVERPROTO_HH
  2. #define _HOSTSERVERPROTO_HH
  3. //
  4. #include <string>
  5. #include <wbemidl.h>
  6. #include <comdef.h>
  7. #include <string>
  8. using namespace std;
  9. //
  10. #define HOST_PORT "6000" // port used by host to listen for requests.
  11. enum _DEFINES
  12. {
  13. MAX_NIC_NAME = 500, // maximum size of nic name allowed.
  14. MAX_IP_SIZE = 20,
  15. };
  16. enum COMMANDS
  17. {
  18. BIND_NLBS,
  19. UNBIND_NLBS,
  20. ISBOUND_NLBS,
  21. QUIT,
  22. };
  23. enum RetCode
  24. {
  25. R_BOUND = 0,
  26. R_UNBOUND = 1,
  27. R_NO_SUCH_NIC = 2,
  28. R_NO_NLBS = 3,
  29. R_COM_FAILURE = 10,
  30. };
  31. //
  32. struct Command
  33. {
  34. COMMANDS value;
  35. };
  36. struct NicInfo
  37. {
  38. wchar_t fullName[ MAX_NIC_NAME ];
  39. };
  40. struct IPInfo
  41. {
  42. wchar_t ip[ MAX_IP_SIZE];
  43. };
  44. //
  45. #endif