ReactOS 0.4.15-dev-8422-g6219a1a
qos.c File Reference
#include <ws2_32.h>
#include <debug.h>
Include dependency graph for qos.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

BOOL WSAAPI WSAGetQOSByName (IN SOCKET s, IN OUT LPWSABUF lpQOSName, OUT LPQOS lpQOS)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file qos.c.

Function Documentation

◆ WSAGetQOSByName()

BOOL WSAAPI WSAGetQOSByName ( IN SOCKET  s,
IN OUT LPWSABUF  lpQOSName,
OUT LPQOS  lpQOS 
)

Definition at line 23 of file qos.c.

26{
27 PWSSOCKET Socket;
28 INT Status;
30 DPRINT("WSAGetQOSByName: %lx, %p\n", s, lpQOSName);
31
32 /* Check for WSAStartup */
34 {
35 /* Get the Socket Context */
36 if ((Socket = WsSockGetSocket(s)))
37 {
38 /* Make the call */
40 lpQOSName,
41 lpQOS,
42 &ErrorCode);
43
44 /* Deference the Socket Context */
45 WsSockDereference(Socket);
46
47 /* Return Provider Value */
48 if (Status == ERROR_SUCCESS) return Status;
49
50 /* If everything seemed fine, then the WSP call failed itself */
52 }
53 else
54 {
55 /* No Socket Context Found */
57 }
58 }
59
60 /* Return with an Error */
62 return FALSE;
63}
#define NO_ERROR
Definition: dderror.h:5
#define ERROR_SUCCESS
Definition: deptool.c:10
#define FALSE
Definition: types.h:117
#define SetLastError(x)
Definition: compat.h:752
Status
Definition: gdiplustypes.h:25
GLdouble s
Definition: gl.h:2039
_In_ NDIS_ERROR_CODE ErrorCode
Definition: ndis.h:4436
#define DPRINT
Definition: sndvol32.h:73
WSPPROC_TABLE Service
Definition: ws2_32p.h:80
LPWSPGETQOSBYNAME lpWSPGetQOSByName
Definition: ws2spi.h:476
PTPROVIDER Provider
Definition: ws2_32p.h:199
int32_t INT
Definition: typedefs.h:58
#define WSASYSCALLFAILURE
Definition: winerror.h:1994
#define WSAENOTSOCK
Definition: winerror.h:1951
FORCEINLINE DWORD WsQuickProlog(VOID)
Definition: ws2_32p.h:892
VOID WSAAPI WsSockDereference(IN PWSSOCKET Socket)
Definition: dsocket.c:205
PWSSOCKET WSAAPI WsSockGetSocket(IN SOCKET Handle)
Definition: dsocket.c:140