|
WSAGetQOSByName
The Windows Sockets WSAGetQOSByName function initializes a QOS structure based on a named template.
BOOL WSAGetQOSByName(
SOCKET s,
|
| LPWSABUF lpQOSName,
|
| LPQOS lpQOS
|
| );
|
|
Parameters
s
[in] A descriptor identifying a socket.
lpQOSName
[in] Specifies the QOS template name.
lpQOS
[out] A pointer to the QOS structure to be filled.
Remarks
Applications may use this function to initalize a QOS structure to a set of
known values appropriate for a particular service class or media type. These
values are stored in a template which is referenced by a well-known name.
Return Values
If the function succeeds, the return value is TRUE. If the function fails, the
return value is FALSE. To get extended error information, call WSAGetLastError.
Error Codes
WSANOTINITIALISED
| A successful WSAStartup must occur before using this function.
| WSAENETDOWN
| The network subsystem has failed.
| WSAENOTSOCK
| The descriptor is not a socket.
| WSAEFAULT
| The lpQOS argument is not a valid part of the user address space, or the buffer length
for lpQOS is too small.
| WSA_INVAL
| The specified QOS template name is invalid.
|
See Also
getsockopt, WSAAccept, WSAConnect
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|