TombEngine/TR5Main/Specific/winmain.h

27 lines
849 B
C
Raw Normal View History

2018-08-19 09:46:58 +02:00
#pragma once
#include "..\Global\global.h"
2019-05-09 13:50:55 +02:00
#pragma comment(linker,"/manifestdependency:\"" \
"type='win32' " \
"name='Microsoft.Windows.Common-Controls' " \
"version='6.0.0.0' " \
"processorArchitecture='*' " \
"publicKeyToken='6595b64144ccf1df' " \
"language='*'\"")
2018-08-19 09:46:58 +02:00
extern WINAPP App;
extern unsigned int threadId;
extern uintptr_t hThread;
extern HACCEL hAccTable;
2019-12-02 09:11:21 +01:00
#define GameClose ((int (__cdecl*)(void)) 0x004A8575)
#define WinAppProc2 ((int (__cdecl*)(HWND, UINT, WPARAM, LPARAM)) 0x004D2AB0)
2018-08-19 09:46:58 +02:00
int WinProcMsg();
2019-12-02 09:11:21 +01:00
int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd);
int WinClose();
LRESULT CALLBACK WinAppProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
2019-12-02 09:11:21 +01:00
void __stdcall HandleWmCommand(unsigned short wParam);
2018-08-19 09:46:58 +02:00
void Inject_WinMain();