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

servman.c
Go to the documentation of this file.
00001 /*
00002  * PROJECT:     ReactOS Services
00003  * LICENSE:     GPL - See COPYING in the top level directory
00004  * FILE:        base/system/servman/servman.c
00005  * PURPOSE:     Program HQ
00006  * COPYRIGHT:   Copyright 2005 - 2006 Ged Murphy <gedmurphy@gmail.com>
00007  *
00008  */
00009 
00010 #include "precomp.h"
00011 
00012 HINSTANCE hInstance;
00013 HANDLE ProcessHeap;
00014 
00015 int WINAPI
00016 _tWinMain(HINSTANCE hThisInstance,
00017           HINSTANCE hPrevInstance,
00018           LPTSTR lpCmdLine,
00019           int nCmdShow)
00020 {
00021     LPTSTR lpAppName;
00022     HWND hMainWnd;
00023     MSG Msg;
00024     int Ret = 1;
00025     INITCOMMONCONTROLSEX icex;
00026 
00027     hInstance = hThisInstance;
00028     ProcessHeap = GetProcessHeap();
00029 
00030     icex.dwSize = sizeof(INITCOMMONCONTROLSEX);
00031     icex.dwICC = ICC_BAR_CLASSES | ICC_COOL_CLASSES;
00032     InitCommonControlsEx(&icex);
00033 
00034     if (!AllocAndLoadString(&lpAppName,
00035                             hInstance,
00036                             IDS_APPNAME))
00037     {
00038         return 1;
00039     }
00040 
00041     if (InitMainWindowImpl())
00042     {
00043         hMainWnd = CreateMainWindow(lpAppName,
00044                                     nCmdShow);
00045         if (hMainWnd != NULL)
00046         {
00047             /* pump the message queue */
00048             while( GetMessage( &Msg, NULL, 0, 0 ) )
00049             {
00050                 //if(! IsDialogMessage(hProgDlg, &Msg) )
00051                 //{
00052                     TranslateMessage(&Msg);
00053                     DispatchMessage(&Msg);
00054                 //}
00055             }
00056 
00057             Ret = 0;
00058         }
00059 
00060         UninitMainWindowImpl();
00061     }
00062 
00063     LocalFree((HLOCAL)lpAppName);
00064 
00065     return Ret;
00066 }

Generated on Sat May 26 2012 04:15:58 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.