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

init.c
Go to the documentation of this file.
00001 /* $Id: init.c 43790 2009-10-27 10:34:16Z dgorbachev $
00002  *
00003  * init.c - ReactOS/Win32 base enviroment subsystem server
00004  *
00005  * ReactOS Operating System
00006  *
00007  * --------------------------------------------------------------------
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License along
00020  * with this program; if not, write to the Free Software Foundation, Inc.,
00021  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00022  *
00023  * --------------------------------------------------------------------
00024  */
00025 #include "basesrv.h"
00026 
00027 #define NDEBUG
00028 #include <debug.h>
00029 
00030 HANDLE BaseApiPort = (HANDLE) 0;
00031 
00032 /**********************************************************************
00033  * NAME                         PRIVATE
00034  *  BaseStaticServerThread/1
00035  */
00036 VOID WINAPI BaseStaticServerThread (PVOID x)
00037 {
00038     NTSTATUS Status = STATUS_SUCCESS;
00039     PPORT_MESSAGE Request = (PPORT_MESSAGE) x;
00040     PPORT_MESSAGE Reply = NULL;
00041     ULONG MessageType = 0;
00042 
00043     DPRINT("BASESRV: %s called\n", __FUNCTION__);
00044 
00045     MessageType = Request->u2.s2.Type;
00046     DPRINT("BASESRV: %s received a message (Type=%d)\n",
00047         __FUNCTION__, MessageType);
00048     switch (MessageType)
00049     {
00050         default:
00051             Reply = Request;
00052             Status = NtReplyPort (BaseApiPort, Reply);
00053             break;
00054     }
00055 }
00056 
00057 
00058 NTSTATUS WINAPI ServerDllInitialization (ULONG ArgumentCount, LPWSTR *Argument)
00059 {
00060     NTSTATUS Status = STATUS_SUCCESS;
00061 
00062     DPRINT("BASSRV: %s(%ld,...) called\n", __FUNCTION__, ArgumentCount);
00063 
00064     BaseApiPort = CsrQueryApiPort ();
00065     Status = CsrAddStaticServerThread (BaseStaticServerThread);
00066     if (NT_SUCCESS(Status))
00067     {
00068         //TODO initialize the BASE server
00069     }
00070     return STATUS_SUCCESS;
00071 }
00072 
00073 /* EOF */

Generated on Sun May 27 2012 04:23:32 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.