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
fa8eeddd
Commit
fa8eeddd
authored
Apr 05, 2016
by
Aric Stewart
Committed by
Alexandre Julliard
Apr 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hid: Implement HidD_SetNumInputBuffers.
Signed-off-by:
Aric Stewart
<
aric@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
115ad2da
Hide 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 @
fa8eeddd
...
...
@@ -16,7 +16,7 @@
@ stub HidD_Hello
@ stub HidD_SetConfiguration
@ stdcall HidD_SetFeature(long ptr long)
@ st
ub HidD_SetNumInputBuffers
@ st
dcall HidD_SetNumInputBuffers(long long)
@ stub HidD_SetOutputReport
@ stdcall HidP_GetButtonCaps(long ptr ptr ptr)
@ stdcall HidP_GetCaps(ptr ptr)
...
...
dlls/hid/hidd.c
View file @
fa8eeddd
...
...
@@ -93,6 +93,12 @@ BOOLEAN WINAPI HidD_SetFeature(HANDLE HidDeviceObject, PVOID ReportBuffer, ULONG
return
DeviceIoControl
(
HidDeviceObject
,
IOCTL_HID_SET_FEATURE
,
ReportBuffer
,
ReportBufferLength
,
NULL
,
0
,
NULL
,
NULL
);
}
BOOLEAN
WINAPI
HidD_SetNumInputBuffers
(
HANDLE
HidDeviceObject
,
ULONG
NumberBuffers
)
{
TRACE
(
"(%p %i)
\n
"
,
HidDeviceObject
,
NumberBuffers
);
return
DeviceIoControl
(
HidDeviceObject
,
IOCTL_SET_NUM_DEVICE_INPUT_BUFFERS
,
UlongToPtr
(
NumberBuffers
),
sizeof
(
NumberBuffers
),
NULL
,
0
,
NULL
,
NULL
);
}
BOOLEAN
WINAPI
HidD_GetProductString
(
HANDLE
HidDeviceObject
,
PVOID
Buffer
,
ULONG
BufferLength
)
{
TRACE
(
"(%p %p %u)
\n
"
,
HidDeviceObject
,
Buffer
,
BufferLength
);
...
...
include/ddk/hidsdi.h
View file @
fa8eeddd
...
...
@@ -41,6 +41,7 @@ BOOLEAN WINAPI HidD_GetManufacturerString(HANDLE HidDeviceObject, PVOID Buffer,
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
);
BOOLEAN
WINAPI
HidD_SetNumInputBuffers
(
HANDLE
HidDeviceObject
,
ULONG
NumberBuffers
);
BOOLEAN
WINAPI
HidD_GetPreparsedData
(
HANDLE
HidDeviceObject
,
PHIDP_PREPARSED_DATA
*
PreparsedData
);
BOOLEAN
WINAPI
HidD_FreePreparsedData
(
PHIDP_PREPARSED_DATA
PreparsedData
);
BOOLEAN
WINAPI
HidD_GetAttributes
(
HANDLE
HidDeviceObject
,
PHIDD_ATTRIBUTES
Attr
);
...
...
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