mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
35 lines
892 B
C
35 lines
892 B
C
/*
|
|
* PROJECT: ReactOS kernel-mode tests
|
|
* LICENSE: LGPLv2.1+ - See COPYING.LIB in the top level directory
|
|
* PURPOSE: Kernel-Mode Test Suite Driver Object test user-mode part
|
|
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
|
|
*/
|
|
|
|
#include <kmt_test.h>
|
|
#include "HidP.h"
|
|
|
|
DWORD
|
|
KmtStartService(
|
|
IN PCWSTR ServiceName OPTIONAL,
|
|
IN OUT SC_HANDLE *ServiceHandle);
|
|
|
|
START_TEST(HidPDescription)
|
|
{
|
|
SC_HANDLE ServiceHandle;
|
|
DWORD Error;
|
|
|
|
ServiceHandle = NULL;
|
|
KmtStartService(L"hidusb", &ServiceHandle);
|
|
CloseServiceHandle(ServiceHandle);
|
|
|
|
Error = KmtLoadAndOpenDriver(L"HidP", FALSE);
|
|
ok_eq_int(Error, ERROR_SUCCESS);
|
|
if (Error)
|
|
return;
|
|
|
|
Error = KmtSendToDriver(IOCTL_TEST_DESCRIPTION);
|
|
ok(Error == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %lx\n", Error);
|
|
|
|
KmtCloseDriver();
|
|
KmtUnloadDriver();
|
|
}
|