20{
26
27
29 if (!pEnumPrintProcessorDatatypesW)
30 return;
31
32
34 ok(!pEnumPrintProcessorDatatypesW(
NULL,
NULL, 0,
NULL, 0,
NULL,
NULL),
"EnumPrintProcessorDatatypesW returns TRUE!\n");
36
37
39 ok(!pEnumPrintProcessorDatatypesW(
NULL,
NULL, 1,
NULL, 0,
NULL,
NULL),
"EnumPrintProcessorDatatypesW returns TRUE!\n");
41
42
44 ok(!pEnumPrintProcessorDatatypesW(
NULL,
NULL, 1,
NULL, 0, &cbNeeded, &dwReturned),
"EnumPrintProcessorDatatypesW returns TRUE!\n");
46 ok(cbNeeded > 0,
"cbNeeded is 0!\n");
47 ok(dwReturned == 0,
"dwReturned is %lu!\n", dwReturned);
48
49
51 ok(!pEnumPrintProcessorDatatypesW(
NULL,
L"invalid", 1,
NULL, 0, &cbNeeded, &dwReturned),
"EnumPrintProcessorDatatypesW returns TRUE!\n");
53 ok(cbNeeded > 0,
"cbNeeded is 0!\n");
54 ok(dwReturned == 0,
"dwReturned is %lu!\n", dwReturned);
55
56
58 ok(!pEnumPrintProcessorDatatypesW(
NULL,
L"winprint", 1,
NULL, 0, &cbNeeded, &dwReturned),
"EnumPrintProcessorDatatypesW returns TRUE!\n");
60 ok(cbNeeded > 0,
"cbNeeded is 0!\n");
61 ok(dwReturned == 0,
"dwReturned is %lu!\n", dwReturned);
62
63
65 ok(!pEnumPrintProcessorDatatypesW(
NULL,
L"winprint", 1,
NULL, 1, &cbNeeded, &dwReturned),
"EnumPrintProcessorDatatypesW returns TRUE!\n");
67 ok(cbNeeded > 0,
"cbNeeded is 0!\n");
68 ok(dwReturned == 0,
"dwReturned is %lu!\n", dwReturned);
69
70
72 ok(!pEnumPrintProcessorDatatypesW(
NULL,
L"winprint", 1,
NULL, cbNeeded, &cbTemp, &dwReturned),
"EnumPrintProcessorDatatypesW returns TRUE!\n");
74 ok(cbTemp == cbNeeded,
"cbTemp is %lu!\n", cbTemp);
75 ok(dwReturned == 0,
"dwReturned is %lu!\n", dwReturned);
76
77
79 ok(!pEnumPrintProcessorDatatypesW(
NULL,
NULL, 1,
NULL, cbNeeded, &cbTemp, &dwReturned),
"EnumPrintProcessorDatatypesW returns TRUE!\n");
81 ok(cbTemp == cbNeeded,
"cbTemp is %lu!\n", cbTemp);
82 ok(dwReturned == 0,
"dwReturned is %lu!\n", dwReturned);
83
84
87 ok(pEnumPrintProcessorDatatypesW(
NULL,
L"winprint", 1, (
PBYTE)pDatatypesInfo1, cbNeeded, &cbNeeded, &dwReturned),
"EnumPrintProcessorDatatypesW returns FALSE!\n");
90}
BOOL(WINAPI * PEnumPrintProcessorDatatypesW)(LPWSTR, LPWSTR, DWORD, LPBYTE, DWORD, LPDWORD, LPDWORD)
PVOID GetWinprintFunc(const char *FunctionName)
#define ERROR_INSUFFICIENT_BUFFER
#define ERROR_INVALID_PARAMETER
#define HeapFree(x, y, z)