#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "wingdi.h"
#include "wine/test.h"
Go to the source code of this file.
◆ enum_profiles_callbackA()
◆ enum_profiles_callbackW()
◆ START_TEST()
Definition at line 307 of file icm.c.
308{
310
318
320}
static void test_SetICMMode(HDC dc)
static void test_GetICMProfileA(HDC dc)
static void test_SetICMProfileW(HDC dc)
static void test_EnumICMProfilesA(HDC dc)
static void test_GetICMProfileW(HDC dc)
static void test_SetICMProfileA(HDC dc)
static void test_EnumICMProfilesW(HDC dc)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)
◆ test_EnumICMProfilesA()
static void test_EnumICMProfilesA |
( |
HDC |
dc | ) |
|
|
static |
Definition at line 190 of file icm.c.
191{
193
196
199 "expected -1 or 1, got %d\n",
ret);
200
203}
static INT CALLBACK enum_profiles_callbackA(LPSTR filename, LPARAM lparam)
int WINAPI EnumICMProfilesA(_In_ HDC, _In_ ICMENUMPROCA, _In_opt_ LPARAM)
Referenced by START_TEST().
◆ test_EnumICMProfilesW()
static void test_EnumICMProfilesW |
( |
HDC |
dc | ) |
|
|
static |
Definition at line 210 of file icm.c.
211{
213
216
219
222}
static INT CALLBACK enum_profiles_callbackW(LPWSTR filename, LPARAM lparam)
int WINAPI EnumICMProfilesW(_In_ HDC, _In_ ICMENUMPROCW, _In_opt_ LPARAM)
Referenced by START_TEST().
◆ test_GetICMProfileA()
static void test_GetICMProfileA |
( |
HDC |
dc | ) |
|
|
static |
Definition at line 32 of file icm.c.
33{
37
41 {
42 win_skip(
"GetICMProfileA is not implemented\n" );
43 return;
44 }
45 ok( !
ret,
"GetICMProfileA succeeded\n" );
46
48 ok( !
ret,
"GetICMProfileA succeeded\n" );
49
52 ok( !
ret,
"GetICMProfileA succeeded\n" );
54
57 ok( !
ret,
"GetICMProfileA succeeded\n" );
59
62 ok( !
ret,
"GetICMProfileA succeeded\n" );
63
69 ok( !
ret,
"GetICMProfileA succeeded\n" );
70 ok(
size,
"expected size > 0\n" );
71 ok(
filename[0] == 0,
"Expected filename to be empty\n" );
73
75 ok( !
ret,
"GetICMProfileA succeeded\n" );
76
80
82}
#define ERROR_INSUFFICIENT_BUFFER
#define ERROR_CALL_NOT_IMPLEMENTED
DWORD WINAPI GetLastError(void)
BOOL WINAPI GetICMProfileA(_In_ HDC hdc, _Inout_ LPDWORD pBufSize, _Out_writes_opt_(*pBufSize) LPSTR pszFilename)
Referenced by START_TEST().
◆ test_GetICMProfileW()
static void test_GetICMProfileW |
( |
HDC |
dc | ) |
|
|
static |
Definition at line 84 of file icm.c.
85{
89
93 {
94 win_skip(
"GetICMProfileW is not implemented\n" );
95 return;
96 }
97 ok( !
ret,
"GetICMProfileW succeeded\n" );
98
100 ok( !
ret,
"GetICMProfileW succeeded\n" );
101
102 if (0)
103 {
104
108 }
109
111 ok( !
ret,
"GetICMProfileW succeeded\n" );
112
115 ok( !
ret,
"GetICMProfileW succeeded\n" );
116
119 ok( !
ret,
"GetICMProfileW succeeded\n" );
121
126 ok( !
ret,
"GetICMProfileW succeeded\n" );
127 ok(
size,
"expected size > 0\n" );
129
133}
BOOL WINAPI GetICMProfileW(_In_ HDC hdc, _Inout_ LPDWORD pBufSize, _Out_writes_opt_(*pBufSize) LPWSTR pszFilename)
Referenced by START_TEST().
◆ test_SetICMMode()
static void test_SetICMMode |
( |
HDC |
dc | ) |
|
|
static |
Definition at line 135 of file icm.c.
136{
139
143 {
144 win_skip(
"On NT4 where SetICMMode is not implemented but this is not advertised\n" );
145 return;
146 }
147
151
154
157
159
162
165
168
172 {
173 win_skip(
"CreateDCW is not implemented\n" );
174 return;
175 }
177
180
182}
static const WCHAR displayW[]
int WINAPI SetICMMode(_In_ HDC, _In_ int)
BOOL WINAPI DeleteDC(_In_ HDC)
HDC WINAPI CreateDCW(_In_opt_ LPCWSTR pszDriver, _In_opt_ LPCWSTR pszDevice, _In_opt_ LPCWSTR psz, _In_opt_ const DEVMODEW *pdmInit)
Referenced by START_TEST().
◆ test_SetICMProfileA()
static void test_SetICMProfileA |
( |
HDC |
dc | ) |
|
|
static |
Definition at line 224 of file icm.c.
225{
229
233 {
234 win_skip(
"SetICMProfileA is not implemented\n");
235 return;
236 }
237
241
245 ok(!
ret,
"SetICMProfileA succeeded\n");
247 "expected ERROR_INVALID_PARAMETER, got %u\n",
error);
248
252 ok(!
ret,
"SetICMProfileA succeeded\n");
254 "expected ERROR_INVALID_HANDLE, got %u\n",
error);
255
259 ok(!
ret,
"SetICMProfileA succeeded\n");
261 "expected ERROR_INVALID_PARAMETER, got %u\n",
error);
262
265}
#define ERROR_INVALID_PARAMETER
#define ERROR_INVALID_HANDLE
BOOL WINAPI SetICMProfileA(_In_ HDC, _In_ LPSTR)
Referenced by START_TEST().
◆ test_SetICMProfileW()
static void test_SetICMProfileW |
( |
HDC |
dc | ) |
|
|
static |
Definition at line 267 of file icm.c.
268{
272
276 {
277 win_skip(
"SetICMProfileW is not implemented\n");
278 return;
279 }
280
284
288 ok(!
ret,
"SetICMProfileW succeeded\n");
290
294 ok(!
ret,
"SetICMProfileW succeeded\n");
296
300 ok(!
ret,
"SetICMProfileW succeeded\n");
302
305}
BOOL WINAPI SetICMProfileW(_In_ HDC, _In_ LPWSTR)
Referenced by START_TEST().
◆ displayW