Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
autorun.h File Reference
#include <tchar.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "ttfont.h"

Go to the source code of this file.

Classes

class  LaunchObjectClass
 
class  Main
 
class  Window
 
class  MainWindow
 

Macros

#define IS_LANGUAGE_DBCS(l)
 
#define IS_CODEPAGE_DBCS(C)
 
#define MAX_COMMAND_LINE_ARGUMENTS   10
 
#define MAX_ARGUMENT_LENGTH   80
 
#define MIN(a, b)
 
#define MAX(a, b)
 
#define WM_GO   (WM_USER)+1
 
#define WM_USERSTAT   (WM_USER + 100)
 
#define EXPLORER_NAME   "EXPLORER.EXE"
 
#define INSTALL_PATH_KEY   "InstallPath"
 
#define INTERNET_PATH_KEY   "InternetPath"
 
#define SETUP_NAME   "Setup.exe"
 
#define UNINSTALL_NAME   "Uninst.exe"
 
#define SHELL_UNINSTALL_KEY   "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\InstallShield_{F3E9C243-122E-4D6B-ACC1-E1FEC02F6CA1}"
 
#define SHELL_APP_PATHS_KEY   "Software\\Microsoft\\Windows\\CurrentVersion\\App Paths"
 
#define PROGRAMS_SUBKEY   "Programs"
 
#define COMMON_PROGRAMS_SUBKEY   "Common Programs"
 
#define SOFTWARE_SUBKEY   "Software"
 
#define ELECTRONICARTS_SUBKEY   "Electronic Arts"
 
#define EAGAMES_SUBKEY   "EA Games"
 
#define GENERALS_SUBKEY   "Command and Conquer Generals Zero Hour"
 
#define SOFTWARE_EAGAMES_KEY   "Software\\Electronic Arts\\EA Games\\"
 
#define EAGAMES_GENERALS_KEY   "Software\\Electronic Arts\\EA Games\\Command and Conquer Generals Zero Hour"
 
#define EAGAMES_ERGC_KEY   "Software\\Electronic Arts\\EA Games\\Command and Conquer Generals Zero Hour\\ergc"
 
#define LAUNCHER_FILENAME   "Generals.exe"
 
#define WORLDBUILDER_FILENAME   "WorldBuilder.exe"
 
#define PATCHGET_FILENAME   "patchget.dat"
 
#define UNINSTALL_STRING_SUBKEY   "UninstallString"
 
#define INSTALLPATH_SUBKEY   "InstallPath"
 
#define VERSION_SUBKEY   "Version"
 
#define LANGUAGE_SUBKEY   "Language"
 
#define MAPPACKVERSION_SUBKEY   "MapPackVersion"
 
#define DDRAW   "DDRAW.DLL"
 
#define DSOUND   "DSOUND.DLL"
 
#define DDHELP   "DDHELP.EXE"
 
#define NORMAL   "Normal"
 
#define FOCUSED   "Focused"
 
#define PRESSED   "Pressed"
 
#define BUTTON_REG   "BUTTON_REG"
 
#define BUTTON_SEL   "BUTTON_SEL"
 

Enumerations

enum  LanguageType {
  LANG_USA , LANG_UK , LANG_GER , LANG_FRE ,
  LANG_DUT , LANG_ITA , LANG_JAP , LANG_SPA ,
  LANG_SCA , LANG_KOR , LANG_CHI , LANG_NUM
}
 

Variables

int Language
 
LaunchObjectClass LaunchObject
 

Macro Definition Documentation

◆ BUTTON_REG

#define BUTTON_REG   "BUTTON_REG"

Definition at line 151 of file autorun.h.

◆ BUTTON_SEL

#define BUTTON_SEL   "BUTTON_SEL"

Definition at line 152 of file autorun.h.

◆ COMMON_PROGRAMS_SUBKEY

#define COMMON_PROGRAMS_SUBKEY   "Common Programs"

Definition at line 96 of file autorun.h.

◆ DDHELP

#define DDHELP   "DDHELP.EXE"

Definition at line 122 of file autorun.h.

◆ DDRAW

#define DDRAW   "DDRAW.DLL"

Definition at line 120 of file autorun.h.

◆ DSOUND

#define DSOUND   "DSOUND.DLL"

Definition at line 121 of file autorun.h.

◆ EAGAMES_ERGC_KEY

#define EAGAMES_ERGC_KEY   "Software\\Electronic Arts\\EA Games\\Command and Conquer Generals Zero Hour\\ergc"

Definition at line 109 of file autorun.h.

◆ EAGAMES_GENERALS_KEY

#define EAGAMES_GENERALS_KEY   "Software\\Electronic Arts\\EA Games\\Command and Conquer Generals Zero Hour"

Definition at line 108 of file autorun.h.

◆ EAGAMES_SUBKEY

#define EAGAMES_SUBKEY   "EA Games"

Definition at line 105 of file autorun.h.

◆ ELECTRONICARTS_SUBKEY

#define ELECTRONICARTS_SUBKEY   "Electronic Arts"

Definition at line 104 of file autorun.h.

◆ EXPLORER_NAME

#define EXPLORER_NAME   "EXPLORER.EXE"

Definition at line 86 of file autorun.h.

◆ FOCUSED

#define FOCUSED   "Focused"

Definition at line 125 of file autorun.h.

◆ GENERALS_SUBKEY

#define GENERALS_SUBKEY   "Command and Conquer Generals Zero Hour"

Definition at line 106 of file autorun.h.

◆ INSTALL_PATH_KEY

#define INSTALL_PATH_KEY   "InstallPath"

Definition at line 87 of file autorun.h.

◆ INSTALLPATH_SUBKEY

#define INSTALLPATH_SUBKEY   "InstallPath"

Definition at line 115 of file autorun.h.

◆ INTERNET_PATH_KEY

#define INTERNET_PATH_KEY   "InternetPath"

Definition at line 88 of file autorun.h.

◆ IS_CODEPAGE_DBCS

#define IS_CODEPAGE_DBCS ( C)
Value:
((C==949)||(C==950)||(C==932))

Definition at line 72 of file autorun.h.

◆ IS_LANGUAGE_DBCS

#define IS_LANGUAGE_DBCS ( l)
Value:
(((l)==LANG_CHI)||((l)==LANG_JAP)||((l)==LANG_KOR))
@ LANG_KOR
Definition autorun.h:66
@ LANG_CHI
Definition autorun.h:67
@ LANG_JAP
Definition autorun.h:63

Definition at line 71 of file autorun.h.

◆ LANGUAGE_SUBKEY

#define LANGUAGE_SUBKEY   "Language"

Definition at line 117 of file autorun.h.

◆ LAUNCHER_FILENAME

#define LAUNCHER_FILENAME   "Generals.exe"

Definition at line 110 of file autorun.h.

◆ MAPPACKVERSION_SUBKEY

#define MAPPACKVERSION_SUBKEY   "MapPackVersion"

Definition at line 118 of file autorun.h.

◆ MAX

#define MAX ( a,
b )
Value:
(((a) > (b)) ? (a) : (b))

Definition at line 81 of file autorun.h.

◆ MAX_ARGUMENT_LENGTH

#define MAX_ARGUMENT_LENGTH   80

Definition at line 78 of file autorun.h.

◆ MAX_COMMAND_LINE_ARGUMENTS

#define MAX_COMMAND_LINE_ARGUMENTS   10

Definition at line 77 of file autorun.h.

◆ MIN

#define MIN ( a,
b )
Value:
(((a) < (b)) ? (a) : (b))

Definition at line 80 of file autorun.h.

◆ NORMAL

#define NORMAL   "Normal"

Definition at line 124 of file autorun.h.

◆ PATCHGET_FILENAME

#define PATCHGET_FILENAME   "patchget.dat"

Definition at line 112 of file autorun.h.

◆ PRESSED

#define PRESSED   "Pressed"

Definition at line 126 of file autorun.h.

◆ PROGRAMS_SUBKEY

#define PROGRAMS_SUBKEY   "Programs"

Definition at line 95 of file autorun.h.

◆ SETUP_NAME

#define SETUP_NAME   "Setup.exe"

Definition at line 89 of file autorun.h.

◆ SHELL_APP_PATHS_KEY

#define SHELL_APP_PATHS_KEY   "Software\\Microsoft\\Windows\\CurrentVersion\\App Paths"

Definition at line 94 of file autorun.h.

◆ SHELL_UNINSTALL_KEY

#define SHELL_UNINSTALL_KEY   "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\InstallShield_{F3E9C243-122E-4D6B-ACC1-E1FEC02F6CA1}"

Definition at line 93 of file autorun.h.

◆ SOFTWARE_EAGAMES_KEY

#define SOFTWARE_EAGAMES_KEY   "Software\\Electronic Arts\\EA Games\\"

Definition at line 107 of file autorun.h.

◆ SOFTWARE_SUBKEY

#define SOFTWARE_SUBKEY   "Software"

Definition at line 97 of file autorun.h.

◆ UNINSTALL_NAME

#define UNINSTALL_NAME   "Uninst.exe"

Definition at line 90 of file autorun.h.

◆ UNINSTALL_STRING_SUBKEY

#define UNINSTALL_STRING_SUBKEY   "UninstallString"

Definition at line 114 of file autorun.h.

◆ VERSION_SUBKEY

#define VERSION_SUBKEY   "Version"

Definition at line 116 of file autorun.h.

◆ WM_GO

#define WM_GO   (WM_USER)+1

Definition at line 83 of file autorun.h.

◆ WM_USERSTAT

#define WM_USERSTAT   (WM_USER + 100)

Definition at line 84 of file autorun.h.

◆ WORLDBUILDER_FILENAME

#define WORLDBUILDER_FILENAME   "WorldBuilder.exe"

Definition at line 111 of file autorun.h.

Enumeration Type Documentation

◆ LanguageType

Enumerator
LANG_USA 
LANG_UK 
LANG_GER 
LANG_FRE 
LANG_DUT 
LANG_ITA 
LANG_JAP 
LANG_SPA 
LANG_SCA 
LANG_KOR 
LANG_CHI 
LANG_NUM 

Definition at line 56 of file autorun.h.

Variable Documentation

◆ Language

int Language
extern

Definition at line 189 of file autorun.cpp.

◆ LaunchObject

LaunchObjectClass LaunchObject
extern

Definition at line 187 of file autorun.cpp.