#include <apitest.h>
#include <windef.h>
#include <winbase.h>
#include <wingdi.h>
#include <winspool.h>
Go to the source code of this file.
◆ WIN32_NO_STATUS
◆ START_TEST() [1/2]
Definition at line 16 of file GetPrintProcessorDirectory.c.
17{
21
22
24 cbNeeded = 0xDEADBEEF;
27 ok(cbNeeded == 0xDEADBEEF,
"cbNeeded is %lu!\n", cbNeeded);
28
29
33
34
36 cbNeeded = 0xDEADBEEF;
39 ok(cbNeeded == 0,
"cbNeeded is %lu!\n", cbNeeded);
40
41
42
44 cbNeeded = 0;
47 ok(cbNeeded > 0,
"cbNeeded is 0!\n");
48
49
51 cbTemp = 0xDEADBEEF;
54 ok(cbTemp == 0,
"cbTemp is %lu!\n", cbTemp);
55
56
58 cbTemp = 0xDEADBEEF;
61 ok(cbTemp == 0,
"cbTemp is %lu!\n", cbTemp);
62
63
68
69
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);
72}
ACPI_SIZE strlen(const char *String)
#define ERROR_INSUFFICIENT_BUFFER
#define HeapFree(x, y, z)
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 GetPrintProcessorDirectoryA(LPSTR pName, LPSTR pEnvironment, DWORD Level, LPBYTE pPrintProcessorInfo, DWORD cbBuf, LPDWORD pcbNeeded)
◆ START_TEST() [2/2]
Definition at line 74 of file GetPrintProcessorDirectory.c.
75{
79
80
82 cbNeeded = 0xDEADBEEF;
85 ok(cbNeeded == 0xDEADBEEF,
"cbNeeded is %lu!\n", cbNeeded);
86
87
91
92
94 cbNeeded = 0xDEADBEEF;
97 ok(cbNeeded == 0,
"cbNeeded is %lu!\n", cbNeeded);
98
99
101 cbNeeded = 0;
104 ok(cbNeeded > 0,
"cbNeeded is 0!\n");
105
106
108 cbTemp = 0xDEADBEEF;
111 ok(cbTemp == 0,
"cbTemp is %lu!\n", cbTemp);
112
113
115 cbTemp = 0xDEADBEEF;
118 ok(cbTemp == 0,
"cbTemp is %lu!\n", cbTemp);
119
120
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);
127}
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
WINBOOL WINAPI GetPrintProcessorDirectoryW(LPWSTR pName, LPWSTR pEnvironment, DWORD Level, LPBYTE pPrintProcessorInfo, DWORD cbBuf, LPDWORD pcbNeeded)