mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
47a084303a
To be extended.
31 lines
836 B
C
31 lines
836 B
C
/*
|
|
* PROJECT: ReactOS kernel-mode tests
|
|
* LICENSE: GPLv2+ - See COPYING in the top level directory
|
|
* PURPOSE: Kernel-Mode Test Suite CcMapData test user-mode part
|
|
* PROGRAMMER: Pierre Schweitzer <pierre@reactos.org>
|
|
*/
|
|
|
|
#include <kmt_test.h>
|
|
|
|
#define IOCTL_START_TEST 1
|
|
#define IOCTL_FINISH_TEST 2
|
|
|
|
START_TEST(CcMapData)
|
|
{
|
|
DWORD Ret;
|
|
ULONG TestId;
|
|
|
|
KmtLoadDriver(L"CcMapData", FALSE);
|
|
KmtOpenDriver();
|
|
|
|
for (TestId = 0; TestId < 3; ++TestId)
|
|
{
|
|
Ret = KmtSendUlongToDriver(IOCTL_START_TEST, TestId);
|
|
ok(Ret == ERROR_SUCCESS, "KmtSendUlongToDriver failed: %lx\n", Ret);
|
|
Ret = KmtSendUlongToDriver(IOCTL_FINISH_TEST, TestId);
|
|
ok(Ret == ERROR_SUCCESS, "KmtSendUlongToDriver failed: %lx\n", Ret);
|
|
}
|
|
|
|
KmtCloseDriver();
|
|
KmtUnloadDriver();
|
|
}
|