reactos/rostests/apitests/gdi32api/gdi32api.c
Timo Kreuzer 3ac4bd2b4f Query the gdi handle table for later use in tests
svn path=/trunk/; revision=30848
2007-11-28 23:41:11 +00:00

35 lines
626 B
C

#include "gdi32api.h"
HINSTANCE g_hInstance;
PGDI_TABLE_ENTRY GdiHandleTable;
BOOL
IsFunctionPresent(LPWSTR lpszFunction)
{
return TRUE;
}
int APIENTRY
WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
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");
}