Implemented DirectInputCreateEx.
This commit is contained in:
parent
d41e22bf0d
commit
4b3afdcce0
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue