ReactOS  0.4.14-dev-358-gbef841c
NtUserProcessConnect.c
Go to the documentation of this file.
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 
11 {
14  USERCONNECT UserConnect = {0};
15 
17 
18  UserConnect.ulVersion = MAKELONG(0, 5);
19  Status = NtUserProcessConnect(hProcess, (USERCONNECT*)&UserConnect, sizeof(USERCONNECT));
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%lx\n", UserConnect.siClient.ulSharedDelta);
29 
30 }
LONG NTSTATUS
Definition: precomp.h:26
_In_ BOOL _In_ HANDLE hProcess
Definition: mapping.h:70
#define MAKELONG(a, b)
Definition: typedefs.h:248
DWORD dwDispatchCount
Definition: ntuser.h:1093
PSERVERINFO psi
Definition: ntuser.h:1079
ULONG ulCurrentVersion
Definition: ntuser.h:1092
PVOID pDispInfo
Definition: ntuser.h:1081
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define TEST(x)
Definition: precomp.h:20
HANDLE WINAPI GetCurrentProcess(VOID)
Definition: proc.c:1138
ULONG ulVersion
Definition: ntuser.h:1091
START_TEST(NtUserProcessConnect)
ULONG_PTR ulSharedDelta
Definition: ntuser.h:1082
Status
Definition: gdiplustypes.h:24
SHAREDINFO siClient
Definition: ntuser.h:1094
NTSTATUS NTAPI NtUserProcessConnect(IN HANDLE ProcessHandle, OUT PUSERCONNECT pUserConnect, IN ULONG Size)
Definition: ntstubs.c:529
#define printf
Definition: config.h:203
PVOID aheList
Definition: ntuser.h:1080