[RICHED20_WINETEST]
[reactos.git] / rostests / apitests / gdi32api / gdi32api.c
1 #include "gdi32api.h"
2
3 HINSTANCE g_hInstance;
4 PGDI_TABLE_ENTRY GdiHandleTable;
5
6 BOOL
7 IsFunctionPresent(LPWSTR lpszFunction)
8 {
9 return TRUE;
10 }
11
12 static
13 PGDI_TABLE_ENTRY
14 MyGdiQueryTable()
15 {
16 PTEB pTeb = NtCurrentTeb();
17 PPEB pPeb = pTeb->ProcessEnvironmentBlock;
18 return pPeb->GdiSharedHandleTable;
19 }
20
21 int APIENTRY
22 WinMain(HINSTANCE hInstance,
23 HINSTANCE hPrevInstance,
24 LPSTR lpCmdLine,
25 int nCmdShow)
26 {
27 g_hInstance = hInstance;
28
29 GdiHandleTable = MyGdiQueryTable();
30 if(!GdiHandleTable)
31 {
32 return -1;
33 }
34
35 return TestMain(L"gdi32api", L"gdi32.dll");
36 }