23{
26
32
33
35 StringCbCatW(lpszFontPath,
sizeof(lpszFontPath),
L"\\Fonts\\");
36
37
38 StringCbCopyW(lpszFontSearch,
sizeof(lpszFontSearch), lpszFontPath);
39 StringCbCatW(lpszFontSearch,
sizeof(lpszFontSearch),
L"*.ttf");
40
42
44 {
45 skip(
"Unable to find fonts in Font directory!\n");
46 return;
47 }
48
49
50 StringCbCatW(lpszFontPath,
sizeof(lpszFontPath), FindFileData.cFileName);
51
52
56 cwc = 0;
58
59 ok(
ret == 0,
"Expected 0 files added. Added: %d\n",
ret);
61
63
64
70
71 ok(
ret == 0,
"Expected 0 files added. Added: %d\n",
ret);
73
75
76
82
83 ok(
ret == 1,
"Expected 1 files added. Added: %d\n",
ret);
85
87
88
91
92 ok(
ret == 0,
"Expected 0 files added. Added: %d\n",
ret);
94}
INT APIENTRY NtGdiAddFontResourceW(_In_reads_(cwc) WCHAR *pwszFiles, _In_ ULONG cwc, _In_ ULONG cFiles, _In_ FLONG f, _In_ DWORD dwPidTid, _In_opt_ DESIGNVECTOR *pdv)
#define INVALID_HANDLE_VALUE
HANDLE WINAPI FindFirstFileW(IN LPCWSTR lpFileName, OUT LPWIN32_FIND_DATAW lpFindFileData)
UINT WINAPI GetWindowsDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
NTSYSAPI BOOLEAN NTAPI RtlDosPathNameToNtPathName_U(_In_opt_z_ PCWSTR DosPathName, _Out_ PUNICODE_STRING NtPathName, _Out_opt_ PCWSTR *NtFileNamePart, _Out_opt_ PRTL_RELATIVE_NAME_U DirectoryInfo)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
STRSAFEAPI StringCbCopyW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
STRSAFEAPI StringCbCatW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszSrc)
DWORD WINAPI GetLastError(void)