reactos/modules/rostests/apitests/win32nt/ntgdi/NtGdiGetFontResourceInfoInternalW.c
Serge Gautherie a5c3bb5bce
[WIN32KNT_APITEST] 2 minor code improvements and a first fix (#5980)
- Update .rc filename; addendum to 7ad21a4 (r70458).
- Move one '#include "resource.h"' around to where it is needed.
  Addendum to e1b2e7a (r29284) then ec5e0ea (r48103).
- Adjust all '#include <win32nt.h>'
2023-11-16 21:57:10 +01:00

43 lines
1 KiB
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);
ok(bRet != FALSE, "bRet was FALSE.\n");
printf("lfHeight = %ld\n", logfont.lfHeight);
printf("lfWidth = %ld\n", logfont.lfWidth);
printf("lfFaceName = %ls\n", logfont.lfFaceName);
// RemoveFontResourceW(szFullFileName);
}