91 "Context is %p, expected %p or %p\n",
111 "Context is %p, expected %p or %p\n",
130 } *fun, functions[] =
151 for (iContext = 0; iContext <
_countof(contexts); iContext++)
153 ctx = &contexts[iContext];
154 for (iFunction = 0; iFunction <
_countof(functions); iFunction++)
156 fun = &functions[iFunction];
164 ok(
error == 0xdeadbeef,
"[%s, %s, '%ls'] error is %lu\n", fun->Name,
ctx->Description, FontName,
error);
169 ok(
ret == 7,
"[%s, %s, '%ls'] ret is %d, expected 7\n", fun->Name,
ctx->Description, FontName,
ret);
174 ok(
ret == 0,
"[%s, %s, '%ls'] ret is %d, expected 0\n", fun->Name,
ctx->Description, FontName,
ret);
180 ok(
ret == 1,
"[%s, %s, '%ls'] ret is %d, expected 1\n", fun->Name,
ctx->Description, FontName,
ret);
static ENUMLOGFONTA LastFontA
int WRAP_ENUM_FONT_FAMILIES(_In_ HDC, _In_ PCWSTR, _In_ PVOID, _In_ LPARAM)
static int CALLBACK EnumProcW(_In_ const LOGFONTW *elf, _In_ const TEXTMETRICW *ntm, _In_ DWORD FontType, _In_ LPARAM lParam)
static int WrapEnumFontFamiliesA(_In_ HDC hdc, _In_ PCWSTR Family, _In_ PVOID EnumProc, _In_ LPARAM lParam)
static int CALLBACK EnumProcA(_In_ const LOGFONTA *elf, _In_ const TEXTMETRICA *ntm, _In_ DWORD FontType, _In_ LPARAM lParam)
static ENUMLOGFONTW LastFontW
WRAP_ENUM_FONT_FAMILIES * PWRAP_ENUM_FONT_FAMILIES
static int WrapEnumFontFamiliesW(_In_ HDC hdc, _In_ PCWSTR Family, _In_ PVOID EnumProc, _In_ LPARAM lParam)
static BYTE ContextContinue
static int WrapEnumFontFamiliesExW(_In_ HDC hdc, _In_ PCWSTR Family, _In_ PVOID EnumProc, _In_ LPARAM lParam)
static int WrapEnumFontFamiliesExA(_In_ HDC hdc, _In_ PCWSTR Family, _In_ PVOID EnumProc, _In_ LPARAM lParam)
static void TestEnumFontFamilies(_In_ HDC hdc, _In_ PCWSTR FontName, _In_ BOOLEAN ExpectToFind)
static BOOL CALLBACK EnumProc(_In_ HWND hWnd, _In_ LPARAM lParam)
static const WCHAR Description[]
#define WideCharToMultiByte
STRSAFEAPI StringCbCopyW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
CHAR lfFaceName[LF_FACESIZE]
WCHAR lfFaceName[LF_FACESIZE]
DWORD WINAPI GetLastError(void)
int WINAPI EnumFontFamiliesExW(_In_ HDC, _In_ PLOGFONTW, _In_ FONTENUMPROCW, _In_ LPARAM, _In_ DWORD)
int WINAPI EnumFontFamiliesExA(_In_ HDC, _In_ PLOGFONTA, _In_ FONTENUMPROCA, _In_ LPARAM, _In_ DWORD)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
int WINAPI EnumFontFamiliesW(_In_ HDC, _In_opt_ LPCWSTR, _In_ FONTENUMPROCW, _In_ LPARAM)
int WINAPI EnumFontFamiliesA(_In_ HDC, _In_opt_ LPCSTR, _In_ FONTENUMPROCA, _In_ LPARAM)
BOOL WINAPI DeleteDC(_In_ HDC)