mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 11:16:11 +00:00
Query the gdi handle table for later use in tests
svn path=/trunk/; revision=30848
This commit is contained in:
parent
86962e6878
commit
3ac4bd2b4f
2 changed files with 16 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
#include "gdi32api.h"
|
#include "gdi32api.h"
|
||||||
|
|
||||||
HINSTANCE g_hInstance;
|
HINSTANCE g_hInstance;
|
||||||
|
PGDI_TABLE_ENTRY GdiHandleTable;
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
IsFunctionPresent(LPWSTR lpszFunction)
|
IsFunctionPresent(LPWSTR lpszFunction)
|
||||||
|
@ -14,6 +15,20 @@ WinMain(HINSTANCE hInstance,
|
||||||
LPSTR lpCmdLine,
|
LPSTR lpCmdLine,
|
||||||
int nCmdShow)
|
int nCmdShow)
|
||||||
{
|
{
|
||||||
|
GDIQUERYPROC GdiQueryTable;
|
||||||
|
|
||||||
g_hInstance = hInstance;
|
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");
|
return TestMain(L"gdi32api", L"gdi32.dll");
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#include "gdi.h"
|
#include "gdi.h"
|
||||||
|
|
||||||
extern HINSTANCE g_hInstance;
|
extern HINSTANCE g_hInstance;
|
||||||
|
extern PGDI_TABLE_ENTRY GdiHandleTable;
|
||||||
|
|
||||||
#endif /* _GDITEST_H */
|
#endif /* _GDITEST_H */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue