Author: tkreuzer
Date: Thu Nov 29 02:41:11 2007
New Revision: 30848
URL:
http://svn.reactos.org/svn/reactos?rev=30848&view=rev
Log:
Query the gdi handle table for later use in tests
Modified:
trunk/rostests/apitests/gdi32api/gdi32api.c
trunk/rostests/apitests/gdi32api/gdi32api.h
Modified: trunk/rostests/apitests/gdi32api/gdi32api.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32api/gdi32ap…
==============================================================================
--- trunk/rostests/apitests/gdi32api/gdi32api.c (original)
+++ trunk/rostests/apitests/gdi32api/gdi32api.c Thu Nov 29 02:41:11 2007
@@ -1,6 +1,7 @@
#include "gdi32api.h"
HINSTANCE g_hInstance;
+PGDI_TABLE_ENTRY GdiHandleTable;
BOOL
IsFunctionPresent(LPWSTR lpszFunction)
@@ -14,6 +15,20 @@
LPSTR lpCmdLine,
int nCmdShow)
{
+ GDIQUERYPROC GdiQueryTable;
+
g_hInstance = hInstance;
+
+ GdiQueryTable = (GDIQUERYPROC)GetProcAddress(GetModuleHandleW(L"GDI32.DLL"),
"GdiQueryTable");
+ if(!GdiQueryTable)
+ {
+ return -1;
+ }
+ GdiHandleTable = GdiQueryTable();
+ if(!GdiHandleTable)
+ {
+ return -1;
+ }
+
return TestMain(L"gdi32api", L"gdi32.dll");
}
Modified: trunk/rostests/apitests/gdi32api/gdi32api.h
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/gdi32api/gdi32ap…
==============================================================================
--- trunk/rostests/apitests/gdi32api/gdi32api.h (original)
+++ trunk/rostests/apitests/gdi32api/gdi32api.h Thu Nov 29 02:41:11 2007
@@ -5,6 +5,7 @@
#include "gdi.h"
extern HINSTANCE g_hInstance;
+extern PGDI_TABLE_ENTRY GdiHandleTable;
#endif /* _GDITEST_H */