mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 18:02:55 +00:00
33 lines
829 B
C
33 lines
829 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);
|
|
|
|
KmtLoadDriver(L"HidP", FALSE);
|
|
KmtOpenDriver();
|
|
|
|
Error = KmtSendToDriver(IOCTL_TEST_DESCRIPTION);
|
|
ok(Error == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %lx\n", Error);
|
|
|
|
KmtCloseDriver();
|
|
KmtUnloadDriver();
|
|
} |