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
4b3afdcc
Commit
4b3afdcc
authored
Oct 13, 2000
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 13, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented DirectInputCreateEx.
parent
d41e22bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
dinput.spec
dlls/dinput/dinput.spec
+1
-0
dinput_main.c
dlls/dinput/dinput_main.c
+20
-0
No files found.
dlls/dinput/dinput.spec
View file @
4b3afdcc
...
...
@@ -6,6 +6,7 @@ import kernel32.dll
@ stdcall DirectInputCreateA(long long ptr ptr) DirectInputCreateA
@ stub DirectInputCreateW
@ stdcall DirectInputCreateEx(long long ptr ptr ptr) DirectInputCreateEx
@ stdcall DllCanUnloadNow() DINPUT_DllCanUnloadNow
@ stdcall DllGetClassObject(ptr ptr ptr) DINPUT_DllGetClassObject
@ stdcall DllRegisterServer() DINPUT_DllRegisterServer
...
...
dlls/dinput/dinput_main.c
View file @
4b3afdcc
...
...
@@ -479,6 +479,26 @@ static DataFormat *create_DataFormat(DIDATAFORMAT *wine_format, LPCDIDATAFORMAT
}
/******************************************************************************
* DirectInputCreateEx
*/
HRESULT
WINAPI
DirectInputCreateEx
(
HINSTANCE
hinst
,
DWORD
dwVersion
,
REFIID
riid
,
LPVOID
*
ppDI
,
LPUNKNOWN
punkOuter
)
{
IDirectInputAImpl
*
This
;
HRESULT
res
;
TRACE
(
"(0x%08lx,%04lx,%s,%p,%p)
\n
"
,
(
DWORD
)
hinst
,
dwVersion
,
debugstr_guid
(
riid
),
ppDI
,
punkOuter
);
This
=
(
IDirectInputAImpl
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
IDirectInputAImpl
));
This
->
ref
=
1
;
ICOM_VTBL
(
This
)
=
&
ddiavt
;
res
=
IDirectInputA_QueryInterface
(
This
,
riid
,
ppDI
);
IDirectInputA_Release
(
This
);
/* throw one reference away */
return
res
;
}
/******************************************************************************
* DirectInputCreateA
*/
HRESULT
WINAPI
DirectInputCreateA
(
HINSTANCE
hinst
,
DWORD
dwVersion
,
LPDIRECTINPUTA
*
ppDI
,
LPUNKNOWN
punkOuter
)
...
...
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