Wing Commander II
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
winmain.c File Reference

Win32 entry point, window, joystick, guarded heap and keyboard state. More...

#include "game.h"

Go to the source code of this file.

Macros

#define WINMAIN_C

Functions

void WriteDebugString (const char *s)
unsigned int GetF1KeyLatch (void)
void CheckLauncherAndConfig (void)
int WINAPI WinMain (HINSTANCE instance, HINSTANCE previous, LPSTR commandLine, int showCommand)
void ShutdownGameWindow (void)
void ShowNoticeMessageBox (const char *text)
void OutputDebugPrintf (const char *format,...)
unsigned int AbortToDesktop (void)
int CreateMainWindow (HINSTANCE instance, HINSTANCE previous, int showCommand)
unsigned int PumpWindowMessages (int skipMessages)
LRESULT CALLBACK MainWindowProc (HWND window, UINT message, WPARAM wParam, LPARAM lParam)
void GetJoystickPosition (unsigned int *x, unsigned int *y, int *buttons, unsigned short joystick, unsigned int fallback)
short GetJoystickButtons (void)
void GetJoystickDevCaps (short joystick, short *xMin, short *xMax, short *yMin, short *yMax)
HINSTANCE GetApplicationInstance (void)
HWND GetMainWindowHandle (void)
HDC GetMainWindowDeviceContext (void)
void * AllocateGuardedMemory (unsigned int size)
void ReportHeapGuardCorruption (void *memory, int count, int overrun)
void CheckAllGuardedAllocations (void)
int IsFreedHeapBlockTracked (void *memory)
int DetectDoubleFree (void *memory)
void TrackFreedHeapBlock (void *memory)
void UntrackFreedHeapBlock (void *memory)
void FreeTrackedHeapBlocks (void)
void FreeGuardedAllocation (void *memory)
void SetMousePosition (int x, int y)
void PollEscapeKey (void)
unsigned int PollKeyboardState (void)
int GetHomeKeyState (void)
int GetUpArrowKeyState (void)
int GetPageUpKeyState (void)
int GetLeftArrowKeyState (void)
int GetRightArrowKeyState (void)
int GetEndKeyState (void)
int GetDownArrowKeyState (void)
int GetPageDownKeyState (void)
int GetNumLockKeyState (void)
int GetNumpadPlusKeyState (void)
int GetNumpadMinusKeyState (void)
int GetReturnKeyState (void)
int GetSpaceKeyState (void)
int GetShiftKeyState (void)
unsigned int GetKeyboardModifiers (void)
int GetControlKeyState (void)
int GetJKeyState (void)
unsigned int GetGameClockTicks (void)
void InitGameClockRandomEpoch (void)
void SetInputCursorHostPosition (int x, int y)
FontWorkspace ** AllocateFontWorkspace (short fontIndex)
void FreeFontWorkspace (FontWorkspace **workspace)
char * LocateStreamsDirOnDisc (void)
char FindCdRomDriveByVolumeLabel (const char *label, const char *directory)
int SetCurrentDirOnDrive (char drive, const char *directory)
int TakeInputPressCount (void)
int PromptInsertCorrectCd (void)

Variables

static char g_szWindowClassName [45]
static char g_szWindowTitle [45]
int g_bDebugBreakEnabled = 0
int g_bApplicationShutdownStarted = 0
int g_bF1KeyDown = 0
int g_nAudioEnabled = 1
int g_bInputEventQueueEnabled = 0
unsigned int g_dwGuardedAllocationTotalBytes = 0
unsigned int g_dwGuardedAllocationBytes = 0
unsigned int g_dwGuardedAllocationPeakBytes = 0
int g_nInputPressCount = 0
int g_bApplicationControllerActive = 0
int g_bShowFrameRate = 0
int g_bConfigQuickModeEnabled = 1
int g_bUseHardwarePalette = 1
int g_bCockpitEnabled = 1
int g_bSkipCampaignVideo = 0
int g_bWindowInactive = 0
int g_nDebugFileLoggingEnabled = 0
FILE * g_pDebugLogFile = 0
int g_bConfigMemoryOption = 0
int g_bWindowMessagePumpActive = 0
int g_nUnusedWinMainWord1 = 0
int g_nPendingMouseX = 0
int g_nPendingMouseY = 0
int g_nUnusedWinMainWord2 = 0
int g_bJoystickPrimaryButtonLatched = 0
int g_bJoystickSecondaryButtonLatched = 0
GuardedAllocation * g_pGuardedAllocationHead = 0
FreedHeapBlock * g_pFreedHeapBlockHead = 0
FreedHeapBlock * g_pFreedHeapBlockTail = 0
unsigned int g_69_dwSysKeyValue
JOYINFO g_1_aJoystickInfoArray [2]
HostMouseMessage g_6_stHostMouseTextBlock
HWND g_10_hMainWindow
HANDLE g_19_hOneProcessLock
unsigned long g_128_dwGameClockBase
GuardedAllocation * g_9_pGuardedAllocationLastRef
char g_szGuardedHeapDiagnosticMessage [0x80]
char g_29_abMemoryLoadNotice [0x80]
int g_5_nIdleWinmainWord [32]
int g_39_bAltNumpadAddHotkeySwitch
int g_27_nLastAltCommandScanNumberWord
HDC g_18_hMainWindowContext
int g_2_bAltFHotkeyFlag
int g_6_bAltDChordState
int g_bJoystickCalibrationHotkey
HCURSOR g_1_hMainWndCursor
int g_2_bAltHHotkey
int g_4_bMenuBHotkey
int g_bMenuAHotkey
int g_6_bMenuTHotkeySwitch
unsigned int g_48_dwGameExitClockValue
int g_3_nSavedOwnerCursorX
int g_102_nStoredWindowCursorYWord
int g_bAltNumpadSubtractShortcut
int g_16_bMainWindowRunning
HINSTANCE g_7_hAppCopy
unsigned int g_11_dwGameZeroTime
long g_13_lGameClockStartData

Detailed Description

Win32 entry point, window, joystick, guarded heap and keyboard state.

Definition in file winmain.c.

Macro Definition Documentation

◆ WINMAIN_C

#define WINMAIN_C

Definition at line 7 of file winmain.c.

Function Documentation

◆ AbortToDesktop()

◆ AllocateFontWorkspace()

FontWorkspace ** AllocateFontWorkspace ( short fontIndex)

◆ AllocateGuardedMemory()

◆ CheckAllGuardedAllocations()

void CheckAllGuardedAllocations ( void )

Definition at line 801 of file winmain.c.

References CheckAllGuardedAllocations().

Referenced by CheckAllGuardedAllocations(), and Update_3Space().

◆ CheckLauncherAndConfig()

◆ CreateMainWindow()

int CreateMainWindow ( HINSTANCE instance,
HINSTANCE previous,
int showCommand )

◆ DetectDoubleFree()

int DetectDoubleFree ( void * memory)

◆ FindCdRomDriveByVolumeLabel()

char FindCdRomDriveByVolumeLabel ( const char * label,
const char * directory )

◆ FreeFontWorkspace()

void FreeFontWorkspace ( FontWorkspace ** workspace)

Definition at line 1210 of file winmain.c.

References FreeFontWorkspace().

Referenced by FreeFontWorkspace().

◆ FreeGuardedAllocation()

◆ FreeTrackedHeapBlocks()

void FreeTrackedHeapBlocks ( void )

Definition at line 889 of file winmain.c.

References FreeTrackedHeapBlocks(), g_pFreedHeapBlockHead, and FreedHeapBlock::next.

Referenced by FreeTrackedHeapBlocks().

◆ GetApplicationInstance()

HINSTANCE GetApplicationInstance ( void )

Definition at line 734 of file winmain.c.

References g_7_hAppCopy, and GetApplicationInstance().

Referenced by GetApplicationInstance().

◆ GetControlKeyState()

int GetControlKeyState ( void )

◆ GetDownArrowKeyState()

int GetDownArrowKeyState ( void )

Definition at line 1082 of file winmain.c.

References GetDownArrowKeyState().

Referenced by GetDownArrowKeyState(), and KeyboardMousePump().

◆ GetEndKeyState()

int GetEndKeyState ( void )

Definition at line 1076 of file winmain.c.

References GetEndKeyState().

Referenced by GetEndKeyState(), and KeyboardMousePump().

◆ GetF1KeyLatch()

unsigned int GetF1KeyLatch ( void )

Definition at line 17 of file winmain.c.

References g_bF1KeyDown, and GetF1KeyLatch().

Referenced by GetF1KeyLatch(), and HandleSpaceFlightControls().

◆ GetGameClockTicks()

unsigned int GetGameClockTicks ( void )

◆ GetHomeKeyState()

int GetHomeKeyState ( void )

Definition at line 1046 of file winmain.c.

References GetHomeKeyState().

Referenced by GetHomeKeyState(), and KeyboardMousePump().

◆ GetJKeyState()

int GetJKeyState ( void )

Definition at line 1142 of file winmain.c.

References GetJKeyState().

Referenced by GetJKeyState(), and PollSceneHotspotInput().

◆ GetJoystickButtons()

short GetJoystickButtons ( void )

Definition at line 706 of file winmain.c.

References g_1_aJoystickInfoArray, and GetJoystickButtons().

Referenced by GetJoystickButtons(), and ReadJoystickButtons().

◆ GetJoystickDevCaps()

void GetJoystickDevCaps ( short joystick,
short * xMin,
short * xMax,
short * yMin,
short * yMax )

Definition at line 716 of file winmain.c.

References GetJoystickDevCaps().

Referenced by GetJoystickDevCaps(), and LoadJoystickCalibrationFile().

◆ GetJoystickPosition()

void GetJoystickPosition ( unsigned int * x,
unsigned int * y,
int * buttons,
unsigned short joystick,
unsigned int fallback )

◆ GetKeyboardModifiers()

unsigned int GetKeyboardModifiers ( void )

◆ GetLeftArrowKeyState()

int GetLeftArrowKeyState ( void )

Definition at line 1064 of file winmain.c.

References GetLeftArrowKeyState().

Referenced by GetLeftArrowKeyState(), and KeyboardMousePump().

◆ GetMainWindowDeviceContext()

HDC GetMainWindowDeviceContext ( void )

Definition at line 750 of file winmain.c.

References g_18_hMainWindowContext, and GetMainWindowDeviceContext().

Referenced by GetMainWindowDeviceContext().

◆ GetMainWindowHandle()

HWND GetMainWindowHandle ( void )

Definition at line 742 of file winmain.c.

References g_10_hMainWindow, and GetMainWindowHandle().

Referenced by GetMainWindowHandle().

◆ GetNumLockKeyState()

int GetNumLockKeyState ( void )

Definition at line 1094 of file winmain.c.

References GetNumLockKeyState().

Referenced by GetNumLockKeyState(), and KeyboardMousePump().

◆ GetNumpadMinusKeyState()

int GetNumpadMinusKeyState ( void )

Definition at line 1106 of file winmain.c.

References GetNumpadMinusKeyState().

Referenced by GetNumpadMinusKeyState(), and KeyboardMousePump().

◆ GetNumpadPlusKeyState()

int GetNumpadPlusKeyState ( void )

Definition at line 1100 of file winmain.c.

References GetNumpadPlusKeyState().

Referenced by GetNumpadPlusKeyState(), and KeyboardMousePump().

◆ GetPageDownKeyState()

int GetPageDownKeyState ( void )

Definition at line 1088 of file winmain.c.

References GetPageDownKeyState().

Referenced by GetPageDownKeyState(), and KeyboardMousePump().

◆ GetPageUpKeyState()

int GetPageUpKeyState ( void )

Definition at line 1058 of file winmain.c.

References GetPageUpKeyState().

Referenced by GetPageUpKeyState(), and KeyboardMousePump().

◆ GetReturnKeyState()

int GetReturnKeyState ( void )

Definition at line 1112 of file winmain.c.

References GetReturnKeyState().

Referenced by GetReturnKeyState(), and KeyboardMousePump().

◆ GetRightArrowKeyState()

int GetRightArrowKeyState ( void )

Definition at line 1070 of file winmain.c.

References GetRightArrowKeyState().

Referenced by GetRightArrowKeyState(), and KeyboardMousePump().

◆ GetShiftKeyState()

int GetShiftKeyState ( void )

◆ GetSpaceKeyState()

int GetSpaceKeyState ( void )

Definition at line 1118 of file winmain.c.

References GetSpaceKeyState().

Referenced by GetSpaceKeyState(), and KeyboardMousePump().

◆ GetUpArrowKeyState()

int GetUpArrowKeyState ( void )

Definition at line 1052 of file winmain.c.

References GetUpArrowKeyState().

Referenced by GetUpArrowKeyState(), and KeyboardMousePump().

◆ InitGameClockRandomEpoch()

void InitGameClockRandomEpoch ( void )

◆ IsFreedHeapBlockTracked()

int IsFreedHeapBlockTracked ( void * memory)

◆ LocateStreamsDirOnDisc()

char * LocateStreamsDirOnDisc ( void )

◆ MainWindowProc()

◆ OutputDebugPrintf()

void OutputDebugPrintf ( const char * format,
... )

Definition at line 204 of file winmain.c.

References OutputDebugPrintf().

Referenced by AdvanceSceneFlicStream(), close_behind(), and OutputDebugPrintf().

◆ PollEscapeKey()

void PollEscapeKey ( void )

Definition at line 983 of file winmain.c.

References g_bSceneEscapeRequested, and PollEscapeKey().

Referenced by PollEscapeKey().

◆ PollKeyboardState()

◆ PromptInsertCorrectCd()

int PromptInsertCorrectCd ( void )

Definition at line 1324 of file winmain.c.

References LocateStreamsDirOnDisc(), and PromptInsertCorrectCd().

Referenced by PromptInsertCorrectCd(), and WinMain().

◆ PumpWindowMessages()

◆ ReportHeapGuardCorruption()

void ReportHeapGuardCorruption ( void * memory,
int count,
int overrun )

Definition at line 788 of file winmain.c.

References ReportHeapGuardCorruption().

Referenced by FreeGuardedAllocation(), and ReportHeapGuardCorruption().

◆ SetCurrentDirOnDrive()

int SetCurrentDirOnDrive ( char drive,
const char * directory )

Definition at line 1297 of file winmain.c.

References SetCurrentDirOnDrive().

Referenced by FindCdRomDriveByVolumeLabel(), and SetCurrentDirOnDrive().

◆ SetInputCursorHostPosition()

void SetInputCursorHostPosition ( int x,
int y )

◆ SetMousePosition()

void SetMousePosition ( int x,
int y )

Definition at line 975 of file winmain.c.

References SetMousePosition().

Referenced by KeyboardMousePump(), PollMenuInputDevices(), and SetMousePosition().

◆ ShowNoticeMessageBox()

void ShowNoticeMessageBox ( const char * text)

Definition at line 194 of file winmain.c.

References DIBpositionWindow(), and ShowNoticeMessageBox().

Referenced by exit_squadron(), and ShowNoticeMessageBox().

◆ ShutdownGameWindow()

◆ TakeInputPressCount()

int TakeInputPressCount ( void )

◆ TrackFreedHeapBlock()

void TrackFreedHeapBlock ( void * memory)

◆ UntrackFreedHeapBlock()

◆ WinMain()

◆ WriteDebugString()

void WriteDebugString ( const char * s)

Variable Documentation

◆ g_102_nStoredWindowCursorYWord

int g_102_nStoredWindowCursorYWord

Definition at line 1405 of file winmain.c.

Referenced by MainWindowProc().

◆ g_10_hMainWindow

HWND g_10_hMainWindow

◆ g_11_dwGameZeroTime

unsigned int g_11_dwGameZeroTime

Definition at line 1409 of file winmain.c.

Referenced by WinMain().

◆ g_128_dwGameClockBase

unsigned long g_128_dwGameClockBase

Definition at line 1387 of file winmain.c.

Referenced by GetGameClockTicks(), and InitGameClockRandomEpoch().

◆ g_13_lGameClockStartData

long g_13_lGameClockStartData

Definition at line 1410 of file winmain.c.

Referenced by InitGameClockRandomEpoch(), and PumpWindowMessages().

◆ g_16_bMainWindowRunning

int g_16_bMainWindowRunning

Definition at line 1407 of file winmain.c.

Referenced by CreateMainWindow(), MainWindowProc(), and PumpWindowMessages().

◆ g_18_hMainWindowContext

HDC g_18_hMainWindowContext

Definition at line 1394 of file winmain.c.

Referenced by CreateMainWindow(), and GetMainWindowDeviceContext().

◆ g_19_hOneProcessLock

HANDLE g_19_hOneProcessLock

Definition at line 1386 of file winmain.c.

Referenced by AbortToDesktop(), ShutdownGameWindow(), and WinMain().

◆ g_1_aJoystickInfoArray

JOYINFO g_1_aJoystickInfoArray[2]

Definition at line 1383 of file winmain.c.

Referenced by GetJoystickButtons(), and GetJoystickPosition().

◆ g_1_hMainWndCursor

HCURSOR g_1_hMainWndCursor

Definition at line 1398 of file winmain.c.

Referenced by CreateMainWindow().

◆ g_27_nLastAltCommandScanNumberWord

int g_27_nLastAltCommandScanNumberWord

Definition at line 1393 of file winmain.c.

Referenced by HandleSpaceFlightControls(), and MainWindowProc().

◆ g_29_abMemoryLoadNotice

char g_29_abMemoryLoadNotice[0x80]

Definition at line 1390 of file winmain.c.

Referenced by AbortToDesktop().

◆ g_2_bAltFHotkeyFlag

int g_2_bAltFHotkeyFlag

Definition at line 1395 of file winmain.c.

Referenced by HandleSpaceFlightControls(), and MainWindowProc().

◆ g_2_bAltHHotkey

int g_2_bAltHHotkey

Definition at line 1399 of file winmain.c.

Referenced by HandleSpaceFlightControls(), and MainWindowProc().

◆ g_39_bAltNumpadAddHotkeySwitch

int g_39_bAltNumpadAddHotkeySwitch

Definition at line 1392 of file winmain.c.

Referenced by HandleSpaceFlightControls(), and MainWindowProc().

◆ g_3_nSavedOwnerCursorX

int g_3_nSavedOwnerCursorX

Definition at line 1404 of file winmain.c.

Referenced by MainWindowProc().

◆ g_48_dwGameExitClockValue

unsigned int g_48_dwGameExitClockValue

Definition at line 1403 of file winmain.c.

Referenced by ShutdownGameWindow(), and WinMain().

◆ g_4_bMenuBHotkey

int g_4_bMenuBHotkey

Definition at line 1400 of file winmain.c.

Referenced by HandleSpaceFlightControls(), and MainWindowProc().

◆ g_5_nIdleWinmainWord

int g_5_nIdleWinmainWord[32]

Definition at line 1391 of file winmain.c.

◆ g_69_dwSysKeyValue

unsigned int g_69_dwSysKeyValue

Definition at line 1382 of file winmain.c.

Referenced by GetKeyboardModifiers(), and MainWindowProc().

◆ g_6_bAltDChordState

int g_6_bAltDChordState

Definition at line 1396 of file winmain.c.

Referenced by HandleSpaceFlightControls(), and MainWindowProc().

◆ g_6_bMenuTHotkeySwitch

int g_6_bMenuTHotkeySwitch

Definition at line 1402 of file winmain.c.

Referenced by HandleSpaceFlightControls(), and MainWindowProc().

◆ g_6_stHostMouseTextBlock

◆ g_7_hAppCopy

HINSTANCE g_7_hAppCopy

Definition at line 1408 of file winmain.c.

Referenced by CreateMainWindow(), and GetApplicationInstance().

◆ g_9_pGuardedAllocationLastRef

GuardedAllocation* g_9_pGuardedAllocationLastRef

Definition at line 1388 of file winmain.c.

Referenced by AllocateGuardedMemory(), and FreeGuardedAllocation().

◆ g_bAltNumpadSubtractShortcut

int g_bAltNumpadSubtractShortcut

Definition at line 1406 of file winmain.c.

Referenced by HandleSpaceFlightControls(), and MainWindowProc().

◆ g_bApplicationControllerActive

int g_bApplicationControllerActive = 0

Definition at line 1355 of file winmain.c.

Referenced by MainWindowProc(), and WinMain().

◆ g_bApplicationShutdownStarted

int g_bApplicationShutdownStarted = 0

Definition at line 1347 of file winmain.c.

Referenced by AbortToDesktop(), MainWindowProc(), ShutdownGameWindow(), and WinMain().

◆ g_bCockpitEnabled

int g_bCockpitEnabled = 1

Definition at line 1359 of file winmain.c.

◆ g_bConfigMemoryOption

int g_bConfigMemoryOption = 0

Definition at line 1368 of file winmain.c.

Referenced by CheckLauncherAndConfig().

◆ g_bConfigQuickModeEnabled

int g_bConfigQuickModeEnabled = 1

Definition at line 1357 of file winmain.c.

Referenced by CheckLauncherAndConfig(), DIBinstall(), and DIBreInstall().

◆ g_bDebugBreakEnabled

int g_bDebugBreakEnabled = 0

Definition at line 1346 of file winmain.c.

Referenced by CheckLauncherAndConfig(), HandleSpaceFlightControls(), and MainWindowProc().

◆ g_bF1KeyDown

int g_bF1KeyDown = 0

Definition at line 1348 of file winmain.c.

Referenced by GetF1KeyLatch(), and MainWindowProc().

◆ g_bInputEventQueueEnabled

int g_bInputEventQueueEnabled = 0

Definition at line 1350 of file winmain.c.

Referenced by WaitForQueuedInputPress().

◆ g_bJoystickCalibrationHotkey

int g_bJoystickCalibrationHotkey

Definition at line 1397 of file winmain.c.

Referenced by HandleSpaceFlightControls(), MainWindowProc(), and PollSceneHotspotInput().

◆ g_bJoystickPrimaryButtonLatched

int g_bJoystickPrimaryButtonLatched = 0

Definition at line 1374 of file winmain.c.

Referenced by GetJoystickPosition().

◆ g_bJoystickSecondaryButtonLatched

int g_bJoystickSecondaryButtonLatched = 0

Definition at line 1375 of file winmain.c.

Referenced by GetJoystickPosition().

◆ g_bMenuAHotkey

int g_bMenuAHotkey

Definition at line 1401 of file winmain.c.

Referenced by HandleSpaceFlightControls(), and MainWindowProc().

◆ g_bShowFrameRate

int g_bShowFrameRate = 0

Definition at line 1356 of file winmain.c.

Referenced by CheckLauncherAndConfig(), and ThrottleFrameAndDrawFps().

◆ g_bSkipCampaignVideo

int g_bSkipCampaignVideo = 0

Definition at line 1360 of file winmain.c.

Referenced by CheckLauncherAndConfig(), and RunCampaignScript().

◆ g_bUseHardwarePalette

int g_bUseHardwarePalette = 1

◆ g_bWindowInactive

int g_bWindowInactive = 0

Definition at line 1361 of file winmain.c.

Referenced by MainWindowProc(), PumpWindowMessages(), and WinMain().

◆ g_bWindowMessagePumpActive

int g_bWindowMessagePumpActive = 0

Definition at line 1369 of file winmain.c.

Referenced by PumpWindowMessages().

◆ g_dwGuardedAllocationBytes

unsigned int g_dwGuardedAllocationBytes = 0

Definition at line 1352 of file winmain.c.

Referenced by AbortToDesktop().

◆ g_dwGuardedAllocationPeakBytes

unsigned int g_dwGuardedAllocationPeakBytes = 0

Definition at line 1353 of file winmain.c.

Referenced by AbortToDesktop().

◆ g_dwGuardedAllocationTotalBytes

unsigned int g_dwGuardedAllocationTotalBytes = 0

Definition at line 1351 of file winmain.c.

Referenced by AbortToDesktop().

◆ g_nAudioEnabled

◆ g_nDebugFileLoggingEnabled

int g_nDebugFileLoggingEnabled = 0

Definition at line 1366 of file winmain.c.

Referenced by CheckLauncherAndConfig(), and WriteDebugString().

◆ g_nInputPressCount

int g_nInputPressCount = 0

◆ g_nPendingMouseX

int g_nPendingMouseX = 0

Definition at line 1371 of file winmain.c.

Referenced by MainWindowProc().

◆ g_nPendingMouseY

int g_nPendingMouseY = 0

Definition at line 1372 of file winmain.c.

Referenced by MainWindowProc().

◆ g_nUnusedWinMainWord1

int g_nUnusedWinMainWord1 = 0

Definition at line 1370 of file winmain.c.

◆ g_nUnusedWinMainWord2

int g_nUnusedWinMainWord2 = 0

Definition at line 1373 of file winmain.c.

◆ g_pDebugLogFile

FILE* g_pDebugLogFile = 0

Definition at line 1367 of file winmain.c.

Referenced by WriteDebugString().

◆ g_pFreedHeapBlockHead

◆ g_pFreedHeapBlockTail

FreedHeapBlock* g_pFreedHeapBlockTail = 0

Definition at line 1378 of file winmain.c.

Referenced by TrackFreedHeapBlock(), and UntrackFreedHeapBlock().

◆ g_pGuardedAllocationHead

GuardedAllocation* g_pGuardedAllocationHead = 0

Definition at line 1376 of file winmain.c.

Referenced by AllocateGuardedMemory(), and FreeGuardedAllocation().

◆ g_szGuardedHeapDiagnosticMessage

char g_szGuardedHeapDiagnosticMessage[0x80]

Definition at line 1389 of file winmain.c.

Referenced by FreeGuardedAllocation().

◆ g_szWindowClassName

char g_szWindowClassName
static
Initial value:
=
"Wing Commander II: Vengeance of the Kilrathi"

Definition at line 10 of file winmain.c.

Referenced by CreateMainWindow().

◆ g_szWindowTitle

char g_szWindowTitle
static
Initial value:
=
"Wing Commander II: Vengeance of the Kilrathi"

Definition at line 11 of file winmain.c.

Referenced by CreateMainWindow().