b359bd951a5abf6931f8e873ae3c6e7489336ff2
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
);
22 ok(idEnum
!= 0, "idEnum was 0.\n");
29 /* we should have a gdi handle here */
30 ok_int((int)GDI_HANDLE_GET_TYPE(idEnum
), (int)GDI_OBJECT_TYPE_ENUMFONT
);
31 pEntry
= &GdiHandleTable
[GDI_HANDLE_GET_INDEX(idEnum
)];
32 ok(pEntry
->einfo
.pobj
!= NULL
, "pEntry->einfo.pobj was NULL.\n");
33 ok_long(pEntry
->ObjectOwner
.ulObj
, GetCurrentProcessId());
34 ok_ptr(pEntry
->pUser
, NULL
);
35 ok_int(pEntry
->FullUnique
, (idEnum
>> 16));
36 ok_int(pEntry
->Objt
, GDI_OBJECT_TYPE_ENUMFONT
>> 16);
37 ok_int(pEntry
->Flags
, 0);
39 /* We should not be able to use DeleteObject() on the handle */
40 ok_int(DeleteObject((HGDIOBJ
)idEnum
), FALSE
);
42 NtGdiEnumFontClose(idEnum
);
44 // Test no logfont (NULL): should word
45 // Test empty lfFaceName string: should not work