31 ok(
result == -1,
"AddFontResourceExW should throw an exception!, result == %d\n",
result);
37 ok(
result == 0,
"AddFontResourceExW(L"", 0, 0) succeeded, result==%d\n",
result);
41 wcscat(szFileName,
L"\\Fonts\\cour.ttf");
46 ok(
result == 1,
"AddFontResourceExW(L"", 0, 0) failed, result==%d\n",
result);
51 ok(
result == 0,
"AddFontResourceExW(L"", 0, 0) failed, result==%d\n",
result);
56 ok(
result != 0,
"AddFontResourceExW(L"", 0, 0) failed, result==%d\n",
result);
void Test_AddFontResourceExW()
#define ERROR_INVALID_PARAMETER
#define GetEnvironmentVariableW(x, y, z)
#define EXCEPTION_EXECUTE_HANDLER
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
_CRTIMP wchar_t *__cdecl wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
DWORD WINAPI GetLastError(void)
INT WINAPI AddFontResourceExW(_In_ LPCWSTR pszFilename, _In_ DWORD fl, _Reserved_ PVOID pvReserved)