ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

mmc.c
Go to the documentation of this file.
00001 /*
00002  * ReactOS Management Console
00003  * Copyright (C) 2006 - 2007 Thomas Weidenmueller
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00018  */
00019 
00020 #include "precomp.h"
00021 
00022 HINSTANCE hAppInstance;
00023 HANDLE hAppHeap;
00024 
00025 int
00026 _tmain(IN int argc,
00027        IN const TCHAR *argv[])
00028 {
00029     HWND hMainConsole;
00030     MSG Msg;
00031     BOOL bRet;
00032 
00033     hAppInstance = GetModuleHandle(NULL);
00034     hAppHeap = GetProcessHeap();
00035 
00036     InitCommonControls();
00037 
00038     if (!RegisterMMCWndClasses())
00039     {
00040         /* FIXME - Display error */
00041         return 1;
00042     }
00043 
00044     hMainConsole = CreateConsoleWindow(argc > 1 ? argv[1] : NULL);
00045     if (hMainConsole != NULL)
00046     {
00047         for (;;)
00048         {
00049             bRet = GetMessage(&Msg,
00050                               NULL,
00051                               0,
00052                               0);
00053             if (bRet != 0 && bRet != -1)
00054             {
00055                 TranslateMessage(&Msg);
00056                 DispatchMessage(&Msg);
00057             }
00058             else if (bRet == 0)
00059                 break;
00060         }
00061     }
00062 
00063     UnregisterMMCWndClasses();
00064     return 0;
00065 }

Generated on Sat May 26 2012 04:15:51 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.