2 * Unit test suite for localspl API functions: local print monitor
4 * Copyright 2006 Detlef Riekenberg
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
31 #include "ddk/winsplp.h"
33 #include "wine/test.h"
39 static LPMONITOREX (WINAPI *pInitializePrintMonitor)(LPWSTR);
41 static const WCHAR emptyW[] = {0};
45 static void test_InitializePrintMonitor(void)
49 if (!pInitializePrintMonitor) return;
51 SetLastError(0xdeadbeef);
52 res = pInitializePrintMonitor(NULL);
53 ok( (res == NULL) && (GetLastError() == ERROR_INVALID_PARAMETER),
54 "returned %p with %d\n (expected NULL with " \
55 "ERROR_INVALID_PARAMETER)\n", res, GetLastError());
57 SetLastError(0xdeadbeef);
58 res = pInitializePrintMonitor((LPWSTR) emptyW);
59 ok( (res == NULL) && (GetLastError() == ERROR_INVALID_PARAMETER),
60 "returned %p with %d\n (expected NULL with " \
61 "ERROR_INVALID_PARAMETER)\n", res, GetLastError());
67 hdll = LoadLibraryA("localspl.dll");
70 pInitializePrintMonitor = (void *) GetProcAddress(hdll, "InitializePrintMonitor");
71 test_InitializePrintMonitor();