Author: greatlrd
Date: Sun Jun 8 08:15:47 2008
New Revision: 33900
URL:
http://svn.reactos.org/svn/reactos?rev=33900&view=rev
Log:
add dciman32 from my local working three
implemted : DCIOpenProvider, DCICloseProvider, DCICreateOffscreen, DCICreateOverlay,
DCIDraw, DCISetClipList, DCISetSrcDestClip, DCISetDestination
Added:
branches/win32k-gdi-dx/dll/win32/dciman32/
branches/win32k-gdi-dx/dll/win32/dciman32/dciman32.def (with props)
branches/win32k-gdi-dx/dll/win32/dciman32/dciman32.rbuild (with props)
branches/win32k-gdi-dx/dll/win32/dciman32/dciman32_main.c (with props)
branches/win32k-gdi-dx/dll/win32/dciman32/precomp.h (with props)
Added: branches/win32k-gdi-dx/dll/win32/dciman32/dciman32.def
URL:
http://svn.reactos.org/svn/reactos/branches/win32k-gdi-dx/dll/win32/dciman3…
==============================================================================
--- branches/win32k-gdi-dx/dll/win32/dciman32/dciman32.def (added)
+++ branches/win32k-gdi-dx/dll/win32/dciman32/dciman32.def [iso-8859-1] Sun Jun 8
08:15:47 2008
@@ -1,0 +1,29 @@
+; $Id: gdi32.def 33598 2008-05-19 10:20:39Z greatlrd $
+;
+; gdi32.def
+;
+; ReactOS Operating System
+; dciman32.def.
+;
+LIBRARY dciman32.dll
+EXPORTS
+DCIBeginAccess@20
+DCICloseProvider@4
+DCICreateOffscreen@40
+DCICreateOverlay@12
+DCICreatePrimary@8
+DCIDestroy@4
+DCIDraw@4
+DCIEndAccess@4
+DCIEnum@20
+DCIOpenProvider@0
+DCISetClipList@8
+DCISetDestination@12=DCICreateOverlay
+DCISetSrcDestClip@16
+GetDCRegionData@12
+GetWindowRegionData@12
+WinWatchClose@4
+WinWatchDidStatusChange@4
+WinWatchGetClipList@16
+WinWatchNotify@12
+WinWatchOpen@4
Propchange: branches/win32k-gdi-dx/dll/win32/dciman32/dciman32.def
------------------------------------------------------------------------------
svn:eol-style = native
Added: branches/win32k-gdi-dx/dll/win32/dciman32/dciman32.rbuild
URL:
http://svn.reactos.org/svn/reactos/branches/win32k-gdi-dx/dll/win32/dciman3…
==============================================================================
--- branches/win32k-gdi-dx/dll/win32/dciman32/dciman32.rbuild (added)
+++ branches/win32k-gdi-dx/dll/win32/dciman32/dciman32.rbuild [iso-8859-1] Sun Jun 8
08:15:47 2008
@@ -1,0 +1,18 @@
+<module name="dciman32" type="win32dll"
baseaddress="${BASEADDRESS_DCIMAN32}" installbase="system32"
installname="dciman32.dll" unicode="yes">
+ <importlibrary definition="dciman32.def" />
+ <include base="dciman32">include</include>
+ <define name="_DISABLE_TIDENTS" />
+ <define name="WINVER">0x0600</define>
+ <define name="_WIN32_WINNT">0x0501</define>
+ <library>ntdll</library>
+ <library>user32</library>
+ <library>kernel32</library>
+ <library>advapi32</library>
+ <library>pseh</library>
+ <library>dxguid</library>
+ <library>gdi32</library>
+ <pch>precomp.h</pch>
+ <file>dciman32_main.c</file>
+
+</module>
+
Propchange: branches/win32k-gdi-dx/dll/win32/dciman32/dciman32.rbuild
------------------------------------------------------------------------------
svn:eol-style = native
Added: branches/win32k-gdi-dx/dll/win32/dciman32/dciman32_main.c
URL:
http://svn.reactos.org/svn/reactos/branches/win32k-gdi-dx/dll/win32/dciman3…
==============================================================================
--- branches/win32k-gdi-dx/dll/win32/dciman32/dciman32_main.c (added)
+++ branches/win32k-gdi-dx/dll/win32/dciman32/dciman32_main.c [iso-8859-1] Sun Jun 8
08:15:47 2008
@@ -1,0 +1,302 @@
+/*
+ * Implementation of DCIMAN32 - DCI Manager
+ */
+
+#include <precomp.h>
+
+BOOL
+WINAPI
+DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
+{
+ return TRUE;
+}
+
+
+/*
+ * @unimplemented
+ */
+DCMAIN32SDKAPI
+DCIRVAL
+WINAPI
+DCIBeginAccess(
+ LPDCISURFACEINFO pdci,
+ int x,
+ int y,
+ int dx,
+ int dy)
+{
+ UNIMPLEMENTED
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return DCI_FAIL_UNSUPPORTED;
+}
+
+
+/*
+ * @implemented
+ */
+DCMAIN32SDKAPI
+HDC
+WINAPI
+DCIOpenProvider()
+{
+ HDC hdc = NULL;
+
+ if ( (GetSystemMetrics(SM_CMONITORS) == 1) ||
+ (GetSystemMetrics(SM_CMONITORS) == 0) )
+ {
+ hdc = CreateDCW(L"DISPLAY",0,0,0);
+ }
+
+ return hdc;
+}
+
+/*
+ * @implemented
+ */
+DCMAIN32SDKAPI
+void
+WINAPI
+DCICloseProvider(HDC hdc)
+{
+ DeleteDC(hdc);
+}
+
+/*
+ * @implemented
+ * Note : DCICreateOffscreen always return DCI_FAIL_UNSUPPORTED what every it u try todo
+ */
+DCMAIN32SDKAPI
+int
+WINAPI
+DCICreateOffscreen(
+ HDC hdc,
+ DWORD dwCompression,
+ DWORD dwRedMask,
+ DWORD dwGreenMask,
+ DWORD dwBlueMask,
+ DWORD dwWidth,
+ DWORD dwHeight,
+ DWORD dwDCICaps,
+ DWORD dwBitCount,
+ LPDCIOFFSCREEN FAR *lplpSurface)
+{
+ return DCI_FAIL_UNSUPPORTED;
+}
+
+/*
+ * @implemented
+ * Note : DCICreateOverlay always return DCI_FAIL_UNSUPPORTED what every it u try todo
+ */
+DCMAIN32SDKAPI
+int
+WINAPI
+DCICreateOverlay(
+ HDC hdc,
+ LPVOID lpOffscreenSurf,
+ LPDCIOVERLAY FAR *lplpSurface)
+{
+ return DCI_FAIL_UNSUPPORTED;
+}
+
+
+/*
+ * @unimplemented
+ */
+DCMAIN32SDKAPI
+int
+WINAPI
+DCICreatePrimary(
+ HDC hdc,
+ LPDCISURFACEINFO FAR *lplpSurface)
+{
+
+ UNIMPLEMENTED
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return DCI_FAIL_UNSUPPORTED;
+}
+
+/*
+ * @unimplemented
+ */
+DCMAIN32SDKAPI
+void
+WINAPI DCIDestroy(LPDCISURFACEINFO pdci)
+{
+ UNIMPLEMENTED
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+}
+
+/*
+ * @implemented
+ * Note : DCIDraw always return DCI_FAIL_UNSUPPORTED what every it u try todo
+ */
+DCMAIN32SDKAPI
+DCIRVAL
+WINAPI
+DCIDraw(LPDCIOFFSCREEN pdci)
+{
+ return DCI_FAIL_UNSUPPORTED;
+}
+
+/*
+ * @unimplemented
+ */
+DCMAIN32SDKAPI
+void
+WINAPI
+DCIEndAccess(LPDCISURFACEINFO pdci)
+{
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+}
+
+/*
+ * @implemented
+ * Note : DCIEnum always return DCI_FAIL_UNSUPPORTED what every it u try todo
+ */
+DCMAIN32SDKAPI
+int
+WINAPI
+DCIEnum(
+ HDC hdc,
+ LPRECT lprDst,
+ LPRECT lprSrc,
+ LPVOID lpFnCallback,
+ LPVOID lpContext)
+{
+ return DCI_FAIL_UNSUPPORTED;
+}
+
+/*
+ * @implemented
+ * Note : DCIEnum always return DCI_FAIL_UNSUPPORTED what every it u try todo
+ */
+DCMAIN32SDKAPI
+DCIRVAL
+WINAPI
+DCISetClipList(
+ LPDCIOFFSCREEN pdci,
+ LPRGNDATA prd)
+{
+ return DCI_FAIL_UNSUPPORTED;
+}
+
+/*
+ * @unimplemented
+ * Note : DCIEnum always return DCI_FAIL_UNSUPPORTED what every it u try todo
+ */
+DCMAIN32SDKAPI
+DCIRVAL
+WINAPI
+DCISetSrcDestClip(
+ LPDCIOFFSCREEN pdci,
+ LPRECT srcrc,
+ LPRECT destrc,
+ LPRGNDATA prd )
+{
+ return DCI_FAIL_UNSUPPORTED;
+}
+
+/*
+ * @unimplemented
+ */
+DCMAIN32SDKAPI
+DWORD
+WINAPI
+GetDCRegionData(
+ HDC hdc,
+ DWORD size,
+ LPRGNDATA prd)
+{
+ UNIMPLEMENTED
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
+
+/*
+ * @unimplemented
+ */
+DCMAIN32SDKAPI
+DWORD
+WINAPI
+GetWindowRegionData(
+ HWND hwnd,
+ DWORD size,
+ LPRGNDATA prd)
+{
+ UNIMPLEMENTED
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
+
+/*
+ * @unimplemented
+ */
+DCMAIN32SDKAPI
+void
+WINAPI
+WinWatchClose(HWINWATCH hWW)
+{
+ UNIMPLEMENTED
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+}
+
+/*
+ * @unimplemented
+ */
+DCMAIN32SDKAPI
+BOOL
+WINAPI
+WinWatchDidStatusChange(HWINWATCH hWW)
+{
+ UNIMPLEMENTED
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
+
+/*
+ * @unimplemented
+ */
+DCMAIN32SDKAPI
+UINT
+WINAPI
+WinWatchGetClipList(
+ HWINWATCH hWW,
+ LPRECT prc,
+ UINT size,
+ LPRGNDATA prd)
+{
+ UNIMPLEMENTED
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
+
+/*
+ * @unimplemented
+ */
+DCMAIN32SDKAPI
+BOOL
+WINAPI
+WinWatchNotify(
+ HWINWATCH hWW,
+ WINWATCHNOTIFYPROC NotifyCallback,
+ LPARAM NotifyParam )
+{
+ UNIMPLEMENTED
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
+
+/*
+ * @unimplemented
+ */
+DCMAIN32SDKAPI
+HWINWATCH
+WINAPI
+WinWatchOpen(HWND hwnd)
+{
+ UNIMPLEMENTED
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return 0;
+}
+
+
Propchange: branches/win32k-gdi-dx/dll/win32/dciman32/dciman32_main.c
------------------------------------------------------------------------------
svn:eol-style = native
Added: branches/win32k-gdi-dx/dll/win32/dciman32/precomp.h
URL:
http://svn.reactos.org/svn/reactos/branches/win32k-gdi-dx/dll/win32/dciman3…
==============================================================================
--- branches/win32k-gdi-dx/dll/win32/dciman32/precomp.h (added)
+++ branches/win32k-gdi-dx/dll/win32/dciman32/precomp.h [iso-8859-1] Sun Jun 8 08:15:47
2008
@@ -1,0 +1,33 @@
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS System Libraries
+ * FILE: lib/gdi32/include/precomp.h
+ * PURPOSE: User-Mode Win32 GDI Library Header
+ * PROGRAMMER: Alex Ionescu (alex(a)relsoft.net)
+ */
+
+/* INCLUDES ******************************************************************/
+
+/* Definitions */
+#define WIN32_NO_STATUS
+#define NTOS_MODE_USER
+#define BUILDING_DCIMAN32
+
+/* SDK/DDK/NDK Headers. */
+#include <windows.h>
+#include <ndk/ntndk.h>
+#include <wingdi.h>
+#include <winddi.h>
+#include <d3dnthal.h>
+#include <prntfont.h>
+#include <dciddi.h>
+#include <dciman.h>
+
+/* Public Win32K Headers */
+#include <win32k/ntgdityp.h>
+#include <ntgdi.h>
+#include <win32k/ntgdihdl.h>
+
+#define UNIMPLEMENTED DbgPrint("DCIMAN32: %s is unimplemented, please try again
later.\n", __FUNCTION__);
+
+/* EOF */
Propchange: branches/win32k-gdi-dx/dll/win32/dciman32/precomp.h
------------------------------------------------------------------------------
svn:eol-style = native