10#define WIN32_NO_STATUS
18#include "../localspl_apitest.h"
37 pGetPrintProcessorDirectoryW =
GetSpoolssFunc(
"GetPrintProcessorDirectoryW");
38 if (!pGetPrintProcessorDirectoryW)
43 ok(!pp.fpGetPrintProcessorDirectory(
NULL,
NULL, 0,
NULL, 0,
NULL),
"fpGetPrintProcessorDirectory returns TRUE!\n");
48 ok(!pp.fpGetPrintProcessorDirectory(
NULL,
L"invalid", 0,
NULL, 0,
NULL),
"fpGetPrintProcessorDirectory returns TRUE!\n");
59 pp.fpGetPrintProcessorDirectory(
NULL,
L"wIndows nt x86", 0,
NULL, 0,
NULL);
74 ok(!pp.fpGetPrintProcessorDirectory(
NULL,
L"wIndows nt x86", 1337,
NULL, 0, &cbNeeded),
"fpGetPrintProcessorDirectory returns TRUE!\n");
76 ok(cbNeeded > 0,
"cbNeeded is %lu!\n", cbNeeded);
85 pp.fpGetPrintProcessorDirectory(
NULL,
L"wIndows nt x86", 1,
NULL, cbNeeded, &cbTemp);
100 ok(!pGetPrintProcessorDirectoryW(
NULL,
L"wIndows nt x86", 1,
NULL, cbNeeded, &cbTemp),
"pGetPrintProcessorDirectoryW returns TRUE!\n");
102 ok(cbTemp == 0xDEADBEEF,
"cbTemp is %lu!\n", cbTemp);
108 ok(pp.fpGetPrintProcessorDirectory(
NULL,
L"wIndows nt x86", 1, (
PBYTE)pwszBuffer, cbNeeded, &cbTemp),
"fpGetPrintProcessorDirectory returns FALSE!\n");
109 ok(
wcslen(pwszBuffer) == cbNeeded /
sizeof(
WCHAR) - 1,
"fpGetPrintProcessorDirectory string is %Iu characters long, but %lu characters expected!\n",
wcslen(pwszBuffer), cbNeeded /
sizeof(
WCHAR) - 1);
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
BOOL(WINAPI * PGetPrintProcessorDirectoryW)(LPWSTR, LPWSTR, DWORD, LPBYTE, DWORD, LPDWORD)
PVOID GetSpoolssFunc(const char *FunctionName)
BOOL GetLocalsplFuncs(LPPRINTPROVIDOR pp)
#define EXCEPTION_EXECUTE_HANDLER
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
BOOL WINAPI DllFreeSplMem(PVOID pMem)
PVOID WINAPI DllAllocSplMem(DWORD dwBytes)
DWORD WINAPI GetLastError(void)
#define EXCEPTION_ACCESS_VIOLATION
#define ERROR_INVALID_USER_BUFFER
#define ERROR_INVALID_ENVIRONMENT