#include "precomp.h"
#include <pseh/pseh2.h>
Go to the source code of this file.
◆ START_TEST()
START_TEST |
( |
AddFontResourceEx |
| ) |
|
◆ Test_AddFontResourceExW()
void Test_AddFontResourceExW |
( |
| ) |
|
Definition at line 12 of file AddFontResourceEx.c.
13{
16
17
19
20
22 {
24 }
26 {
29 }
31 ok(
result == -1,
"AddFontResourceExW should throw an exception!, result == %d\n",
result);
33
34
37 ok(
result == 0,
"AddFontResourceExW(L"", 0, 0) succeeded, result==%d\n",
result);
39
41 wcscat(szFileName,
L"\\Fonts\\cour.ttf");
42
43
46 ok(
result == 1,
"AddFontResourceExW(L"", 0, 0) failed, result==%d\n",
result);
48
51 ok(
result == 0,
"AddFontResourceExW(L"", 0, 0) failed, result==%d\n",
result);
53
54
56 ok(
result != 0,
"AddFontResourceExW(L"", 0, 0) failed, result==%d\n",
result);
58
59}
#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)
Referenced by START_TEST().