implemented partly DxEngGetDesktopDC

svn path=/trunk/; revision=33254
This commit is contained in:
Magnus Olsen 2008-05-03 10:23:14 +00:00
parent f343627af2
commit e54790f042
2 changed files with 17 additions and 5 deletions

View file

@ -103,7 +103,7 @@ DWORD STDCALL DxEngUnreferenceHdev(DWORD x1);
DWORD STDCALL DxEngSpTearDownSprites(DWORD x1, DWORD x2, DWORD x3);
DWORD STDCALL DxEngSpUnTearDownSprites(DWORD x1, DWORD x2, DWORD x3);
DWORD STDCALL DxEngSpSpritesVisible(DWORD x1);
DWORD STDCALL DxEngGetDesktopDC(DWORD x1, DWORD x2, DWORD x3);
HDC STDCALL DxEngGetDesktopDC(BOOLEAN CreateDesktopDc, DWORD x2, DWORD x3);
DWORD STDCALL DxEngDeleteDC(DWORD x1, DWORD x2);
DWORD STDCALL DxEngSetDCState(DWORD x1, DWORD x2, DWORD x3);
DWORD STDCALL DxEngSelectBitmap(DWORD x1, DWORD x2);

View file

@ -703,12 +703,24 @@ DxEngUnreferenceHdev(DWORD x1)
/************************************************************************/
/* DxEngGetDesktopDC */
/************************************************************************/
DWORD
HDC
STDCALL
DxEngGetDesktopDC(DWORD x1, DWORD x2, DWORD x3)
DxEngGetDesktopDC(BOOLEAN CreateDesktopDc, DWORD x2, DWORD x3)
{
UNIMPLEMENTED;
return FALSE;
PWINDOW_OBJECT DesktopObject = 0;
HDC DesktopHDC = 0;
if (CreateDesktopDc == FALSE)
{
DesktopObject = UserGetDesktopWindow();
DesktopHDC = (HDC)UserGetWindowDC(DesktopObject);
}
else
{
UNIMPLEMENTED;
}
return DesktopHDC;
}
/************************************************************************/