[PING]
[reactos.git] / rossubsys / vms / server / server.c
1 /* $Id$
2 *
3 * server.c - VMS Enviroment Subsystem Server - Initialization
4 *
5 * ReactOS Operating System
6 *
7 * --------------------------------------------------------------------
8 *
9 * This software is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
13 *
14 * This software is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this software; see the file COPYING.LIB. If not, write
21 * to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge,
22 * MA 02139, USA.
23 *
24 * --------------------------------------------------------------------
25 */
26 #include "vmssrv.h"
27
28 //#define NDEBUG
29 #include <debug.h>
30
31 HANDLE VmsApiPort = NULL;
32
33 /**********************************************************************
34 * NAME PRIVATE
35 * VmsApiNull/2
36 */
37 NTSTATUS NTAPI VmsApiNull (IN OUT PCSR_API_MESSAGE ApiMessage,
38 IN OUT PULONG Reply)
39 {
40 DPRINT("VMSSRV: %s called\n", __FUNCTION__);
41
42 *Reply = 0;
43 return STATUS_SUCCESS;
44 }
45
46 PCSR_API_ROUTINE VmsServerApiDispatchTable [1] =
47 {
48 VmsApiNull
49 };
50
51 BOOLEAN VmsServerApiValidTable [1] =
52 {
53 TRUE
54 };
55
56 PCHAR VmsServerApiNameTable [1] =
57 {
58 "Null",
59 };
60
61 /*=====================================================================
62 * PUBLIC API
63 *===================================================================*/
64
65 NTSTATUS NTAPI ServerDllInitialization (PCSR_SERVER_DLL LoadedServerDll)
66 {
67 NTSTATUS Status = STATUS_SUCCESS;
68
69 DPRINT("VMSSRV: %s called\n", __FUNCTION__);
70
71 // Get the listening port from csrsrv.dll
72 VmsApiPort = CsrQueryApiPort ();
73 if (NULL == VmsApiPort)
74 {
75 Status = STATUS_UNSUCCESSFUL;
76 } else {
77 // Set CSR information
78 LoadedServerDll->ApiBase = 0;
79 LoadedServerDll->HighestApiSupported = 0;
80 LoadedServerDll->DispatchTable = VmsServerApiDispatchTable;
81 LoadedServerDll->ValidTable = VmsServerApiValidTable;
82 LoadedServerDll->NameTable = VmsServerApiNameTable;
83 LoadedServerDll->SizeOfProcessData = 0;
84 LoadedServerDll->ConnectCallback = NULL;
85 LoadedServerDll->DisconnectCallback = NULL;
86 }
87 return Status;
88 }
89
90 /* EOF */