10#define WIN32_NO_STATUS
24 cbNeeded = 0xDEADBEEF;
27 ok(cbNeeded == 0xDEADBEEF,
"cbNeeded is %lu!\n", cbNeeded);
36 cbNeeded = 0xDEADBEEF;
39 ok(cbNeeded == 0,
"cbNeeded is %lu!\n", cbNeeded);
47 ok(cbNeeded > 0,
"cbNeeded is 0!\n");
54 ok(cbTemp == 0,
"cbTemp is %lu!\n", cbTemp);
61 ok(cbTemp == 0,
"cbTemp is %lu!\n", cbTemp);
70 ok(
strlen(pszBuffer) == cbNeeded /
sizeof(
WCHAR) - 1,
"GetPrintProcessorDirectoryA string is %Iu characters long, but %lu characters expected!\n",
strlen(pszBuffer), cbNeeded /
sizeof(
WCHAR) - 1);
82 cbNeeded = 0xDEADBEEF;
85 ok(cbNeeded == 0xDEADBEEF,
"cbNeeded is %lu!\n", cbNeeded);
94 cbNeeded = 0xDEADBEEF;
97 ok(cbNeeded == 0,
"cbNeeded is %lu!\n", cbNeeded);
104 ok(cbNeeded > 0,
"cbNeeded is 0!\n");
111 ok(cbTemp == 0,
"cbTemp is %lu!\n", cbTemp);
118 ok(cbTemp == 0,
"cbTemp is %lu!\n", cbTemp);
125 ok(
wcslen(pwszBuffer) == cbNeeded /
sizeof(
WCHAR) - 1,
"GetPrintProcessorDirectoryW string is %Iu characters long, but %lu characters expected!\n",
wcslen(pwszBuffer), cbNeeded /
sizeof(
WCHAR) - 1);
ACPI_SIZE strlen(const char *String)
#define ERROR_INSUFFICIENT_BUFFER
#define HeapFree(x, y, z)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
DWORD WINAPI GetLastError(void)
#define ERROR_INVALID_LEVEL
#define ERROR_INVALID_USER_BUFFER
#define ERROR_INVALID_ENVIRONMENT
#define RPC_X_NULL_REF_POINTER
WINBOOL WINAPI GetPrintProcessorDirectoryW(LPWSTR pName, LPWSTR pEnvironment, DWORD Level, LPBYTE pPrintProcessorInfo, DWORD cbBuf, LPDWORD pcbNeeded)
WINBOOL WINAPI GetPrintProcessorDirectoryA(LPSTR pName, LPSTR pEnvironment, DWORD Level, LPBYTE pPrintProcessorInfo, DWORD cbBuf, LPDWORD pcbNeeded)