Author: greatlrd
Date: Sun Oct 21 22:28:31 2007
New Revision: 29746
URL:
http://svn.reactos.org/svn/reactos?rev=29746&view=rev
Log:
add stub for all dxeng so the dxg.sys does not crash, but we see where the problem are.
now we can start play with dxg.sys in ReactX
Modified:
branches/reactx/reactos/include/reactos/drivers/directx/dxeng.h
branches/reactx/reactos/subsystems/win32/win32k/ntddraw/dxeng.c
Modified: branches/reactx/reactos/include/reactos/drivers/directx/dxeng.h
URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/include/reactos/…
==============================================================================
--- branches/reactx/reactos/include/reactos/drivers/directx/dxeng.h (original)
+++ branches/reactx/reactos/include/reactos/drivers/directx/dxeng.h Sun Oct 21 22:28:31
2007
@@ -76,119 +76,45 @@
BOOL DxEngUnlockDC(PDC pDC);
+
/* prototypes are not done yet, I need gather all my notes
* to make them correct
*/
-/*
-DWORD
-DxEngScreenAccessCheck();
-DWORD
-DxEngLockShareSem();
-
-DWORD
-DxEngUnlockShareSem();
-
-DWORD
-DxEngLockHdev(x);
-
-DWORD
-DxEngUnlockHdev(x);
-
-DWORD
-DxEngReferenceHdev(x);
-
-DWORD
-DxEngIsHdevLockedByCurrentThread(x);
-
-DWORD
-DxEngReferenceHdev(x);
-
-DWORD
-DxEngUnreferenceHdev(x);
-
-
-
-DWORD
-DxEngSetDeviceGammaRamp(x,x,x);
-
-DWORD
-DxEngSpTearDownSprites(x,x,x);
-
-DWORD
-DxEngSpUnTearDownSprites(x,x,x);
-
-DWORD
-DxEngSpSpritesVisible(x);
-
-DWORD
-DxEngGetHdevData(x,x);
-
-DWORD
-DxEngSetHdevData(x,x,x);
-
-DWORD
-DxEngCreateMemoryDC(x);
-
-DWORD
-DxEngGetDesktopDC(x,x,x);
-
-DWORD
-DxEngDeleteDC(x,x);
-
-DWORD
-DxEngCleanDC(x);
-
-DWORD
-DxEngSetDCOwner(x,x)
-
-
-
-
-
-DWORD
-DxEngSetDCState(x,x,x);
-
-DWORD
-DxEngGetDCState(x,x);
-
-DWORD
-DxEngSelectBitmap(x,x);
-
-DWORD
-DxEngSetBitmapOwner(x,x);
-
-DWORD
-DxEngDeleteSurface(x);
-
-DWORD
-DxEngGetSurfaceData(x,x);
-
-DWORD
-DxEngAltLockSurface(x);
-
-DWORD
-DxEngUploadPaletteEntryToSurface(x,x,x,x);
-
-DWORD
-DxEngMarkSurfaceAsDirectDraw(x,x);
-
-DWORD
-DxEngSelectPaletteToSurface(x,x)
-
-DWORD
-DxEngSyncPaletteTableWithDevice(x,x)
-
-DWORD
-DxEngSetPaletteState(x,x,x)
-
-DWORD
-DxEngGetRedirectionBitmap(x)
-
-DWORD
-DxEngLoadImage(x,x);
-*/
+DWORD DxEngCreateMemoryDC(DWORD x1);
+DWORD DxEngScreenAccessCheck();
+DWORD DxEngLockShareSem();
+DWORD DxEngUnlockShareSem();
+DWORD DxEngLockHdev(DWORD x1);
+DWORD DxEngUnlockHdev(DWORD x1);
+DWORD DxEngReferenceHdev(DWORD x1);
+DWORD DxEngIsHdevLockedByCurrentThread(DWORD x1);
+DWORD DxEngUnreferenceHdev(DWORD x1);
+DWORD DxEngSetDeviceGammaRamp(DWORD x1, DWORD x2, DWORD x3);
+DWORD DxEngSpTearDownSprites(DWORD x1, DWORD x2, DWORD x3);
+DWORD DxEngSpUnTearDownSprites(DWORD x1, DWORD x2, DWORD x3);
+DWORD DxEngSpSpritesVisible(DWORD x1);
+DWORD DxEngGetHdevData(DWORD x1, DWORD x2);
+DWORD DxEngSetHdevData(DWORD x1, DWORD x2, DWORD x3);
+DWORD DxEngGetDesktopDC(DWORD x1, DWORD x2, DWORD x3);
+DWORD DxEngDeleteDC(DWORD x1, DWORD x2);
+DWORD DxEngCleanDC(DWORD x1);
+DWORD DxEngSetDCOwner(DWORD x1, DWORD x2);
+DWORD DxEngSetDCState(DWORD x1, DWORD x2, DWORD x3);
+DWORD DxEngGetDCState(DWORD x1, DWORD x2);
+DWORD DxEngSelectBitmap(DWORD x1, DWORD x2);
+DWORD DxEngSetBitmapOwner(DWORD x1, DWORD x2);
+DWORD DxEngDeleteSurface(DWORD x1);
+DWORD DxEngGetSurfaceData(DWORD x1, DWORD x2);
+DWORD DxEngAltLockSurface(DWORD x1);
+DWORD DxEngUploadPaletteEntryToSurface(DWORD x1, DWORD x2,DWORD x3, DWORD x4);
+DWORD DxEngMarkSurfaceAsDirectDraw(DWORD x1, DWORD x2);
+DWORD DxEngSelectPaletteToSurface(DWORD x1, DWORD x2);
+DWORD DxEngSyncPaletteTableWithDevice(DWORD x1, DWORD x2);
+DWORD DxEngSetPaletteState(DWORD x1, DWORD x2, DWORD x3);
+DWORD DxEngGetRedirectionBitmap(DWORD x1);
+DWORD DxEngLoadImage(DWORD x1,DWORD x2);
@@ -199,3 +125,4 @@
+
Modified: branches/reactx/reactos/subsystems/win32/win32k/ntddraw/dxeng.c
URL:
http://svn.reactos.org/svn/reactos/branches/reactx/reactos/subsystems/win32…
==============================================================================
--- branches/reactx/reactos/subsystems/win32/win32k/ntddraw/dxeng.c (original)
+++ branches/reactx/reactos/subsystems/win32/win32k/ntddraw/dxeng.c Sun Oct 21 22:28:31
2007
@@ -11,6 +11,8 @@
#include <w32k.h>
#include <debug.h>
+
+
ULONG gcEngFuncs = DXENG_INDEX_DxEngLoadImage + 1;
DRVFN gaEngFuncs [] =
{
@@ -102,7 +104,7 @@
DxEngNUIsTermSrv()
{
/* FIXME ReactOS does not suport terminal server yet, we can not check if we got a
connections or not */
- DPRINT1("We need termal server connections check");
+ UNIMPLEMENTED;
return FALSE;
}
@@ -115,7 +117,7 @@
DxEngRedrawDesktop()
{
/* FIXME add redraw code */
- DPRINT1("We need add code for redraw whole desktop");
+ UNIMPLEMENTED;
return TRUE;
}
@@ -129,8 +131,8 @@
DxEngDispUniq()
{
/* FIXME DisplayUniqVisrgn from gdishare memory */
- DPRINT1("We need DisplayUniqVisrgn from gdishare memory");
- return 0;
+ UNIMPLEMENTED;
+ return FALSE;
}
/************************************************************************/
@@ -141,8 +143,8 @@
DxEngVisRgnUniq()
{
/* FIXME DisplayUniqVisrgn from gdishare memory */
- DPRINT1("We need VisRgnUniq from win32k");
- return 0;
+ UNIMPLEMENTED;
+ return FALSE;
}
/************************************************************************/
@@ -153,8 +155,8 @@
DxEngEnumerateHdev(HDEV *hdev)
{
/* FIXME Enumate all drivers in win32k */
- DPRINT1("We do not enumate any device from win32k ");
- return 0;
+ UNIMPLEMENTED;
+ return FALSE;
}
/************************************************************************/
@@ -165,7 +167,7 @@
DxEngGetDeviceGammaRamp(HDC hDC, LPVOID lpRamp)
{
/* FIXME redirect it to NtGdiEngGetDeviceGammaRamp internal call */
- DPRINT1("redirect it to NtGdiEngGetDeviceGammaRamp internal call ");
+ UNIMPLEMENTED;
return FALSE;
}
@@ -181,6 +183,7 @@
*
* @return
* This api return PDC or NULL depns if it sussess lock the hdc or not
+*
* @remarks.
* none
*
@@ -188,7 +191,7 @@
PDC
DxEngLockDC(HDC hDC)
{
- return DC_LockDc(hdc);
+ return DC_LockDc(hDC);
}
@@ -203,7 +206,7 @@
*
* @return
* This api always return TRUE if it sussess or not
-
+*
* @remarks.
* none
*
@@ -216,5 +219,302 @@
}
-
-
+/************************************************************************/
+/* DxEngCreateMemoryDC */
+/************************************************************************/
+DWORD DxEngCreateMemoryDC(DWORD x1)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngScreenAccessCheck */
+/************************************************************************/
+DWORD DxEngScreenAccessCheck()
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngLockShareSem */
+/************************************************************************/
+DWORD DxEngLockShareSem()
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngUnlockShareSem */
+/************************************************************************/
+DWORD DxEngUnlockShareSem()
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngLockHdev */
+/************************************************************************/
+DWORD DxEngLockHdev(DWORD x1)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngUnlockHdev */
+/************************************************************************/
+DWORD DxEngUnlockHdev(DWORD x1)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngReferenceHdev */
+/************************************************************************/
+DWORD DxEngReferenceHdev(DWORD x1)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngIsHdevLockedByCurrentThread */
+/************************************************************************/
+DWORD DxEngIsHdevLockedByCurrentThread(DWORD x1)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+
+/************************************************************************/
+/* DxEngUnreferenceHdev */
+/************************************************************************/
+DWORD DxEngUnreferenceHdev(DWORD x1)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSetDeviceGammaRamp */
+/************************************************************************/
+DWORD DxEngSetDeviceGammaRamp(DWORD x1, DWORD x2, DWORD x3)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSpTearDownSprites */
+/************************************************************************/
+DWORD DxEngSpTearDownSprites(DWORD x1, DWORD x2, DWORD x3)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSpUnTearDownSprites */
+/************************************************************************/
+DWORD DxEngSpUnTearDownSprites(DWORD x1, DWORD x2, DWORD x3)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSpSpritesVisible */
+/************************************************************************/
+DWORD DxEngSpSpritesVisible(DWORD x1)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngGetHdevData */
+/************************************************************************/
+DWORD DxEngGetHdevData(DWORD x1, DWORD x2)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSetHdevData */
+/************************************************************************/
+DWORD DxEngSetHdevData(DWORD x1, DWORD x2, DWORD x3)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngGetDesktopDC */
+/************************************************************************/
+DWORD DxEngGetDesktopDC(DWORD x1, DWORD x2, DWORD x3)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngDeleteDC */
+/************************************************************************/
+DWORD DxEngDeleteDC(DWORD x1, DWORD x2)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngCleanDC */
+/************************************************************************/
+DWORD DxEngCleanDC(DWORD x1)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSetDCOwner */
+/************************************************************************/
+DWORD DxEngSetDCOwner(DWORD x1, DWORD x2)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSetDCState */
+/************************************************************************/
+DWORD DxEngSetDCState(DWORD x1, DWORD x2, DWORD x3)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngGetDCState */
+/************************************************************************/
+DWORD DxEngGetDCState(DWORD x1, DWORD x2)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSelectBitmap */
+/************************************************************************/
+DWORD DxEngSelectBitmap(DWORD x1, DWORD x2)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSetBitmapOwner */
+/************************************************************************/
+DWORD DxEngSetBitmapOwner(DWORD x1, DWORD x2)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngDeleteSurface */
+/************************************************************************/
+DWORD DxEngDeleteSurface(DWORD x1)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngGetSurfaceData */
+/************************************************************************/
+DWORD DxEngGetSurfaceData(DWORD x1, DWORD x2)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngAltLockSurface */
+/************************************************************************/
+DWORD DxEngAltLockSurface(DWORD x1)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngUploadPaletteEntryToSurface */
+/************************************************************************/
+DWORD DxEngUploadPaletteEntryToSurface(DWORD x1, DWORD x2,DWORD x3, DWORD x4)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngMarkSurfaceAsDirectDraw */
+/************************************************************************/
+DWORD DxEngMarkSurfaceAsDirectDraw(DWORD x1, DWORD x2)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSelectPaletteToSurface */
+/************************************************************************/
+DWORD DxEngSelectPaletteToSurface(DWORD x1, DWORD x2)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSyncPaletteTableWithDevice */
+/************************************************************************/
+DWORD DxEngSyncPaletteTableWithDevice(DWORD x1, DWORD x2)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngSetPaletteState */
+/************************************************************************/
+DWORD DxEngSetPaletteState(DWORD x1, DWORD x2, DWORD x3)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngGetRedirectionBitmap */
+/************************************************************************/
+DWORD DxEngGetRedirectionBitmap(DWORD x1)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+/************************************************************************/
+/* DxEngLoadImage */
+/************************************************************************/
+DWORD DxEngLoadImage(DWORD x1,DWORD x2)
+{
+ UNIMPLEMENTED;
+ return FALSE;
+}
+
+