mirror of
https://github.com/reactos/reactos.git
synced 2024-08-28 22:28:36 +00:00
![Timo Kreuzer](/assets/img/avatar_default.png)
- Convert win32k native api test to actual wine style api-tests - Hack around a bit with the win32k dlls, some renaming, etc. - Delete old apitest stuff svn path=/trunk/; revision=70458
31 lines
1.1 KiB
C
31 lines
1.1 KiB
C
/*
|
|
* PROJECT: ReactOS api tests
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* PURPOSE: Test for NtUserProcessConnect
|
|
* PROGRAMMERS:
|
|
*/
|
|
|
|
#include <win32nt.h>
|
|
|
|
START_TEST(NtUserProcessConnect)
|
|
{
|
|
HANDLE hProcess;
|
|
NTSTATUS Status;
|
|
USERCONNECT UserConnect = {0};
|
|
|
|
hProcess = GetCurrentProcess();
|
|
|
|
UserConnect.ulVersion = MAKELONG(0, 5);
|
|
Status = NtUserProcessConnect(hProcess, (USERCONNECT*)&UserConnect, sizeof(USERCONNECT));
|
|
TEST(NT_SUCCESS(Status));
|
|
|
|
printf("UserConnect.ulVersion = 0x%lx\n", UserConnect.ulVersion);
|
|
printf("UserConnect.ulCurrentVersion = 0x%lx\n", UserConnect.ulCurrentVersion);
|
|
printf("UserConnect.dwDispatchCount = 0x%lx\n", UserConnect.dwDispatchCount);
|
|
printf("UserConnect.siClient.psi = 0x%p\n", UserConnect.siClient.psi);
|
|
printf("UserConnect.siClient.aheList = 0x%p\n", UserConnect.siClient.aheList);
|
|
printf("UserConnect.siClient.pDispInfo = 0x%p\n", UserConnect.siClient.pDispInfo);
|
|
printf("UserConnect.siClient.ulSharedDelta = 0x%lx\n", UserConnect.siClient.ulSharedDelta);
|
|
|
|
}
|