6f2d972d8a6fd2fed5eb16be87127e481dd0ae1e
2 * PROJECT: ReactOS api tests
3 * LICENSE: GPL - See COPYING in the top level directory
4 * PURPOSE: Test for NtGdiEnumFontOpen
10 START_TEST(NtGdiEnumFontOpen
)
17 hDC
= CreateDCW(L
"DISPLAY",NULL
,NULL
,NULL
);
19 // FIXME: We should load the font first
21 idEnum
= NtGdiEnumFontOpen(hDC
, 2, 0, 32, L
"Courier", ANSI_CHARSET
, &ulCount
);
26 /* we should have a gdi handle here */
27 TEST(GDI_HANDLE_GET_TYPE(idEnum
) == GDI_OBJECT_TYPE_ENUMFONT
);
28 pEntry
= &GdiHandleTable
[GDI_HANDLE_GET_INDEX(idEnum
)];
29 TEST(pEntry
->einfo
.pobj
!= NULL
);
30 TEST(pEntry
->ObjectOwner
.ulObj
== GetCurrentProcessId());
31 TEST(pEntry
->pUser
== NULL
);
32 TEST(pEntry
->FullUnique
== (idEnum
>> 16));
33 TEST(pEntry
->Objt
== GDI_OBJECT_TYPE_ENUMFONT
>> 16);
34 TEST(pEntry
->Flags
== 0);
36 /* We should not be able to use DeleteObject() on the handle */
37 TEST(DeleteObject((HGDIOBJ
)idEnum
) == FALSE
);
39 NtGdiEnumFontClose(idEnum
);
41 // Test no logfont (NULL): should word
42 // Test empty lfFaceName string: should not work