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
674080da
Commit
674080da
authored
Jun 30, 2015
by
Aric Stewart
Committed by
Alexandre Julliard
Jul 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hid: Implement HidD_GetAttributes.
parent
eac15cae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
+28
-2
hid.spec
dlls/hid/hid.spec
+1
-1
hidd.c
dlls/hid/hidd.c
+19
-1
hidsdi.h
include/ddk/hidsdi.h
+8
-0
No files found.
dlls/hid/hid.spec
View file @
674080da
@ stub HidD_FlushQueue
@ stub HidD_FlushQueue
@ stdcall HidD_FreePreparsedData(ptr)
@ stdcall HidD_FreePreparsedData(ptr)
@ st
ub HidD_GetAttributes
@ st
dcall HidD_GetAttributes(long ptr)
@ stub HidD_GetConfiguration
@ stub HidD_GetConfiguration
@ stdcall HidD_GetFeature(long ptr long)
@ stdcall HidD_GetFeature(long ptr long)
@ stdcall HidD_GetHidGuid(ptr)
@ stdcall HidD_GetHidGuid(ptr)
...
...
dlls/hid/hidd.c
View file @
674080da
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#include "hidusage.h"
#include "hidusage.h"
#include "ddk/hidclass.h"
#include "ddk/hidclass.h"
#include "ddk/hid
p
i.h"
#include "ddk/hid
sd
i.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
hid
);
WINE_DEFAULT_DEBUG_CHANNEL
(
hid
);
...
@@ -45,6 +45,24 @@ BOOLEAN WINAPI HidD_FreePreparsedData(PHIDP_PREPARSED_DATA PreparsedData)
...
@@ -45,6 +45,24 @@ BOOLEAN WINAPI HidD_FreePreparsedData(PHIDP_PREPARSED_DATA PreparsedData)
return
TRUE
;
return
TRUE
;
}
}
BOOLEAN
WINAPI
HidD_GetAttributes
(
HANDLE
HidDeviceObject
,
PHIDD_ATTRIBUTES
Attr
)
{
HID_COLLECTION_INFORMATION
info
;
BOOLEAN
ret
;
TRACE
(
"(%p %p)
\n
"
,
HidDeviceObject
,
Attr
);
ret
=
DeviceIoControl
(
HidDeviceObject
,
IOCTL_HID_GET_COLLECTION_INFORMATION
,
NULL
,
0
,
&
info
,
sizeof
(
HID_COLLECTION_INFORMATION
),
NULL
,
NULL
);
if
(
ret
)
{
Attr
->
VendorID
=
info
.
VendorID
;
Attr
->
ProductID
=
info
.
ProductID
;
Attr
->
VersionNumber
=
info
.
VersionNumber
;
}
return
ret
;
}
BOOLEAN
WINAPI
HidD_GetFeature
(
HANDLE
HidDeviceObject
,
PVOID
ReportBuffer
,
ULONG
ReportBufferLength
)
BOOLEAN
WINAPI
HidD_GetFeature
(
HANDLE
HidDeviceObject
,
PVOID
ReportBuffer
,
ULONG
ReportBufferLength
)
{
{
TRACE
(
"(%p %p %u)
\n
"
,
HidDeviceObject
,
ReportBuffer
,
ReportBufferLength
);
TRACE
(
"(%p %p %u)
\n
"
,
HidDeviceObject
,
ReportBuffer
,
ReportBufferLength
);
...
...
include/ddk/hidsdi.h
View file @
674080da
...
@@ -27,6 +27,13 @@
...
@@ -27,6 +27,13 @@
typedef
LONG
NTSTATUS
;
typedef
LONG
NTSTATUS
;
#endif
#endif
typedef
struct
_HIDD_ATTRIBUTES
{
ULONG
Size
;
USHORT
VendorID
;
USHORT
ProductID
;
USHORT
VersionNumber
;
}
HIDD_ATTRIBUTES
,
*
PHIDD_ATTRIBUTES
;
BOOLEAN
WINAPI
HidD_GetFeature
(
HANDLE
HidDeviceObject
,
PVOID
ReportBuffer
,
ULONG
ReportBufferLength
);
BOOLEAN
WINAPI
HidD_GetFeature
(
HANDLE
HidDeviceObject
,
PVOID
ReportBuffer
,
ULONG
ReportBufferLength
);
void
WINAPI
HidD_GetHidGuid
(
LPGUID
guid
);
void
WINAPI
HidD_GetHidGuid
(
LPGUID
guid
);
BOOLEAN
WINAPI
HidD_GetInputReport
(
HANDLE
HidDeviceObject
,
PVOID
ReportBuffer
,
ULONG
ReportBufferLength
);
BOOLEAN
WINAPI
HidD_GetInputReport
(
HANDLE
HidDeviceObject
,
PVOID
ReportBuffer
,
ULONG
ReportBufferLength
);
...
@@ -35,5 +42,6 @@ BOOLEAN WINAPI HidD_GetProductString(HANDLE HidDeviceObject, PVOID Buffer, ULONG
...
@@ -35,5 +42,6 @@ BOOLEAN WINAPI HidD_GetProductString(HANDLE HidDeviceObject, PVOID Buffer, ULONG
BOOLEAN
WINAPI
HidD_SetFeature
(
HANDLE
HidDeviceObject
,
PVOID
ReportBuffer
,
ULONG
ReportBufferLength
);
BOOLEAN
WINAPI
HidD_SetFeature
(
HANDLE
HidDeviceObject
,
PVOID
ReportBuffer
,
ULONG
ReportBufferLength
);
BOOLEAN
WINAPI
HidD_GetPreparsedData
(
HANDLE
HidDeviceObject
,
PHIDP_PREPARSED_DATA
*
PreparsedData
);
BOOLEAN
WINAPI
HidD_GetPreparsedData
(
HANDLE
HidDeviceObject
,
PHIDP_PREPARSED_DATA
*
PreparsedData
);
BOOLEAN
WINAPI
HidD_FreePreparsedData
(
PHIDP_PREPARSED_DATA
PreparsedData
);
BOOLEAN
WINAPI
HidD_FreePreparsedData
(
PHIDP_PREPARSED_DATA
PreparsedData
);
BOOLEAN
WINAPI
HidD_GetAttributes
(
HANDLE
HidDeviceObject
,
PHIDD_ATTRIBUTES
Attr
);
#endif
/* __WINE_HIDSDI_H */
#endif
/* __WINE_HIDSDI_H */
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