Author: pborobia Date: Thu Aug 31 00:36:12 2006 New Revision: 23820
URL: http://svn.reactos.org/svn/reactos?rev=23820&view=rev Log: * update dc.c
Modified: branches/clipboard/subsystems/win32/win32k/objects/dc.c
Modified: branches/clipboard/subsystems/win32/win32k/objects/dc.c URL: http://svn.reactos.org/svn/reactos/branches/clipboard/subsystems/win32/win32... ============================================================================== --- branches/clipboard/subsystems/win32/win32k/objects/dc.c (original) +++ branches/clipboard/subsystems/win32/win32k/objects/dc.c Thu Aug 31 00:36:12 2006 @@ -2974,14 +2974,44 @@
return Ret; } + DWORD STDCALL NtGdiGetLayout(HDC hdc) { - return 0; -} + PDC dc; + DWORD ret = GDI_ERROR; + + if ((dc = DC_LockDc(hdc))) + { + ret = dc->layout; + DC_UnlockDc(dc); + } + else + { + SetLastWin32Error(ERROR_INVALID_HANDLE); + } + + return ret; +} + DWORD STDCALL NtGdiSetLayout(HDC hdc, LONG wox, DWORD layout) { - return 0; -} + PDC dc; + DWORD ret = GDI_ERROR; + + if ((dc = DC_LockDc(hdc))) + { + ret = dc->layout; + dc->layout = layout; + DC_UnlockDc(dc); + } + else + { + SetLastWin32Error(ERROR_INVALID_HANDLE); + } + + return ret; +} + /* EOF */