42{
52
54 {
55 skip(
"Failed to init WS2\n");
56 return;
57 }
58
62
65 {
66 skip(
"Cannot create socket\n");
68 }
69
74
76 {
77 skip(
"Cannot bind socket\n");
78 goto quit2;
79 }
80
82 {
83 ok(UdpTableOwnerMod->dwNumEntries > 0,
"No UDP connections?!\n");
84
86 for (
i = 0;
i < UdpTableOwnerMod->dwNumEntries; ++
i)
87 {
88 if (UdpTableOwnerMod->table[
i].dwLocalAddr == 0 &&
89 UdpTableOwnerMod->table[
i].dwLocalPort ==
htons(9876))
90 {
92 break;
93 }
94 }
95
97 {
98 skip(
"Our socket wasn't found!\n");
99 }
100 else
101 {
104
105 ok(UdpTableOwnerMod->table[
i].dwOwningPid == Pid,
"Invalid owner\n");
106
107 ok(UdpTableOwnerMod->table[
i].liCreateTimestamp.QuadPart >= CreationTime.
QuadPart,
"Invalid time\n");
108 ok(UdpTableOwnerMod->table[
i].liCreateTimestamp.QuadPart <= CreationTime.
QuadPart + 60000000000LL,
"Invalid time\n");
109
111 {
113 ok(BasicInfo !=
NULL,
"HeapAlloc failed\n");
114
116 {
119
121 {
124
127 }
128 else
129 {
130 skip(
"GetModuleFileNameW failed\n");
131 }
132 }
133 else
134 {
135 skip(
"GetOwnerModuleFromTcpEntry failed\n");
136 }
137 }
138 else
139 {
140 skip(
"GetOwnerModuleFromTcpEntry failed\n");
141 }
142 }
143
145 }
146 else
147 {
148 skip(
"GetExtendedUdpTableWithAlloc failure\n");
149 }
150
151quit2:
155}
static DWORD GetExtendedUdpTableWithAlloc(PVOID *UdpTable, BOOL Order, DWORD Family, UDP_TABLE_CLASS Class)
void quit(int argc, const char *argv[])
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
VOID WINAPI GetSystemTimeAsFileTime(OUT PFILETIME lpFileTime)
INT WINAPI WSAStartup(IN WORD wVersionRequested, OUT LPWSADATA lpWSAData)
struct _FileName FileName
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
DWORD WINAPI GetOwnerModuleFromUdpEntry(PMIB_UDPROW_OWNER_MODULE pUdpEntry, TCPIP_OWNER_MODULE_INFO_CLASS Class, PVOID Buffer, PDWORD pdwSize)
@ TCPIP_OWNER_MODULE_INFO_BASIC
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
INT WSAAPI bind(IN SOCKET s, IN CONST struct sockaddr *name, IN INT namelen)
SOCKET WSAAPI socket(IN INT af, IN INT type, IN INT protocol)
static rfbScreenInfoPtr server
DWORD WINAPI GetCurrentProcessId(void)
int PASCAL FAR WSACleanup(void)