reactos/rostests/apitests/win32nt/ntgdi/NtGdiGetFontResourceInfoInternalW.c
Timo Kreuzer 7ad21a4425 [APOTESTS]
- Convert win32k native api test to actual wine style api-tests
- Hack around a bit with the win32k dlls, some renaming, etc.
- Delete old apitest stuff

svn path=/trunk/; revision=70458
2015-12-28 20:31:10 +00:00

44 lines
964 B
C

/*
* PROJECT: ReactOS api tests
* LICENSE: GPL - See COPYING in the top level directory
* PURPOSE: Test for NtGdiGetFontResourceInfoInternalW
* PROGRAMMERS:
*/
#include <win32nt.h>
START_TEST(NtGdiGetFontResourceInfoInternalW)
{
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);
}