From 71e5fdf478dbfb1821d4c39a55c3555cc8188741 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Mon, 6 Jul 2015 13:07:47 -0500 Subject: [PATCH] include: Add ddk/hidport.h. --- include/Makefile.in | 1 + include/ddk/hidport.h | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 include/ddk/hidport.h diff --git a/include/Makefile.in b/include/Makefile.in index 795642d0e16..54f0ae1b916 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -254,6 +254,7 @@ SRCDIR_INCLUDES = \ ddk/csq.h \ ddk/hidclass.h \ ddk/hidpi.h \ + ddk/hidport.h \ ddk/hidsdi.h \ ddk/imm.h \ ddk/mountmgr.h \ diff --git a/include/ddk/hidport.h b/include/ddk/hidport.h new file mode 100644 index 00000000000..9af8c7e1a3d --- /dev/null +++ b/include/ddk/hidport.h @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2015 Aric Stewart + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef __HIDPORT_H__ +#define __HIDPORT_H__ + +#include + +typedef struct _HID_MINIDRIVER_REGISTRATION +{ + ULONG Revision; + PDRIVER_OBJECT DriverObject; + PUNICODE_STRING RegistryPath; + ULONG DeviceExtensionSize; + BOOLEAN DevicesArePolled; + UCHAR Reserved[3]; +} HID_MINIDRIVER_REGISTRATION, *PHID_MINIDRIVER_REGISTRATION; + +NTSTATUS WINAPI HidRegisterMinidriver(PHID_MINIDRIVER_REGISTRATION MinidriverRegistration); + +#endif /* __HIDPORT_H__ */