mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-25 02:33:59 +08:00
initical commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* This program which should be named "mginit" calls "ServerStartup"
|
||||
* to start the server of MiniGUI-Processes.
|
||||
*/
|
||||
int MiniGUIMain (int args, const char* arg[])
|
||||
{
|
||||
if (!ServerStartup (0, 0, 0)) {
|
||||
fprintf (stderr, "Can not the MiniGUI server: mginit.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!InitMiniGUIExt ()) {
|
||||
fprintf (stderr, "Can not init mgext library.\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Enter message loop */
|
||||
while (GetMessage (&msg, HWND_DESKTOP)) {
|
||||
DispatchMessage (&msg);
|
||||
}
|
||||
|
||||
MiniGUIExtCleanUp ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user