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.

50 lines
1.4 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright(c) Microsoft Corp., 1994-1995 **
  4. //*********************************************************************
  5. //
  6. // TCPCMN.H - central header file for TCP/IP structures and configuration
  7. // functions
  8. //
  9. // HISTORY:
  10. //
  11. // 96/05/22 markdu Created (from inetcfg.dll)
  12. //
  13. #ifndef _TCPCMN_H_
  14. #define _TCPCMN_H_
  15. typedef DWORD IPADDRESS;
  16. // same limits as in net setup UI
  17. #define IP_ADDRESS_LEN 15 // big enough for www.xxx.yyy.zzz
  18. #define MAX_GATEWAYS 8
  19. #define MAX_DNSSERVER 3
  20. // big enough for <ip>,<ip>,...
  21. #define MAX_DNSSERVERLEN MAX_DNSSERVER * (IP_ADDRESS_LEN+1)
  22. #define MAX_GATEWAYLEN MAX_GATEWAYS * (IP_ADDRESS_LEN+1)
  23. // node type flags for _dwNodeFlags
  24. #define NT_DRIVERNODE 0x0001
  25. #define NT_ENUMNODE 0x0002
  26. class ENUM_TCP_INSTANCE
  27. {
  28. private:
  29. DWORD _dwCardFlags; // INSTANCE_NETDRIVER, INSTANCE_PPPDRIVER, etc
  30. DWORD _dwNodeFlags; // NT_DRIVERNODE, NT_ENUMNODE, etc
  31. UINT _error;
  32. HKEY _hkeyTcpNode;
  33. VOID CloseNode();
  34. public:
  35. ENUM_TCP_INSTANCE(DWORD dwCardFlags,DWORD dwNodeFlags);
  36. ~ENUM_TCP_INSTANCE();
  37. HKEY Next();
  38. UINT GetError() { return _error; }
  39. };
  40. #endif // _TCPCMN_H_