10#define WIN32_NO_STATUS
20#include "../localspl_apitest.h"
41 memset(TempBuffer, 0xDE,
sizeof(TempBuffer));
42 memset(ZeroBuffer, 0,
sizeof(ZeroBuffer));
43 cbNeeded = 0xDEADBEEF;
44 dwReturned = 0xDEADBEEF;
46 ok(pp.fpEnumPrinters(0,
NULL, 1, TempBuffer,
sizeof(TempBuffer), &cbNeeded, &dwReturned),
"fpEnumPrinters returns FALSE\n");
48 ok(
memcmp(TempBuffer, ZeroBuffer,
sizeof(TempBuffer)) != 0,
"TempBuffer has been zeroed!\n");
49 ok(cbNeeded == 0,
"cbNeeded is %lu!\n", cbNeeded);
50 ok(dwReturned == 0,
"dwReturned is %lu!\n", dwReturned);
53 cbNeeded = 0xDEADBEEF;
54 dwReturned = 0xDEADBEEF;
58 ok(cbNeeded > 0,
"cbNeeded is 0!\n");
59 ok(dwReturned == 0,
"dwReturned is %lu!\n", dwReturned);
63 ok(pp.fpEnumPrinters(
PRINTER_ENUM_NAME,
NULL, 1, (
PBYTE)pPrinterInfo1, cbNeeded, &cbNeeded, &dwReturned),
"fpEnumPrinters returns FALSE\n");
65 ok(cbNeeded > 0,
"cbNeeded is 0!\n");
66 ok(dwReturned == 1,
"dwReturned is %lu!\n", dwReturned);
69 ok(
wcscmp(pPrinterInfo1->
pName,
L"Windows NT Local Print Providor") == 0,
"pPrinterInfo1->pName is \"%S\"!\n", pPrinterInfo1->
pName);
71 ok(
wcscmp(pPrinterInfo1->
pComment,
L"Locally connected Printers") == 0,
"pPrinterInfo1->pComment is \"%S\"!\n", pPrinterInfo1->
pComment);
75 cbNeeded = 0xDEADBEEF;
76 dwReturned = 0xDEADBEEF;
80 ok(cbNeeded == 0,
"cbNeeded is %lu!\n", cbNeeded);
81 ok(dwReturned == 0,
"dwReturned is %lu!\n", dwReturned);
85 for (
i = 0;
i <= 7;
i++)
103 cbNeeded = 0xDEADBEEF;
104 dwReturned = 0xDEADBEEF;
108 ok(cbNeeded > 0,
"cbNeeded is 0 for Level %lu!\n",
i);
109 ok(dwReturned == 0,
"dwReturned is %lu for Level %lu!\n", dwReturned,
i);
127 ok(cbNeeded == cbTemp,
"cbNeeded is %lu, cbTemp is %lu for Level %lu!\n", cbNeeded, cbTemp,
i);
133 ok(pp.fpEnumPrinters(
PRINTER_ENUM_LOCAL,
NULL,
i, pMem, cbNeeded, &cbTemp, &dwReturned),
"fpEnumPrinters returns FALSE for Level %lu!\n",
i);
145 for (
i = 0;
i < 10;
i++)
148 ok(pp.fpEnumPrinters(0,
NULL,
i,
NULL, 0, &cbNeeded, &dwReturned),
"fpEnumPrinters returns FALSE for Level %lu!\n",
i);
150 ok(cbNeeded == 0,
"cbNeeded is %lu for Level %lu!\n", cbNeeded,
i);
151 ok(dwReturned == 0,
"dwReturned is %lu for Level %lu!\n", dwReturned,
i);
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define ERROR_INSUFFICIENT_BUFFER
BOOL GetLocalsplFuncs(LPPRINTPROVIDOR pp)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define EXCEPTION_EXECUTE_HANDLER
#define _SEH2_GetExceptionCode()
#define _SEH2_EXCEPT(...)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
BOOL WINAPI DllFreeSplMem(PVOID pMem)
PVOID WINAPI DllAllocSplMem(DWORD dwBytes)
DWORD WINAPI GetLastError(void)
#define EXCEPTION_ACCESS_VIOLATION
#define PRINTER_ENUM_LOCAL
#define PRINTER_ENUM_NAME