mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:35:43 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
33
modules/rostests/kmtests/hidparse/HidP_user.c
Normal file
33
modules/rostests/kmtests/hidparse/HidP_user.c
Normal file
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue