lite more code.

nothing works yet. 
add some check see if the parama are right. 

svn path=/trunk/; revision=14191
This commit is contained in:
Magnus Olsen 2005-03-19 10:22:52 +00:00
parent e24c42bb6b
commit 229fed0315

View file

@ -16,11 +16,15 @@
HRESULT WINAPI DirectDrawCreate(LPGUID lpGUID, LPVOID* lplpDD, LPUNKNOWN pUnkOuter)
{
if (pUnkOuter==NULL) return DDERR_INVALIDPARAMS;
return DDRAW_Create(lpGUID, (LPVOID*) lplpDD, pUnkOuter, &IID_IDirectDraw, FALSE);
}
HRESULT WINAPI DirectDrawCreateEx(LPGUID lpGUID, LPVOID* lplpDD, REFIID iid, LPUNKNOWN pUnkOuter)
{
if (pUnkOuter==NULL) return DDERR_INVALIDPARAMS;
if (!IsEqualGUID(iid, &IID_IDirectDraw7)) return DDERR_INVALIDPARAMS;
return DDRAW_Create(lpGUID, lplpDD, pUnkOuter, iid, TRUE);
}
@ -81,14 +85,14 @@ HRESULT DDRAW_Create(
now we will assume it is the current display driver
*/
if (pUnkOuter != NULL) return DDERR_INVALIDPARAMS;
/*
desktop = GetWindowDC(GetDesktopWindow());
lplpDD = OsThunkDdCreateDirectDrawObject(desktop);
if (lplpDD == NULL) return DDERR_NODIRECTDRAWHW;
*/
return DD_OK;
return DDERR_NODIRECTDRAWHW;
}
BOOL WINAPI DllMain(HINSTANCE hInstance,DWORD fwdReason, LPVOID lpvReserved)