1 /* 2 * PROJECT: ReactOS kernel-mode tests 3 * LICENSE: LGPLv2.1+ - See COPYING.LIB in the top level directory 4 * PURPOSE: Kernel-Mode Test Suite Driver Object test user-mode part 5 * PROGRAMMER: Thomas Faber <thomas.faber@reactos.org> 6 */ 7 8 #include <kmt_test.h> 9 #include "HidP.h" 10 11 DWORD 12 KmtStartService( 13 IN PCWSTR ServiceName OPTIONAL, 14 IN OUT SC_HANDLE *ServiceHandle); 15 16 START_TEST(HidPDescription) 17 { 18 SC_HANDLE ServiceHandle; 19 DWORD Error; 20 21 ServiceHandle = NULL; 22 KmtStartService(L"hidusb", &ServiceHandle); 23 CloseServiceHandle(ServiceHandle); 24 25 KmtLoadDriver(L"HidP", FALSE); 26 KmtOpenDriver(); 27 28 Error = KmtSendToDriver(IOCTL_TEST_DESCRIPTION); 29 ok(Error == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %lx\n", Error); 30 31 KmtCloseDriver(); 32 KmtUnloadDriver(); 33 }