mirror of
https://github.com/reactos/reactos.git
synced 2024-11-05 14:19:25 +00:00
3979f7432d
svn path=/trunk/; revision=42552
37 lines
791 B
C
37 lines
791 B
C
|
|
INT
|
|
Test_NtGdiGetFontResourceInfoInternalW(PTESTINFO pti)
|
|
{
|
|
BOOL bRet;
|
|
DWORD dwBufSize;
|
|
LOGFONTW logfont;
|
|
UNICODE_STRING NtFileName;
|
|
|
|
ASSERT(RtlDosPathNameToNtPathName_U(L".\\test.otf",
|
|
&NtFileName,
|
|
NULL,
|
|
NULL));
|
|
|
|
dwBufSize = sizeof(logfont);
|
|
memset(&logfont, 0x0, dwBufSize);
|
|
|
|
bRet = NtGdiGetFontResourceInfoInternalW(
|
|
NtFileName.Buffer,
|
|
(NtFileName.Length / sizeof(WCHAR)) +1,
|
|
1,
|
|
dwBufSize,
|
|
&dwBufSize,
|
|
&logfont,
|
|
2);
|
|
|
|
TEST(bRet != FALSE);
|
|
|
|
printf("lfHeight = %ld\n", logfont.lfHeight);
|
|
printf("lfWidth = %ld\n", logfont.lfWidth);
|
|
printf("lfFaceName = %ls\n", logfont.lfFaceName);
|
|
|
|
// RemoveFontResourceW(szFullFileName);
|
|
|
|
return APISTATUS_NORMAL;
|
|
}
|
|
|