PORT_MESSAGE_TYPE(m) macro added.
authorEmanuele Aliberti <ea@iol.it>
Sat, 5 May 2001 12:52:49 +0000 (12:52 +0000)
committerEmanuele Aliberti <ea@iol.it>
Sat, 5 May 2001 12:52:49 +0000 (12:52 +0000)
svn path=/trunk/; revision=1883

reactos/include/napi/lpc.h

index 60cd977..1f933a0 100644 (file)
@@ -60,6 +60,8 @@ typedef struct _LPC_MAX_MESSAGE
    BYTE Data[MAX_MESSAGE_DATA];
 } LPC_MAX_MESSAGE, *PLPC_MAX_MESSAGE;
 
+#define PORT_MESSAGE_TYPE(m) (USHORT)((m).Header.MessageType)
+
 NTSTATUS STDCALL NtAcceptConnectPort (PHANDLE  PortHandle,
                                      HANDLE NamedPortHandle,
                                      PLPC_MESSAGE ServerReply,