#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 305 of file icm.c.
306{
308
316
318}
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 188 of file icm.c.
189{
191
194
197 "expected -1 or 1, got %d\n",
ret);
198
201}
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 208 of file icm.c.
209{
211
214
217
220}
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 30 of file icm.c.
31{
35
39 {
40 win_skip(
"GetICMProfileA is not implemented\n" );
41 return;
42 }
43 ok( !
ret,
"GetICMProfileA succeeded\n" );
44
46 ok( !
ret,
"GetICMProfileA succeeded\n" );
47
50 ok( !
ret,
"GetICMProfileA succeeded\n" );
52
55 ok( !
ret,
"GetICMProfileA succeeded\n" );
57
60 ok( !
ret,
"GetICMProfileA succeeded\n" );
61
67 ok( !
ret,
"GetICMProfileA succeeded\n" );
68 ok(
size,
"expected size > 0\n" );
69 ok(
filename[0] == 0,
"Expected filename to be empty\n" );
71
73 ok( !
ret,
"GetICMProfileA succeeded\n" );
74
78
80}
#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 82 of file icm.c.
83{
87
91 {
92 win_skip(
"GetICMProfileW is not implemented\n" );
93 return;
94 }
95 ok( !
ret,
"GetICMProfileW succeeded\n" );
96
98 ok( !
ret,
"GetICMProfileW succeeded\n" );
99
100 if (0)
101 {
102
106 }
107
109 ok( !
ret,
"GetICMProfileW succeeded\n" );
110
113 ok( !
ret,
"GetICMProfileW succeeded\n" );
114
117 ok( !
ret,
"GetICMProfileW succeeded\n" );
119
124 ok( !
ret,
"GetICMProfileW succeeded\n" );
125 ok(
size,
"expected size > 0\n" );
127
131}
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 133 of file icm.c.
134{
137
141 {
142 win_skip(
"On NT4 where SetICMMode is not implemented but this is not advertised\n" );
143 return;
144 }
145
149
152
155
157
160
163
166
170 {
171 win_skip(
"CreateDCW is not implemented\n" );
172 return;
173 }
175
178
180}
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 222 of file icm.c.
223{
227
231 {
232 win_skip(
"SetICMProfileA is not implemented\n");
233 return;
234 }
235
239
243 ok(!
ret,
"SetICMProfileA succeeded\n");
245 "expected ERROR_INVALID_PARAMETER, got %lu\n",
error);
246
250 ok(!
ret,
"SetICMProfileA succeeded\n");
252 "expected ERROR_INVALID_HANDLE, got %lu\n",
error);
253
257 ok(!
ret,
"SetICMProfileA succeeded\n");
259 "expected ERROR_INVALID_PARAMETER, got %lu\n",
error);
260
263}
#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 265 of file icm.c.
266{
270
274 {
275 win_skip(
"SetICMProfileW is not implemented\n");
276 return;
277 }
278
282
286 ok(!
ret,
"SetICMProfileW succeeded\n");
288
292 ok(!
ret,
"SetICMProfileW succeeded\n");
294
298 ok(!
ret,
"SetICMProfileW succeeded\n");
300
303}
BOOL WINAPI SetICMProfileW(_In_ HDC, _In_ LPWSTR)
Referenced by START_TEST().