47static const WCHAR does_not_existW[] = {
'd',
'o',
'e',
's',
'_',
'n',
'o',
't',
'_',
'e',
'x',
'i',
's',
't',0};
51static const WCHAR localportW[] = {
'L',
'o',
'c',
'a',
'l',
' ',
'P',
'o',
'r',
't',0};
75 win_skip(
"The service 'Spooler' is required for many tests\n");
78 ok(!
res,
"EnumPorts succeeded: got %d\n",
res);
81 ok(
res == 1,
"EnumPorts failed: got %d\n",
res);
108 ptr =
"InitializePrintMonitorUI";
110 if (!pInitializePrintMonitorUI)
return ptr;
139 skip(
"AddPortUI not found\n");
147 "got %d with %u (expected '0' with: ERROR_UNKNOWN_PORT or "
154 "got %d with %u (expected '0' with: ERROR_UNKNOWN_PORT or "
161 "got %d with %u (expected '0' with: ERROR_UNKNOWN_PORT or "
180 "got %d with %u and %p (expected '!= 0' or '0' with: "
181 "ERROR_CANCELLED, ERROR_ACCESS_DENIED or ERROR_NOT_SUPPORTED)\n",
195 if (!pConfigurePortUI) {
196 skip(
"ConfigurePortUI not found\n");
204 "got %d with %u (expected '0' with: ERROR_UNKNOWN_PORT or "
211 "got %d with %u (expected '0' with: ERROR_UNKNOWN_PORT or "
219 "got %d with %u (expected '0' with: ERROR_UNKNOWN_PORT or "
227 "got %d with %u (expected '!= 0' or '0' with: ERROR_CANCELLED or "
236 "got %d with %u (expected '0' with: ERROR_UNKNOWN_PORT or "
245 "got %d with %u (expected '!= 0' or '0' with: ERROR_CANCELLED or "
254 "got %d with %u (expected '0' with: ERROR_UNKNOWN_PORT or "
264 "got %d with %u (expected '0' with: ERROR_CANCELLED or "
287 pui = pInitializePrintMonitorUI();
293 if (numentries > 2) {
294 pAddPortUI =
pui->pfnAddPortUI;
295 pConfigurePortUI =
pui->pfnConfigurePortUI;
296 pDeletePortUI =
pui->pfnDeletePortUI;
#define GetProcAddress(x, y)
#define ERROR_NOT_SUPPORTED
#define HeapFree(x, y, z)
#define MultiByteToWideChar
#define ERROR_ACCESS_DENIED
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
int WINAPI lstrcmpiW(LPCWSTR str1, LPCWSTR str2)
HGLOBAL NTAPI GlobalFree(HGLOBAL hMem)
#define sprintf(buf, format,...)
static void test_AddPortUI(void)
static const WCHAR localportW[]
static const CHAR fmt_lptA[]
static PORT_INFO_2W * find_portinfo2(LPCWSTR pPort)
static const WCHAR portname_fileW[]
static void test_ConfigurePortUI(void)
static PORT_INFO_2W * lpt_present
static const CHAR fmt_comA[]
static LPWSTR strdupW(LPCWSTR strW)
static const WCHAR emptyW[]
static const WCHAR does_not_existW[]
static PORT_INFO_2W * com_present
static PORT_INFO_2W * file_present
static LPCSTR load_functions(void)
struct _MONITORUI * PMONITORUI
DWORD WINAPI GetLastError(void)
#define ERROR_INVALID_PRINTER_NAME
#define ERROR_UNKNOWN_PORT
#define RPC_S_SERVER_UNAVAILABLE
WINBOOL WINAPI EnumPortsW(LPWSTR pName, DWORD Level, LPBYTE pPorts, DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned)