mirror of
https://github.com/reactos/reactos.git
synced 2024-11-09 16:20:37 +00:00
4a3e577b8f
svn path=/trunk/; revision=38044
24 lines
944 B
C
24 lines
944 B
C
|
|
INT
|
|
Test_NtUserProcessConnect(PTESTINFO pti)
|
|
{
|
|
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);
|
|
|
|
return APISTATUS_NORMAL;
|
|
}
|