Richard Boegli's CnC_Generals_Zero_Hour Fork
WIP
This is documentation of Richard Boegil's Zero Hour Fork
Loading...
Searching...
No Matches
win.cpp
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
#include "
always.h
"
20
#include "
win.h
"
21
#include "
wwdebug.h
"
22
23
HINSTANCE
ProgramInstance
;
24
HWND
MainWindow
;
25
bool
GameInFocus
=
false
;
26
27
/***********************************************************************************************
28
* Print_Win32Error -- Print the Win32 error message. *
29
* *
30
* INPUT: *
31
* *
32
* OUTPUT: *
33
* *
34
* WARNINGS: *
35
* *
36
* HISTORY: *
37
* 6/21/01 DEL : Created. *
38
*=============================================================================================*/
39
#ifdef _DEBUG
40
void
__cdecl
Print_Win32Error(
unsigned
long
win32Error)
41
{
42
LPVOID
lpMsgBuf;
43
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM |
44
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL
, win32Error, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
45
(LPTSTR)&lpMsgBuf, 0,
NULL
);
46
47
WWDEBUG_SAY
((
"Win32 Error: %s\n"
, (
const
char
*)lpMsgBuf));
48
LocalFree(lpMsgBuf);
49
}
50
#endif
51
NULL
#define NULL
Definition
BaseType.h:92
__cdecl
#define __cdecl
Definition
IFF.H:44
always.h
win.h
LPVOID
LPVOID(__stdcall *SnmpUtilMemAllocPtr)(IN DWORD bytes)
MainWindow
Definition
autorun.h:211
ProgramInstance
HINSTANCE ProgramInstance
Definition
win.cpp:23
GameInFocus
bool GameInFocus
Definition
win.cpp:25
wwdebug.h
WWDEBUG_SAY
#define WWDEBUG_SAY(x)
Definition
wwdebug.h:114
Code
Libraries
Source
WWVegas
WWLib
win.cpp
Generated by
1.13.2