mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
(based on cipherCOM's repo commit d3d8934) Signed-off-by: VladimirMangos <vladimir@getmangos.com>
49 lines
1.1 KiB
C++
49 lines
1.1 KiB
C++
// $Id: Main.cpp 85397 2009-05-19 10:34:37Z johnnyw $
|
|
|
|
// ************************************************
|
|
// ** This file is NOT to be used for framework. **
|
|
// ************************************************
|
|
|
|
// This file defines the entry point for Windows CE, which is defined in OS.h for real applications.
|
|
|
|
|
|
#include "FaCE.h"
|
|
|
|
extern BOOL InitInstance (HINSTANCE, int);
|
|
extern void InitSetup();
|
|
|
|
|
|
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE, ACE_TCHAR*, int nCmdShow)
|
|
{
|
|
MSG msg;
|
|
HACCEL hAccelTable;
|
|
if (!InitInstance (hInstance, nCmdShow)) return FALSE;
|
|
hAccelTable = LoadAccelerators(hInstance, (const ACE_TCHAR*)IDC_FACE);
|
|
InitSetup();
|
|
while (GetMessage(&msg, 0, 0, 0)) {
|
|
if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) {
|
|
TranslateMessage(&msg);
|
|
DispatchMessage(&msg);
|
|
}
|
|
}
|
|
return msg.wParam;
|
|
}
|
|
|
|
|
|
#ifdef NO_ACE
|
|
|
|
int main_i(int, ACE_TCHAR**)
|
|
{
|
|
// this function will be replaced by user's main_ce function
|
|
return 0;
|
|
}
|
|
|
|
#else
|
|
|
|
int ace_main_i(int, ACE_TCHAR**)
|
|
{
|
|
// this function will be replaced by user's main_ce function
|
|
return 0;
|
|
}
|
|
|
|
#endif // NO_ACE
|