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.
 
 
 
 
 
 

169 lines
4.7 KiB

#ifndef CONST_H
#define CONST_H
//
// this is the max resource string length
//
#define MAX_STR_LEN 1024
//
// A whole load of defines
//
#define REG_ACTIVEMSG _T("Software\\Microsoft\\Exchange\\Active Messaging")
#define REG_SERVICES _T("System\\CurrentControlSet\\Services")
#define REG_EXCHANGEIMCPARAMETERS _T("System\\CurrentControlSet\\Services\\MsExchangeIMC\\Parameters")
#define REG_DSASVC _T("System\\CurrentControlSet\\Services\\DSASVC") // Used only to point out upgrade path for Exchange
#define REG_ROUTING_SOURCES_SUFFIX _T("\\Parameters\\RoutingSources");
#define REG_UNINSTALL _T("Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall")
#define REG_KEYRING _T("Software\\Microsoft\\Keyring\\Parameters\\AddOnServices")
#define REG_EVENTLOG _T("System\\CurrentControlSet\\Services\\EventLog\\System")
#define SZ_SVC_DEPEND _T("IISADMIN\0Eventlog\0\0")
#define REG_B3_SETUP_STRING _T("K2 Beta 3")
#define REG_SETUP_STRING _T("K2 RTM")
#define REG_SETUP_STRING_MCIS_GEN _T("MCIS 2.0")
#define REG_SETUP_STRING_STAXNT5WB2 _T("STAXNT5 WKS")
#define REG_SETUP_STRING_STAXNT5SB2 _T("STAXNT5 SRV")
#define REG_SETUP_STRING_NT5WKSB3 _T("STAXNT5 WKS Beta 3")
#define REG_SETUP_STRING_NT5SRVB3 _T("STAXNT5 SRV Beta 3")
#define REG_SETUP_STRING_NT5WKS _T("STAX Win2000 WKS")
#define REG_SETUP_STRING_NT5SRV _T("STAX Win2000 SRV")
// BINLIN: MCIS 1.0 name under control panel add/remove
#define SZ_MCIS10_NEWS_UNINST _T("MCIS News Server")
#define SZ_MCIS10_MAIL_UNINST _T("MCIS Mail Server")
#define SZ_SMTPSERVICENAME _T("SMTPSVC")
#define SZ_NTFSDRVSERVICENAME _T("NTFSDRV")
#define REG_SMTPPARAMETERS _T("System\\CurrentControlSet\\Services\\SMTPSVC\\Parameters")
#define REG_SMTPPERFORMANCE _T("System\\CurrentControlSet\\Services\\SMTPSVC\\Performance")
#define REG_NTFSPERFORMANCE _T("System\\CurrentControlSet\\Services\\NTFSDRV\\Performance")
#define MDID_SMTP_ROUTING_SOURCES 8046
#define SZ_SMTP_QUEUEDIR _T("\\Queue")
#define SZ_SMTP_PICKUPDIR _T("\\Pickup")
#define SZ_SMTP_DROPDIR _T("\\Drop")
#define SZ_SMTP_BADMAILDIR _T("\\Badmail")
#define SZ_SMTP_MAILBOXDIR _T("\\Mailbox")
#define SZ_SMTP_SORTTEMPDIR _T("\\SortTemp")
#define SZ_SMTP_ROUTINGDIR _T("\\Route")
#define SZ_NNTPSERVICENAME _T("NNTPSVC")
#define REG_NNTPPARAMETERS _T("System\\CurrentControlSet\\Services\\NntpSvc\\Parameters")
#define REG_NNTPPERFORMANCE _T("System\\CurrentControlSet\\Services\\NntpSvc\\Performance")
#define REG_NNTPVROOTS _T("System\\CurrentControlSet\\Services\\NntpSvc\\Parameters\\Virtual Roots")
#define REG_CIPARAMETERS _T("System\\CurrentControlSet\\Control\\ContentIndex")
#define REG_INETINFOPARAMETERS _T("System\\CurrentControlSet\\Services\\InetInfo\\Parameters")
#define SZ_INETINFODISPATCH _T("DispatchEntries")
#define SZ_MD_SERVICENAME _T("IISADMIN")
#define REG_PRODUCT _T("System\\CurrentControlSet\\Control\\ProductOptions")
#define REG_PRODUCTTYPE _T("ProductType")
#define REG_SNMPPARAMETERS _T("System\\CurrentControlSet\\Services\\SNMP\\Parameters" )
#define REG_SNMPEXTAGENT _T("System\\CurrentControlSet\\Services\\SNMP\\Parameters\\ExtensionAgents" )
#define REG_SOFTWAREMSFT _T("Software\\Microsoft")
#define REG_CURVERSION _T("CurrentVersion")
#define MAJORVERSION 4
#define MINORVERSION 0
#define STACKSMAJORVERSION 2
#define STACKSMINORVERSION 0
#define STAXNT5MAJORVERSION 3
#define STAXNT5MINORVERSION 0
//
// Enumerated types
//
typedef enum _OS
{
OS_NT,
OS_W95,
OS_OTHERS
} OS;
typedef enum _NT_OS_TYPE
{
OT_NT_UNKNOWN,
OT_NTS,
OT_PDC_OR_BDC,
OT_NTW,
OT_PDC,
OT_BDC,
OT_SAM,
} NT_OS_TYPE;
typedef enum _UPGRADE_TYPE
{
UT_NONE,
UT_20,
UT_30
} UPGRADE_TYPE;
typedef enum _INSTALL_MODE
{
IM_FRESH,
IM_UPGRADE,
IM_MAINTENANCE,
IM_DEGRADE,
IM_UPGRADEK2, // Upgrade from K2 RTM to NT5
IM_UPGRADEB2, // Upgrade from NT5 Beta2
IM_UPGRADEB3, // Upgrade from NT5 Beta3
IM_UPGRADEWKS, // Upgrade from NT5 Workstation to NT5 Server
IM_UPGRADE10, // Upgrade from MCIS 1.0 to NT5
IM_UPGRADE20, // Upgrade from MCIS 2.0 to NT5
} INSTALL_MODE;
typedef enum _ACTION_TYPE
{
AT_DO_NOTHING,
AT_FRESH_INSTALL,
AT_REINSTALL,
AT_UPGRADE,
AT_REMOVE,
AT_UPGRADEK2,
AT_MAXAT
} ACTION_TYPE;
typedef enum _STATUS_TYPE
{
ST_UNKNOWN,
ST_INSTALLED,
ST_UNINSTALLED
} STATUS_TYPE;
typedef enum _MAIN_COMPONENT
{
MC_IMS,
MC_INS,
MC_NONE,
MC_MAXMC
} MAIN_COMPONENT;
typedef enum _SUBCOMPONENT
{
SC_SMTP,
SC_NNTP,
SC_SMTP_DOCS,
SC_NNTP_DOCS,
SC_NONE,
SC_MAXSC
} SUBCOMPONENT;
#endif