ReactOS 0.4.15-dev-7842-g558ab78
nostartup.c File Reference
#include "ws2_32.h"
Include dependency graph for nostartup.c:

Go to the source code of this file.

Functions

 START_TEST (nostartup)
 

Function Documentation

◆ START_TEST()

START_TEST ( nostartup  )

Definition at line 11 of file nostartup.c.

12{
13 int Error = 0;
14 ok(WSASocketA(0, 0, 0, NULL, 0, 0) == INVALID_SOCKET, "WSASocketA should have failed\n");
15
16 WSASetLastError(0xdeadbeef);
20
21 WSASetLastError(0xdeadbeef);
25
26 WSASetLastError(0xdeadbeef);
30
31 ok_dec(inet_addr("127.0.0.1"), 0x100007f);
32}
#define ok(value,...)
Definition: atltest.h:57
#define ok_dec(expression, result)
Definition: atltest.h:101
BOOL Error
Definition: chkdsk.c:66
#define NULL
Definition: types.h:112
VOID WSAAPI WSASetLastError(IN INT iError)
Definition: dllmain.c:123
PSERVENT WSAAPI getservbyport(IN int port, IN const char FAR *proto)
Definition: getxbyxx.c:431
PHOSTENT WSAAPI gethostbyname(IN const char FAR *name)
Definition: getxbyxx.c:221
PSERVENT WSAAPI getservbyname(IN const char FAR *name, IN const char FAR *proto)
Definition: getxbyxx.c:500
#define inet_addr(cp)
Definition: inet.h:98
SOCKET WSAAPI WSASocketA(IN INT af, IN INT type, IN INT protocol, IN LPWSAPROTOCOL_INFOA lpProtocolInfo, IN GROUP g, IN DWORD dwFlags)
Definition: socklife.c:444
#define WSANOTINITIALISED
Definition: winerror.h:1987
int PASCAL FAR WSAGetLastError(void)
Definition: dllmain.c:112
#define INVALID_SOCKET
Definition: winsock.h:332