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