Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
patch.cpp File Reference
#include "patch.h"
#include <shellapi.h>
#include <direct.h>

Go to the source code of this file.

Typedefs

typedef LPVOID(CALLBACK * PATCHCALLBACK) (UINT, LPVOID)
 
typedef UINT(CALLBACK * PATCHFUNC) (LPSTR, PATCHCALLBACK, BOOL)
 

Functions

BOOL CALLBACK Update_Info_Proc (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
 
void Shutdown_Computer_Now (void)
 
 __declspec (dllexport) LPVOID CALLBACK PatchCallBack(UINT ID
 
void Apply_Patch (char *patchfile, ConfigFile &config, int skuIndex)
 
 while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
 
 switch (Id)
 
 if (Abort) return(NULL)
 
else return (RetVal)
 

Variables

LPVOID Param
 
MSG msg
 
int counter =0
 
LPVOID RetVal =""
 
bit8 Abort =FALSE
 
int percent
 

Typedef Documentation

◆ PATCHCALLBACK

typedef LPVOID(CALLBACK * PATCHCALLBACK) (UINT, LPVOID)

Definition at line 128 of file patch.cpp.

◆ PATCHFUNC

typedef UINT(CALLBACK * PATCHFUNC) (LPSTR, PATCHCALLBACK, BOOL)

Definition at line 129 of file patch.cpp.

Function Documentation

◆ __declspec()

__declspec ( dllexport )

◆ Apply_Patch()

void Apply_Patch ( char * patchfile,
ConfigFile & config,
int skuIndex )

Definition at line 136 of file patch.cpp.

◆ if()

if ( Abort )

◆ return()

else return ( RetVal )

◆ Shutdown_Computer_Now()

void Shutdown_Computer_Now ( void )

Definition at line 350 of file patch.cpp.

◆ switch()

switch ( Id )

Definition at line 428 of file patch.cpp.

◆ Update_Info_Proc()

BOOL CALLBACK Update_Info_Proc ( HWND hwnd,
UINT iMsg,
WPARAM wParam,
LPARAM lParam )

Definition at line 42 of file patch.cpp.

◆ while()

while ( PeekMessage &,, 0, 0, PM_REMOVE)

Definition at line 411 of file patch.cpp.

Variable Documentation

◆ Abort

bit8 Abort =FALSE

Definition at line 421 of file patch.cpp.

◆ counter

int counter =0

Definition at line 410 of file patch.cpp.

◆ msg

MSG msg

Definition at line 409 of file patch.cpp.

◆ Param

LPVOID Param
Initial value:
{
char string[128]

Definition at line 126 of file patch.cpp.

◆ percent

int percent

Definition at line 426 of file patch.cpp.

◆ RetVal

LPVOID RetVal =""

Definition at line 420 of file patch.cpp.