* PROJECT: ReactOS api tests
* LICENSE: GPLv2+ - See COPYING in the top level directory
* PURPOSE: Test for getaddrinfo
- * PROGRAMMER: Thomas Faber <thfabba@gmx.de>
+ * PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
*/
+#include <apitest.h>
+
#define WIN32_NO_STATUS
-#include <winsock2.h>
+#define _INC_WINDOWS
+#define COM_NO_WINDOWS_H
+#include <stdarg.h>
+#include <windef.h>
+#include <winbase.h>
#include <ws2tcpip.h>
-#include <wine/test.h>
-#include <pseh/pseh2.h>
#include <ndk/umtypes.h>
-#define StartSeh() ExceptionStatus = STATUS_SUCCESS; _SEH2_TRY {
-#define EndSeh(ExpectedStatus) } _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) { ExceptionStatus = _SEH2_GetExceptionCode(); } _SEH2_END; ok(ExceptionStatus == ExpectedStatus, "Exception %lx, expected %lx\n", ExceptionStatus, ExpectedStatus)
-
#define ok_addrinfo(ai, flags, family, socktype, protocol, addrlen) do \
{ \
ok_hex((ai)->ai_flags, flags); \
ok_dec(((SOCKADDR_IN *)(sockaddr))->sin_zero[_i], 0); \
} while (0)
-#define InvalidPointer ((PVOID)0x5555555555555555ULL)
-
CHAR LocalAddress[sizeof("255.255.255.255")];
static
int Error;
PADDRINFOA AddrInfo;
ADDRINFOA Hints;
- NTSTATUS ExceptionStatus;
struct
{
PCSTR NodeName;
int Error;
PADDRINFOA AddrInfo;
ADDRINFOA Hints;
- NTSTATUS ExceptionStatus;
struct
{
PCSTR ServiceName;
int Error;
PADDRINFOA AddrInfo;
ADDRINFOA Hints;
- NTSTATUS ExceptionStatus;
CHAR LocalHostName[128];
struct hostent *Hostent;