59 ptr =
"drvCommConfigDialogA";
61 if (!pCommConfigDialogA)
return ptr;
63 ptr =
"drvCommConfigDialogW";
65 if (!pCommConfigDialogW)
return ptr;
67 ptr =
"drvGetDefaultCommConfigA";
69 if (!pGetDefaultCommConfigA)
return ptr;
71 ptr =
"drvGetDefaultCommConfigW";
73 if (!pGetDefaultCommConfigW)
return ptr;
91 for (
i = 1;
i < 5 ;
i++) {
96 res = pGetDefaultCommConfigA(bufferA, pCC, &
len);
107 res = pCommConfigDialogA(bufferA,
NULL, pCC);
114 res = pCommConfigDialogA(bufferA,
NULL, pCC);
116 "returned %u with %u for '%s' (expected ERROR_INSUFFICIENT_BUFFER)\n",
123 "returned %u with %u for '%s' (expected ERROR_INVALID_PARAMETER)\n",
133 "returned %u with %u (expected ERROR_INSUFFICIENT_BUFFER)\n",
149 "returned %u with %u (expected ERROR_INVALID_PARAMETER)\n",
166 for (
i = 1;
i < 5 ;
i++) {
172 res = pGetDefaultCommConfigW(bufferW, pCC, &
len);
182 res = pCommConfigDialogW(bufferW,
NULL, pCC);
189 res = pCommConfigDialogW(bufferW,
NULL, pCC);
191 "returned %u with %u for '%s' (expected ERROR_INSUFFICIENT_BUFFER)\n",
197 "returned %u with %u for '%s' (expected ERROR_INVALID_PARAMETER)\n",
207 "returned %u with %u (expected ERROR_INSUFFICIENT_BUFFER)\n",
223 "returned %u with %u (expected ERROR_INVALID_PARAMETER)\n",
251 "returned %u with %u and %u (expected "
255 for (
i = 0;
i < 11 ;
i++) {
260 res = pGetDefaultCommConfigA(bufferA, pCC, &
len);
263 "returned %u with %u and %u for %s (expected "
269 "returned %u with %u and %u for %s (expected ERROR_SUCCESS or "
278 res = pGetDefaultCommConfigA(bufferA, pCC, &
len);
280 "returned %u with %u and %u for %s (expected '0' with "
292 "returned %u with %u and %u for %s (expected ERROR_BADKEY)\n",
299 res = pGetDefaultCommConfigA(
NULL, pCC, &
len);
301 "returned %u with %u and %u for NULL (expected ERROR_INVALID_PARAMETER)\n",
309 "returned %u with %u and %u (expected ERROR_INVALID_PARAMETER)\n",
316 "returned %u with %u (expected ERROR_INVALID_PARAMETER)\n",
343 "returned %u with %u and %u (expected "
347 for (
i = 0;
i < 11 ;
i++) {
353 res = pGetDefaultCommConfigW(bufferW, pCC, &
len);
356 "returned %u with %u and %u for %s (expected "
362 "returned %u with %u and %u for %s (expected ERROR_SUCCESS or "
372 res = pGetDefaultCommConfigW(bufferW, pCC, &
len);
374 "returned %u with %u and %u for %s (expected '0' with "
385 "returned %u with %u and %u for %s (expected ERROR_BADKEY)\n",
392 res = pGetDefaultCommConfigW(
NULL, pCC, &
len);
394 "returned %u with %u and %u for NULL (expected ERROR_INVALID_PARAMETER)\n",
402 "returned %u with %u and %u (expected ERROR_INVALID_PARAMETER)\n",
409 "returned %u with %u (expected ERROR_INVALID_PARAMETER)\n",
static const CHAR str_colonA[]
static const WCHAR com1W[]
static void test_drvGetDefaultCommConfigA(void)
static void test_drvCommConfigDialogW(void)
static const CHAR emptyA[]
static void test_drvGetDefaultCommConfigW(void)
static const CHAR fmt_comA[]
static const WCHAR emptyW[]
static void test_drvCommConfigDialogA(void)
static const CHAR com1A[]
static const WCHAR str_colonW[]
static LPCSTR load_functions(void)
#define ERROR_INSUFFICIENT_BUFFER
#define ERROR_CALL_NOT_IMPLEMENTED
#define ERROR_INVALID_PARAMETER
#define GetProcAddress(x, y)
#define MultiByteToWideChar
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
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
LPWSTR WINAPI lstrcatW(LPWSTR lpString1, LPCWSTR lpString2)
LPSTR WINAPI lstrcatA(LPSTR lpString1, LPCSTR lpString2)
#define sprintf(buf, format,...)
struct _COMM_CONFIG COMMCONFIG
DWORD WINAPI GetLastError(void)