35{
40
41
46
48 "TotalLength = %u, expected %lu\n",
51 "DataLength = %u\n",
Message.Header.u1.s1.DataLength);
53 "Type = %x\n",
Message.Header.u2.s2.Type);
55 "UniqueProcess = %p, expected %lx\n",
58 "UniqueThread = %p, expected %x\n",
61
70 ok(PortHandle == (
PVOID)(
ULONG_PTR)0x55555555,
"PortHandle = %p\n", PortHandle);
71
72
77
79 "TotalLength = %u, expected %lu\n",
82 "DataLength = %u\n",
Message.Header.u1.s1.DataLength);
84 "Type = %x\n",
Message.Header.u2.s2.Type);
86 "UniqueProcess = %p, expected %lx\n",
89 "UniqueThread = %p, expected %x\n",
92
100
103
110
112 "TotalLength = %u, expected %Iu\n",
115 "DataLength = %u\n",
Message.Header.u1.s1.DataLength);
117 "Type = %x\n",
Message.Header.u2.s2.Type);
119 "UniqueProcess = %p, expected %lx\n",
122 "UniqueThread = %p, expected %x\n",
125
128
129 return 0;
130}
static UINT ClientThreadId
#define UlongToHandle(ul)
NTSTATUS NTAPI NtAcceptConnectPort(OUT PHANDLE PortHandle, IN PVOID PortContext OPTIONAL, IN PPORT_MESSAGE ReplyMessage, IN BOOLEAN AcceptConnection, IN OUT PPORT_VIEW ServerView OPTIONAL, OUT PREMOTE_PORT_VIEW ClientView OPTIONAL)
NTSTATUS NTAPI NtCompleteConnectPort(IN HANDLE PortHandle)
#define LPC_CONNECTION_REQUEST
#define RTL_SIZEOF_THROUGH_FIELD(type, field)
NTSTATUS NTAPI NtListenPort(IN HANDLE PortHandle, OUT PPORT_MESSAGE ConnectMessage)
NTSTATUS NTAPI NtReplyWaitReceivePort(IN HANDLE PortHandle, OUT PVOID *PortContext OPTIONAL, IN PPORT_MESSAGE ReplyMessage OPTIONAL, OUT PPORT_MESSAGE ReceiveMessage)
DWORD WINAPI GetCurrentProcessId(void)
_Inout_opt_ PVOID Parameter