+ DPRINT("LpcRequestPort(PortHandle %08x, LpcMessage %08x)\n", Port, LpcMessage);
+
+#ifdef __USE_NT_LPC__
+ /* Check the message's type */
+ if (LPC_NEW_MESSAGE == LpcMessage->MessageType)
+ {
+ LpcMessage->MessageType = LPC_DATAGRAM;
+ }
+ else if (LPC_DATAGRAM == LpcMessage->MessageType)
+ {
+ return STATUS_INVALID_PARAMETER;
+ }
+ else if (LpcMessage->MessageType > LPC_CLIENT_DIED)
+ {
+ return STATUS_INVALID_PARAMETER;
+ }
+ /* Check the range offset */
+ if (0 != LpcMessage->VirtualRangesOffset)
+ {
+ return STATUS_INVALID_PARAMETER;
+ }
+#endif
+