Modify to conform to the new CSR.
Modified: trunk/vms/server/server.c
Modified: trunk/vms/server/vmssrv.def

Modified: trunk/vms/server/server.c
--- trunk/vms/server/server.c	2005-10-02 18:31:50 UTC (rev 18228)
+++ trunk/vms/server/server.c	2005-10-02 19:31:30 UTC (rev 18229)
@@ -32,35 +32,37 @@
 
 /**********************************************************************
  * NAME							PRIVATE
- * 	VmsStaticServerThread/1
+ * 	VmsApiNull/2
  */
-VOID STDCALL VmsStaticServerThread (PVOID x)
+NTSTATUS NTAPI VmsApiNull (IN OUT PCSR_API_MESSAGE ApiMessage,
+			   IN OUT PULONG Reply)
 {
-	NTSTATUS Status = STATUS_SUCCESS;
-	PPORT_MESSAGE Request = (PPORT_MESSAGE) x;
-	PPORT_MESSAGE Reply = NULL;
-	ULONG MessageType = 0;
-
 	DPRINT("VMSSRV: %s called\n", __FUNCTION__);
 
-	MessageType = Request->u2.s2.Type;
-	DPRINT("VMSSRV: %s received a message (Type=%d)\n",
-		__FUNCTION__, MessageType);
-	switch (MessageType)
-	{
-		default:
-			Reply = Request;
-			Status = NtReplyPort (VmsApiPort, Reply);
-			break;
-	}
+	*Reply = 0;
+	return STATUS_SUCCESS;
 }
 
+PCSR_API_ROUTINE VmsServerApiDispatchTable [1] =
+{
+	VmsApiNull
+};
+
+BOOLEAN VmsServerApiValidTable [1] =
+{
+    TRUE
+};
+
+PCHAR VmsServerApiNameTable [1] =
+{
+    "Null",
+};
+
 /*=====================================================================
  * 	PUBLIC API
  *===================================================================*/
 
-NTSTATUS STDCALL ServerDllInitialization (ULONG ArgumentCount,
-					  LPWSTR *Argument)
+NTSTATUS NTAPI ServerDllInitialization (PCSR_SERVER_DLL LoadedServerDll)
 {
 	NTSTATUS Status = STATUS_SUCCESS;
 	
@@ -70,14 +72,18 @@
 	VmsApiPort = CsrQueryApiPort ();
 	if (NULL == VmsApiPort)
 	{
-		return STATUS_UNSUCCESSFUL;
+		Status = STATUS_UNSUCCESSFUL;
+	} else {
+		// Set CSR information
+		LoadedServerDll->ApiBase             = 0;
+		LoadedServerDll->HighestApiSupported = 0;
+		LoadedServerDll->DispatchTable       = VmsServerApiDispatchTable;
+		LoadedServerDll->ValidTable          = VmsServerApiValidTable;
+		LoadedServerDll->NameTable           = VmsServerApiNameTable;
+		LoadedServerDll->SizeOfProcessData   = 0;
+		LoadedServerDll->ConnectCallback     = NULL;
+		LoadedServerDll->DisconnectCallback  = NULL;
 	}
-	// Register our message dispatcher
-	Status = CsrAddStaticServerThread (VmsStaticServerThread);
-	if (NT_SUCCESS(Status))
-	{
-		//TODO: perform the real VMS server internal initialization here
-	}
 	return Status;
 }
 

Modified: trunk/vms/server/vmssrv.def
--- trunk/vms/server/vmssrv.def	2005-10-02 18:31:50 UTC (rev 18228)
+++ trunk/vms/server/vmssrv.def	2005-10-02 19:31:30 UTC (rev 18229)
@@ -1,3 +1,3 @@
 LIBRARY vmssrv.dll
 EXPORTS
-ServerDllInitialization@8
+ServerDllInitialization@4