reactos/rostests/apitests/gdi32api/gdi32api.c
Timo Kreuzer 5f55fe95c7 - use own version of GdiQueryTable() instead of relying on gdi32.dll
- CrateFont -> CreateFontA
- A bunch of tests for SelectObject

svn path=/trunk/; revision=31225
2007-12-15 04:22:19 +00:00

37 lines
621 B
C

#include "gdi32api.h"
HINSTANCE g_hInstance;
PGDI_TABLE_ENTRY GdiHandleTable;
BOOL
IsFunctionPresent(LPWSTR lpszFunction)
{
return TRUE;
}
static
PGDI_TABLE_ENTRY
MyGdiQueryTable()
{
PTEB pTeb = NtCurrentTeb();
PPEB pPeb = pTeb->ProcessEnvironmentBlock;
return pPeb->GdiSharedHandleTable;
}
int APIENTRY
WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
g_hInstance = hInstance;
GdiHandleTable = MyGdiQueryTable();
if(!GdiHandleTable)
{
return -1;
}
return TestMain(L"gdi32api", L"gdi32.dll");
}