- Silence TCPIP.
[reactos.git] / reactos / ntoskrnl / lpc / create.c
index 637c54d..55c8645 100644 (file)
@@ -1,10 +1,10 @@
 /* $Id$
- * 
+ *
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS kernel
  * FILE:            ntoskrnl/lpc/create.c
  * PURPOSE:         Communication mechanism
- * 
+ *
  * PROGRAMMERS:     David Welch (welch@cwcom.net)
  */
 
@@ -26,7 +26,7 @@
  *
  * RETURN VALUE
  */
-STATIC NTSTATUS STDCALL 
+STATIC NTSTATUS STDCALL
 LpcpVerifyCreateParameters (IN PHANDLE                 PortHandle,
                            IN  POBJECT_ATTRIBUTES      ObjectAttributes,
                            IN  ULONG                   MaxConnectInfoLength,
@@ -49,11 +49,11 @@ LpcpVerifyCreateParameters (IN      PHANDLE                 PortHandle,
   {
     return (STATUS_INVALID_PORT_ATTRIBUTES);
   }
-  if (MaxConnectInfoLength > PORT_MAX_DATA_LENGTH)
+  if (MaxConnectInfoLength > LPC_MAX_DATA_LENGTH)
     {
       return (STATUS_INVALID_PARAMETER_3);
     }
-  if (MaxDataLength > PORT_MAX_MESSAGE_LENGTH)
+  if (MaxDataLength > LPC_MAX_MESSAGE_LENGTH)
     {
       return (STATUS_INVALID_PARAMETER_4);
     }
@@ -62,41 +62,10 @@ LpcpVerifyCreateParameters (IN      PHANDLE                 PortHandle,
   return (STATUS_SUCCESS);
 }
 
-
-/**********************************************************************
- * NAME
- *     NiCreatePort/4
- *
- * DESCRIPTION
- *
- * ARGUMENTS
- *
- * RETURN VALUE
- */
-NTSTATUS STDCALL
-NiCreatePort (PVOID                    ObjectBody,
-             PVOID                     Parent,
-             PWSTR                     RemainingPath,
-             POBJECT_ATTRIBUTES        ObjectAttributes)
-{
-  if (RemainingPath == NULL)
-    {
-      return (STATUS_SUCCESS);
-    }
-  
-  if (wcschr(RemainingPath+1, '\\') != NULL)
-    {
-      return (STATUS_UNSUCCESSFUL);
-    }
-  
-  return (STATUS_SUCCESS);
-}
-
-
 /**********************************************************************
  * NAME                                                        EXPORTED
  *     NtCreatePort/5
- *     
+ *
  * DESCRIPTION
  *
  * ARGUMENTS
@@ -105,10 +74,10 @@ NiCreatePort (PVOID                        ObjectBody,
  *     MaxConnectInfoLength,
  *     MaxDataLength,
  *     MaxPoolUsage: size of NP zone the NP part of msgs is kept in
- * 
+ *
  * RETURN VALUE
  */
-/*EXPORTED*/ NTSTATUS STDCALL 
+/*EXPORTED*/ NTSTATUS STDCALL
 NtCreatePort (PHANDLE                PortHandle,
              POBJECT_ATTRIBUTES    ObjectAttributes,
              ULONG            MaxConnectInfoLength,
@@ -117,9 +86,9 @@ NtCreatePort (PHANDLE                      PortHandle,
 {
   PEPORT               Port;
   NTSTATUS     Status;
-  
+
   DPRINT("NtCreatePort() Name %x\n", ObjectAttributes->ObjectName->Buffer);
-  
+
   /* Verify parameters */
   Status = LpcpVerifyCreateParameters (PortHandle,
                                       ObjectAttributes,
@@ -159,19 +128,19 @@ NtCreatePort (PHANDLE                   PortHandle,
     }
 
   Status = LpcpInitializePort (Port, EPORT_TYPE_SERVER_RQST_PORT, NULL);
-  Port->MaxConnectInfoLength = PORT_MAX_DATA_LENGTH;
-  Port->MaxDataLength = PORT_MAX_MESSAGE_LENGTH;
+  Port->MaxConnectInfoLength = LPC_MAX_DATA_LENGTH;
+  Port->MaxDataLength = LPC_MAX_MESSAGE_LENGTH;
   Port->MaxPoolUsage = MaxPoolUsage;
-  
+
   ObDereferenceObject (Port);
-  
+
   return (Status);
 }
 
 /**********************************************************************
  * NAME                                                        EXPORTED
  *     NtCreateWaitablePort/5
- *     
+ *
  * DESCRIPTION
  *     Waitable ports can be connected to with NtSecureConnectPort.
  *     No port interface can be used with waitable ports but
@@ -184,7 +153,7 @@ NtCreatePort (PHANDLE                     PortHandle,
  *     MaxConnectInfoLength,
  *     MaxDataLength,
  *     MaxPoolUsage
- * 
+ *
  * RETURN VALUE
  */
 /*EXPORTED*/ NTSTATUS STDCALL
@@ -195,7 +164,7 @@ NtCreateWaitablePort (OUT   PHANDLE                 PortHandle,
                      IN        ULONG                   MaxPoolUsage)
 {
   NTSTATUS Status;
-  
+
   /* Verify parameters */
   Status = LpcpVerifyCreateParameters (PortHandle,
                                       ObjectAttributes,