1 /*
2  * PROJECT:         ReactOS api tests
3  * LICENSE:         GPL - See COPYING in the top level directory
4  * PURPOSE:         Test for NtUserProcessConnect
5  * PROGRAMMERS:
6  */
7 
8 #include <win32nt.h>
9 
10 START_TEST(NtUserProcessConnect)
11 {
12     HANDLE hProcess;
13     NTSTATUS Status;
14     USERCONNECT UserConnect = {0};
15 
16     hProcess = GetCurrentProcess();
17 
18     UserConnect.ulVersion = MAKELONG(0, 5);
19     Status = NtUserProcessConnect(hProcess, &UserConnect, sizeof(USERCONNECT));
20     TEST(NT_SUCCESS(Status));
21 
22     printf("UserConnect.ulVersion = 0x%lx\n", UserConnect.ulVersion);
23     printf("UserConnect.ulCurrentVersion = 0x%lx\n", UserConnect.ulCurrentVersion);
24     printf("UserConnect.dwDispatchCount = 0x%lx\n", UserConnect.dwDispatchCount);
25     printf("UserConnect.siClient.psi = 0x%p\n", UserConnect.siClient.psi);
26     printf("UserConnect.siClient.aheList = 0x%p\n", UserConnect.siClient.aheList);
27     printf("UserConnect.siClient.pDispInfo = 0x%p\n", UserConnect.siClient.pDispInfo);
28     printf("UserConnect.siClient.ulSharedDelta = 0x%Ix\n", UserConnect.siClient.ulSharedDelta);
29 
30 }
31