Implemented DirectInputCreateEx.

This commit is contained in:
Marcus Meissner 2000-10-13 23:07:29 +00:00 committed by Alexandre Julliard
parent d41e22bf0d
commit 4b3afdcce0
2 changed files with 21 additions and 0 deletions

View File

@ -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

View File

@ -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
*/