Skip to content
Snippets Groups Projects
Commit 4b3afdcc authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard
Browse files

Implemented DirectInputCreateEx.

parent d41e22bf
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -478,6 +478,26 @@ static DataFormat *create_DataFormat(DIDATAFORMAT *wine_format, LPCDIDATAFORMAT
return ret;
}
/******************************************************************************
* 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
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment