35 StringCbCatW(lpszFontPath,
sizeof(lpszFontPath),
L"\\Fonts\\");
38 StringCbCopyW(lpszFontSearch,
sizeof(lpszFontSearch), lpszFontPath);
39 StringCbCatW(lpszFontSearch,
sizeof(lpszFontSearch),
L"*.ttf");
45 skip(
"Unable to find fonts in Font directory!\n");
50 StringCbCatW(lpszFontPath,
sizeof(lpszFontPath), FindFileData.cFileName);
59 ok(
ret == 0,
"Expected 0 files added. Added: %d\n",
ret);
71 ok(
ret == 0,
"Expected 0 files added. Added: %d\n",
ret);
83 ok(
ret == 1,
"Expected 1 files added. Added: %d\n",
ret);
92 ok(
ret == 0,
"Expected 0 files added. Added: %d\n",
ret);
void Test_NtGdiAddFontResourceW()
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)
_In_ ULONG_PTR _In_opt_ DESIGNVECTOR * pdv