2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS WinSock 2 API
6 * PROGRAMMER: Alex Ionescu (alex@relsoft.net)
9 /* INCLUDES ******************************************************************/
16 /* FUNCTIONS *****************************************************************/
23 WSAGetQOSByName(IN SOCKET s
,
24 IN OUT LPWSABUF lpQOSName
,
30 DPRINT("WSAGetQOSByName: %lx, %p\n", s
, lpQOSName
);
32 /* Check for WSAStartup */
33 if ((ErrorCode
= WsQuickProlog()) == ERROR_SUCCESS
)
35 /* Get the Socket Context */
36 if ((Socket
= WsSockGetSocket(s
)))
39 Status
= Socket
->Provider
->Service
.lpWSPGetQOSByName(s
,
44 /* Deference the Socket Context */
45 WsSockDereference(Socket
);
47 /* Return Provider Value */
48 if (Status
== ERROR_SUCCESS
) return Status
;
50 /* If everything seemed fine, then the WSP call failed itself */
51 if (ErrorCode
== NO_ERROR
) ErrorCode
= WSASYSCALLFAILURE
;
55 /* No Socket Context Found */
56 ErrorCode
= WSAENOTSOCK
;
60 /* Return with an Error */
61 SetLastError(ErrorCode
);