initical commit

This commit is contained in:
Vincent Wei
2017-05-29 12:20:05 +08:00
commit e87d052072
1648 changed files with 1010800 additions and 0 deletions
+25
View File
@@ -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;
}