2008-05-11 21:49:56 +00:00
|
|
|
|
|
|
|
INT
|
|
|
|
Test_NtGdiGetFontResourceInfoInternalW(PTESTINFO pti)
|
|
|
|
{
|
|
|
|
BOOL bRet;
|
|
|
|
DWORD dwBufSize;
|
|
|
|
LOGFONTW logfont;
|
|
|
|
UNICODE_STRING NtFileName;
|
|
|
|
|
2009-08-09 11:27:25 +00:00
|
|
|
ASSERT(RtlDosPathNameToNtPathName_U(L".\\test.otf",
|
2008-05-11 21:49:56 +00:00
|
|
|
&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);
|
|
|
|
|
2009-08-09 11:27:25 +00:00
|
|
|
// RemoveFontResourceW(szFullFileName);
|
2008-05-11 21:49:56 +00:00
|
|
|
|
|
|
|
return APISTATUS_NORMAL;
|
|
|
|
}
|
|
|
|
|