reactos/rostests/kmtests/hidparse/HidP_drv.c
Thomas Faber 82284116fa [KMTESTS]
- Add test for hidparse's descriptor parsing
CORE-11538

svn path=/trunk/; revision=75017
2017-06-13 05:48:28 +00:00

41 lines
846 B
C

/*
* PROJECT: ReactOS kernel-mode tests
* LICENSE: LGPLv2.1+ - See COPYING.LIB in the top level directory
* PURPOSE: Test driver for HidParser functionality
* PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
#include <kmt_test.h>
#define NDEBUG
#include <debug.h>
#include "HidP.h"
KMT_MESSAGE_HANDLER TestHidPDescription;
NTSTATUS
TestEntry(
_In_ PDRIVER_OBJECT DriverObject,
_In_ PCUNICODE_STRING RegistryPath,
_Out_ PCWSTR *DeviceName,
_Inout_ INT *Flags)
{
UNREFERENCED_PARAMETER(RegistryPath);
PAGED_CODE();
*DeviceName = L"HidP";
*Flags = TESTENTRY_NO_EXCLUSIVE_DEVICE;
KmtRegisterMessageHandler(IOCTL_TEST_DESCRIPTION, NULL, TestHidPDescription);
return STATUS_SUCCESS;
}
VOID
TestUnload(
_In_ PDRIVER_OBJECT DriverObject)
{
PAGED_CODE();
}