Platform SDK: Quality of Service |
The WSCRemoveQOSTemplate function removes a QOS template. Note that the caller of this function must have administrative rights.
BOOL WSCRemoveQOSTemplate ( const LPGUID lpProviderId, LPWSABUF lpQOSName );
If WSCRemoveQOSTemplate succeeds, the return value is TRUE. If the function fails, the return value is FALSE. For extended error information, call WSAGetLastError.
The WSCRemoveQOSTemplate function deletes a QOS template previously installed with WSCInstallQOSTemplate. If lpProviderId is NULL, WSCRemoveQOSTemplate attempts to find and delete a QOS template from the global list of QOS names. Otherwise, WSCRemoveQOSTemplate attempts to find and delete a QOS template specific to the service provider associated with lpProviderId. You cannot delete the base set of QOS names included with Windows Sockets 2. The WSAEINVAL error code will be returned if such an attempt is made.
Error Code | Meaning |
---|---|
WSAEINVAL | The specified QOS template name is invalid. |
WSA_NODATA | The specified QOS template could not be found. |
WSEFAULT | One or more of the parameters is not a valid part of the user address space. |
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 98.
Header: Declared in Qosname.h.
Library: Use Qosname.lib.