10#define WIN32_NO_STATUS
29 if (!pEnumPrintProcessorDatatypesW)
34 ok(!pEnumPrintProcessorDatatypesW(
NULL,
NULL, 0,
NULL, 0,
NULL,
NULL),
"EnumPrintProcessorDatatypesW returns TRUE!\n");
39 ok(!pEnumPrintProcessorDatatypesW(
NULL,
NULL, 1,
NULL, 0,
NULL,
NULL),
"EnumPrintProcessorDatatypesW returns TRUE!\n");
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);
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);
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);
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);
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);
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);
87 ok(pEnumPrintProcessorDatatypesW(
NULL,
L"winprint", 1, (
PBYTE)pDatatypesInfo1, cbNeeded, &cbNeeded, &dwReturned),
"EnumPrintProcessorDatatypesW returns FALSE!\n");
BOOL(WINAPI * PEnumPrintProcessorDatatypesW)(LPWSTR, LPWSTR, DWORD, LPBYTE, DWORD, LPDWORD, LPDWORD)
PVOID GetWinprintFunc(const char *FunctionName)
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char * FunctionName
#define ERROR_INSUFFICIENT_BUFFER
#define ERROR_INVALID_PARAMETER
#define HeapFree(x, y, z)
DWORD WINAPI GetLastError(void)
WINBOOL WINAPI EnumPrintProcessorDatatypesW(LPWSTR pName, LPWSTR pPrintProcessorName, DWORD Level, LPBYTE pDatatypes, DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned)