Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
wolSetup.h
Go to the documentation of this file.
1/*
2** Command & Conquer Generals Zero Hour(tm)
3** Copyright 2025 Electronic Arts Inc.
4**
5** This program is free software: you can redistribute it and/or modify
6** it under the terms of the GNU General Public License as published by
7** the Free Software Foundation, either version 3 of the License, or
8** (at your option) any later version.
9**
10** This program is distributed in the hope that it will be useful,
11** but WITHOUT ANY WARRANTY; without even the implied warranty of
12** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13** GNU General Public License for more details.
14**
15** You should have received a copy of the GNU General Public License
16** along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19// FILE: wolSetup.h //////////////////////////////////////////////////////
20// Author: Matthew D. Campbell, December 2001
21
22#ifndef __WOLSETUP_H__
23#define __WOLSETUP_H__
24
25#ifndef WIN32_LEAN_AND_MEAN
26#define WIN32_LEAN_AND_MEAN
27#endif
28#include <windows.h>
29
31void setupGenerals( const char *genPath, const char *genSerial );
32
33extern HINSTANCE g_hInst;
34extern unsigned long g_wolapiRegistryVersion;
35extern unsigned long g_wolapiRealVersion;
36extern bool g_wolapiInstalled;
37extern char g_wolapiRegFilename[MAX_PATH];
38extern char g_wolapiRealFilename[MAX_PATH];
39extern char g_generalsFilename[MAX_PATH];
40extern char g_generalsSerial[];
41
42static MAJOR(unsigned long x) { return (((x) & 0xffff0000) >> 16); }
43static MINOR(unsigned long x) { return ((x) & 0xffff); }
44
45#endif // __WOLSETUP_H__
char g_generalsSerial[1024]
Definition wolInit.cpp:45
unsigned long g_wolapiRealVersion
Definition wolInit.cpp:40
unsigned long g_wolapiRegistryVersion
Definition wolInit.cpp:39
char g_wolapiRegFilename[MAX_PATH]
Definition wolInit.cpp:42
char g_wolapiRealFilename[MAX_PATH]
Definition wolInit.cpp:43
char g_generalsFilename[MAX_PATH]
Definition wolInit.cpp:44
bool g_wolapiInstalled
Definition wolInit.cpp:41
HINSTANCE g_hInst
Definition wolSetup.cpp:55
void setupGenerals(const char *genPath, const char *genSerial)
Definition wolInit.cpp:140
void checkInstalledWolapiVersion(void)
Definition wolInit.cpp:191