Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
270790a9
Commit
270790a9
authored
Jul 06, 2015
by
Aric Stewart
Committed by
Alexandre Julliard
Jul 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hidclass.sys: Add hidclass.sys.
parent
7e1c886f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
120 additions
and
0 deletions
+120
-0
configure
configure
+2
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/hidclass.sys/Makefile.in
+7
-0
hid.h
dlls/hidclass.sys/hid.h
+35
-0
hidclass.sys.spec
dlls/hidclass.sys/hidclass.sys.spec
+1
-0
main.c
dlls/hidclass.sys/main.c
+74
-0
No files found.
configure
View file @
270790a9
...
@@ -1078,6 +1078,7 @@ enable_gpkcsp
...
@@ -1078,6 +1078,7 @@ enable_gpkcsp
enable_hal
enable_hal
enable_hhctrl_ocx
enable_hhctrl_ocx
enable_hid
enable_hid
enable_hidclass_sys
enable_hlink
enable_hlink
enable_hnetcfg
enable_hnetcfg
enable_httpapi
enable_httpapi
...
@@ -17289,6 +17290,7 @@ wine_fn_config_dll gpkcsp enable_gpkcsp
...
@@ -17289,6 +17290,7 @@ wine_fn_config_dll gpkcsp enable_gpkcsp
wine_fn_config_dll hal enable_hal
wine_fn_config_dll hal enable_hal
wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx clean,implib,po htmlhelp
wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx clean,implib,po htmlhelp
wine_fn_config_dll hid enable_hid implib
wine_fn_config_dll hid enable_hid implib
wine_fn_config_dll hidclass.sys enable_hidclass_sys implib hidclass
wine_fn_config_dll hlink enable_hlink clean,implib
wine_fn_config_dll hlink enable_hlink clean,implib
wine_fn_config_test dlls/hlink/tests hlink_test
wine_fn_config_test dlls/hlink/tests hlink_test
wine_fn_config_dll hnetcfg enable_hnetcfg clean
wine_fn_config_dll hnetcfg enable_hnetcfg clean
...
...
configure.ac
View file @
270790a9
...
@@ -2987,6 +2987,7 @@ WINE_CONFIG_DLL(gpkcsp)
...
@@ -2987,6 +2987,7 @@ WINE_CONFIG_DLL(gpkcsp)
WINE_CONFIG_DLL(hal)
WINE_CONFIG_DLL(hal)
WINE_CONFIG_DLL(hhctrl.ocx,,[clean,implib,po],[htmlhelp])
WINE_CONFIG_DLL(hhctrl.ocx,,[clean,implib,po],[htmlhelp])
WINE_CONFIG_DLL(hid,,[implib])
WINE_CONFIG_DLL(hid,,[implib])
WINE_CONFIG_DLL(hidclass.sys,,[implib],[hidclass])
WINE_CONFIG_DLL(hlink,,[clean,implib])
WINE_CONFIG_DLL(hlink,,[clean,implib])
WINE_CONFIG_TEST(dlls/hlink/tests)
WINE_CONFIG_TEST(dlls/hlink/tests)
WINE_CONFIG_DLL(hnetcfg,,[clean])
WINE_CONFIG_DLL(hnetcfg,,[clean])
...
...
dlls/hidclass.sys/Makefile.in
0 → 100644
View file @
270790a9
MODULE
=
hidclass.sys
IMPORTLIB
=
hidclass
IMPORTS
=
ntoskrnl.exe
DELAYIMPORTS
=
setupapi hid
C_SRCS
=
\
main.c
dlls/hidclass.sys/hid.h
0 → 100644
View file @
270790a9
/*
* Copyright 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
*/
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windef.h"
#include "winbase.h"
#include "winternl.h"
#include "ddk/wdm.h"
#include "ddk/hidport.h"
#include "wine/list.h"
typedef
struct
_minidriver
{
struct
list
entry
;
HID_MINIDRIVER_REGISTRATION
minidriver
;
PDRIVER_UNLOAD
DriverUnload
;
}
minidriver
;
dlls/hidclass.sys/hidclass.sys.spec
0 → 100644
View file @
270790a9
@ stdcall HidRegisterMinidriver(ptr)
dlls/hidclass.sys/main.c
0 → 100644
View file @
270790a9
/*
* WINE Hid device services
*
* Copyright 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
*/
#define NONAMELESSUNION
#include <unistd.h>
#include <stdarg.h>
#include "hid.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "wine/list.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
hid
);
static
struct
list
minidriver_list
=
LIST_INIT
(
minidriver_list
);
static
minidriver
*
find_minidriver
(
DRIVER_OBJECT
*
driver
)
{
minidriver
*
md
;
LIST_FOR_EACH_ENTRY
(
md
,
&
minidriver_list
,
minidriver
,
entry
)
{
if
(
md
->
minidriver
.
DriverObject
==
driver
)
return
md
;
}
return
NULL
;
}
static
VOID
WINAPI
UnloadDriver
(
DRIVER_OBJECT
*
driver
)
{
minidriver
*
md
;
TRACE
(
"Driver Unload
\n
"
);
md
=
find_minidriver
(
driver
);
if
(
md
)
{
if
(
md
->
DriverUnload
)
md
->
DriverUnload
(
md
->
minidriver
.
DriverObject
);
list_remove
(
&
md
->
entry
);
HeapFree
(
GetProcessHeap
(),
0
,
md
);
}
}
NTSTATUS
WINAPI
HidRegisterMinidriver
(
HID_MINIDRIVER_REGISTRATION
*
registration
)
{
minidriver
*
driver
;
driver
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
driver
));
if
(
!
driver
)
return
STATUS_NO_MEMORY
;
driver
->
DriverUnload
=
registration
->
DriverObject
->
DriverUnload
;
registration
->
DriverObject
->
DriverUnload
=
UnloadDriver
;
driver
->
minidriver
=
*
registration
;
list_add_tail
(
&
minidriver_list
,
&
driver
->
entry
);
return
STATUS_SUCCESS
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment