[APITESTS][WIN32KNT_APITEST] Improve NtGdiGetFontResourceInfoInternalW testcase ...
[reactos.git] / modules / rostests / apitests / win32nt / ntgdi / NtGdiGetFontResourceInfoInternalW.c
1 /*
2 * PROJECT: ReactOS api tests
3 * LICENSE: GPL - See COPYING in the top level directory
4 * PURPOSE: Test for NtGdiGetFontResourceInfoInternalW
5 * PROGRAMMERS:
6 */
7
8 #include <win32nt.h>
9
10 START_TEST(NtGdiGetFontResourceInfoInternalW)
11 {
12 BOOL bRet;
13 DWORD dwBufSize;
14 LOGFONTW logfont;
15 UNICODE_STRING NtFileName;
16
17 ASSERT(RtlDosPathNameToNtPathName_U(L".\\test.otf",
18 &NtFileName,
19 NULL,
20 NULL));
21
22 dwBufSize = sizeof(logfont);
23 memset(&logfont, 0x0, dwBufSize);
24
25 bRet = NtGdiGetFontResourceInfoInternalW(
26 NtFileName.Buffer,
27 (NtFileName.Length / sizeof(WCHAR)) +1,
28 1,
29 dwBufSize,
30 &dwBufSize,
31 &logfont,
32 2);
33
34 ok(bRet != FALSE, "bRet was not FALSE.\n");
35
36 printf("lfHeight = %ld\n", logfont.lfHeight);
37 printf("lfWidth = %ld\n", logfont.lfWidth);
38 printf("lfFaceName = %ls\n", logfont.lfFaceName);
39
40 // RemoveFontResourceW(szFullFileName);
41
42 }