Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
fbd3525e
Commit
fbd3525e
authored
Jan 25, 2017
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hid: Implement HidD_GetNumInputBuffers.
Signed-off-by:
Aric Stewart
<
aric@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5262696e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
hid.spec
dlls/hid/hid.spec
+1
-1
hidd.c
dlls/hid/hidd.c
+6
-0
hidsdi.h
include/ddk/hidsdi.h
+1
-0
No files found.
dlls/hid/hid.spec
View file @
fbd3525e
...
...
@@ -8,7 +8,7 @@
@ stdcall HidD_GetInputReport(long ptr long)
@ stdcall HidD_GetManufacturerString(long ptr long)
@ stub HidD_GetMsGenreDescriptor
@ st
ub HidD_GetNumInputBuffers
@ st
dcall HidD_GetNumInputBuffers(long ptr)
@ stub HidD_GetPhysicalDescriptor
@ stdcall HidD_GetPreparsedData(ptr ptr)
@ stdcall HidD_GetProductString(long ptr long)
...
...
dlls/hid/hidd.c
View file @
fbd3525e
...
...
@@ -87,6 +87,12 @@ BOOLEAN WINAPI HidD_GetManufacturerString(HANDLE HidDeviceObject, PVOID Buffer,
return
DeviceIoControl
(
HidDeviceObject
,
IOCTL_HID_GET_MANUFACTURER_STRING
,
NULL
,
0
,
Buffer
,
BufferLength
,
NULL
,
NULL
);
}
BOOLEAN
WINAPI
HidD_GetNumInputBuffers
(
HANDLE
HidDeviceObject
,
ULONG
*
NumberBuffers
)
{
TRACE
(
"(%p %p)
\n
"
,
HidDeviceObject
,
NumberBuffers
);
return
DeviceIoControl
(
HidDeviceObject
,
IOCTL_GET_NUM_DEVICE_INPUT_BUFFERS
,
NULL
,
0
,
NumberBuffers
,
sizeof
(
*
NumberBuffers
),
NULL
,
NULL
);
}
BOOLEAN
WINAPI
HidD_SetFeature
(
HANDLE
HidDeviceObject
,
PVOID
ReportBuffer
,
ULONG
ReportBufferLength
)
{
TRACE
(
"(%p %p %u)
\n
"
,
HidDeviceObject
,
ReportBuffer
,
ReportBufferLength
);
...
...
include/ddk/hidsdi.h
View file @
fbd3525e
...
...
@@ -38,6 +38,7 @@ BOOLEAN WINAPI HidD_GetFeature(HANDLE HidDeviceObject, PVOID ReportBuffer, ULONG
void
WINAPI
HidD_GetHidGuid
(
LPGUID
guid
);
BOOLEAN
WINAPI
HidD_GetInputReport
(
HANDLE
HidDeviceObject
,
PVOID
ReportBuffer
,
ULONG
ReportBufferLength
);
BOOLEAN
WINAPI
HidD_GetManufacturerString
(
HANDLE
HidDeviceObject
,
PVOID
Buffer
,
ULONG
BufferLength
);
BOOLEAN
WINAPI
HidD_GetNumInputBuffers
(
HANDLE
HidDeviceObject
,
ULONG
*
NumberBuffers
);
BOOLEAN
WINAPI
HidD_GetProductString
(
HANDLE
HidDeviceObject
,
PVOID
Buffer
,
ULONG
BufferLength
);
BOOLEAN
WINAPI
HidD_GetSerialNumberString
(
HANDLE
HidDeviceObject
,
PVOID
Buffer
,
ULONG
BufferLength
);
BOOLEAN
WINAPI
HidD_SetFeature
(
HANDLE
HidDeviceObject
,
PVOID
ReportBuffer
,
ULONG
ReportBufferLength
);
...
...
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