Author: greatlrd
Date: Sat May 10 09:01:40 2008
New Revision: 33407
URL:
http://svn.reactos.org/svn/reactos?rev=33407&view=rev
Log:
adding a simple NtGdiGetStockObject
it show undocumented stockobject exists in windows xp/2003
value 20 and 21
Added:
trunk/rostests/apitests/w32knapi/ntgdi/NtGdiGetStockObject.c (with props)
Modified:
trunk/rostests/apitests/w32knapi/testlist.c
Added: trunk/rostests/apitests/w32knapi/ntgdi/NtGdiGetStockObject.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/ntgdi/N…
==============================================================================
--- trunk/rostests/apitests/w32knapi/ntgdi/NtGdiGetStockObject.c (added)
+++ trunk/rostests/apitests/w32knapi/ntgdi/NtGdiGetStockObject.c [iso-8859-1] Sat May 10
09:01:40 2008
@@ -1,0 +1,30 @@
+
+INT
+Test_NtGdiGetStockObject(PTESTINFO pti)
+{
+ RTEST(NtGdiGetStockObject(WHITE_BRUSH) != 0);
+ RTEST(NtGdiGetStockObject(LTGRAY_BRUSH) != 0);
+ RTEST(NtGdiGetStockObject(GRAY_BRUSH) != 0);
+ RTEST(NtGdiGetStockObject(DKGRAY_BRUSH) != 0);
+ RTEST(NtGdiGetStockObject(BLACK_BRUSH) != 0);
+ RTEST(NtGdiGetStockObject(NULL_BRUSH) != 0);
+ RTEST(NtGdiGetStockObject(WHITE_PEN) != 0);
+ RTEST(NtGdiGetStockObject(BLACK_PEN) != 0);
+ RTEST(NtGdiGetStockObject(NULL_PEN) != 0);
+ RTEST(NtGdiGetStockObject(9) == 0);
+ RTEST(NtGdiGetStockObject(OEM_FIXED_FONT) != 0);
+ RTEST(NtGdiGetStockObject(ANSI_FIXED_FONT) != 0);
+ RTEST(NtGdiGetStockObject(ANSI_VAR_FONT) != 0);
+ RTEST(NtGdiGetStockObject(SYSTEM_FONT) != 0);
+ RTEST(NtGdiGetStockObject(DEVICE_DEFAULT_FONT) != 0);
+ RTEST(NtGdiGetStockObject(DEFAULT_PALETTE) != 0);
+ RTEST(NtGdiGetStockObject(SYSTEM_FIXED_FONT) != 0);
+ RTEST(NtGdiGetStockObject(DEFAULT_GUI_FONT) != 0);
+ RTEST(NtGdiGetStockObject(DC_BRUSH) != 0);
+ RTEST(NtGdiGetStockObject(DC_PEN) != 0);
+ RTEST(NtGdiGetStockObject(20) != 0);
+ RTEST(NtGdiGetStockObject(21) != 0);
+ RTEST(NtGdiGetStockObject(22) == 0);
+ RTEST(NtGdiGetStockObject(23) == 0);
+ return APISTATUS_NORMAL;
+}
Propchange: trunk/rostests/apitests/w32knapi/ntgdi/NtGdiGetStockObject.c
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/rostests/apitests/w32knapi/testlist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/w32knapi/testlis…
==============================================================================
--- trunk/rostests/apitests/w32knapi/testlist.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/w32knapi/testlist.c [iso-8859-1] Sat May 10 09:01:40 2008
@@ -23,6 +23,7 @@
#include "ntgdi/NtGdiSetBitmapBits.c"
//#include "ntgdi/NtGdiSTROBJ_vEnumStart.c"
#include "ntgdi/NtGdiGetDIBits.c"
+#include "ntgdi/NtGdiGetStockObject.c"
#include "ntuser/NtUserCallHwnd.c"
#include "ntuser/NtUserCallHwndLock.c"
@@ -50,7 +51,7 @@
/* ntgdi */
{ L"NtGdiArcInternal", Test_NtGdiArcInternal },
{ L"NtGdiBitBlt", Test_NtGdiBitBlt },
- { L"NtGdiCreateBitmap", Test_NtGdiCreateBitmap },
+{ L"NtGdiCreateBitmap", Test_NtGdiCreateBitmap },
{ L"NtGdiCreateCompatibleBitmap", Test_NtGdiCreateCompatibleBitmap },
{ L"NtGdiDoPalette", Test_NtGdiDoPalette },
{ L"NtGdiEngCreatePalette", Test_NtGdiEngCreatePalette },
@@ -65,6 +66,7 @@
{ L"NtGdiSelectPen", Test_NtGdiSelectPen },
// { L"NtGdiSTROBJ_vEnumStart", Test_NtGdiSTROBJ_vEnumStart },
{ L"NtGdiGetDIBitsInternal", Test_NtGdiGetDIBitsInternal },
+ { L"NtGdiGetStockObject", Test_NtGdiGetStockObject },
/* ntuser */
{ L"NtUserCallHwnd", Test_NtUserCallHwnd },