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

//*********************************************************************
//* Microsoft Windows **
//* Copyright (c) 1994-1998 Microsoft Corporation
//*********************************************************************
//
// TCPCMN.H - central header file for TCP/IP structures and configuration
// functions
//
// HISTORY:
//
// 96/05/22 markdu Created (from inetcfg.dll)
//
#ifndef _TCPCMN_H_
#define _TCPCMN_H_
typedef DWORD IPADDRESS;
// same limits as in net setup UI
#define IP_ADDRESS_LEN 15 // big enough for www.xxx.yyy.zzz
#define MAX_GATEWAYS 8
#define MAX_DNSSERVER 3
// big enough for <ip>,<ip>,...
#define MAX_DNSSERVERLEN MAX_DNSSERVER * (IP_ADDRESS_LEN+1)
#define MAX_GATEWAYLEN MAX_GATEWAYS * (IP_ADDRESS_LEN+1)
// node type flags for _dwNodeFlags
#define NT_DRIVERNODE 0x0001
#define NT_ENUMNODE 0x0002
class ENUM_TCP_INSTANCE
{
private:
DWORD _dwCardFlags; // INSTANCE_NETDRIVER, INSTANCE_PPPDRIVER, etc
DWORD _dwNodeFlags; // NT_DRIVERNODE, NT_ENUMNODE, etc
UINT _error;
HKEY _hkeyTcpNode;
VOID CloseNode();
public:
ENUM_TCP_INSTANCE(DWORD dwCardFlags,DWORD dwNodeFlags);
~ENUM_TCP_INSTANCE();
HKEY Next();
UINT GetError() { return _error; }
};
#endif // _TCPCMN_H_