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
a89aa776
Commit
a89aa776
authored
Oct 08, 2015
by
Aric Stewart
Committed by
Alexandre Julliard
Oct 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hidclass.sys: Stub to handle IRP_MJ_WRITE on HID devices.
Signed-off-by:
Aric Stewart
<
aric@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
35938ed8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
device.c
dlls/hidclass.sys/device.c
+15
-0
hid.h
dlls/hidclass.sys/hid.h
+1
-0
main.c
dlls/hidclass.sys/main.c
+1
-0
No files found.
dlls/hidclass.sys/device.c
View file @
a89aa776
...
...
@@ -571,6 +571,21 @@ NTSTATUS WINAPI HID_Device_read(DEVICE_OBJECT *device, IRP *irp)
return
rc
;
}
NTSTATUS
WINAPI
HID_Device_write
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
)
{
IO_STACK_LOCATION
*
irpsp
=
IoGetCurrentIrpStackLocation
(
irp
);
irp
->
IoStatus
.
Information
=
0
;
TRACE
(
"Buffer length %i
\n
"
,
irpsp
->
Parameters
.
Write
.
Length
);
FIXME
(
"device %p
\n
"
,
device
);
irp
->
IoStatus
.
u
.
Status
=
STATUS_SUCCESS
;
IoCompleteRequest
(
irp
,
IO_NO_INCREMENT
);
return
STATUS_SUCCESS
;
}
NTSTATUS
WINAPI
HID_Device_create
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
)
{
BASE_DEVICE_EXTENSION
*
ext
=
device
->
DeviceExtension
;
...
...
dlls/hidclass.sys/hid.h
View file @
a89aa776
...
...
@@ -86,6 +86,7 @@ void HID_StartDeviceThread(DEVICE_OBJECT *device) DECLSPEC_HIDDEN;
NTSTATUS
WINAPI
HID_Device_ioctl
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
)
DECLSPEC_HIDDEN
;
NTSTATUS
WINAPI
HID_Device_read
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
)
DECLSPEC_HIDDEN
;
NTSTATUS
WINAPI
HID_Device_write
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
)
DECLSPEC_HIDDEN
;
NTSTATUS
WINAPI
HID_Device_create
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
)
DECLSPEC_HIDDEN
;
NTSTATUS
WINAPI
HID_Device_close
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
)
DECLSPEC_HIDDEN
;
...
...
dlls/hidclass.sys/main.c
View file @
a89aa776
...
...
@@ -70,6 +70,7 @@ NTSTATUS WINAPI HidRegisterMinidriver(HID_MINIDRIVER_REGISTRATION *registration)
registration
->
DriverObject
->
MajorFunction
[
IRP_MJ_DEVICE_CONTROL
]
=
HID_Device_ioctl
;
registration
->
DriverObject
->
MajorFunction
[
IRP_MJ_READ
]
=
HID_Device_read
;
registration
->
DriverObject
->
MajorFunction
[
IRP_MJ_WRITE
]
=
HID_Device_write
;
registration
->
DriverObject
->
MajorFunction
[
IRP_MJ_CREATE
]
=
HID_Device_create
;
registration
->
DriverObject
->
MajorFunction
[
IRP_MJ_CLOSE
]
=
HID_Device_close
;
...
...
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