WSCRemoveQOSTemplate function (ws2spi.h)

[ This function is not supported in Windows Vista and subsequent versions of the operating system.]

The WSCRemoveQOSTemplate function removes the specified QoS template from the system configuration database.

Syntax

int WSCRemoveQOSTemplate(
  [in] const LPGUID Guid,
  [in] LPWSABUF     QosName
);

Parameters

[in] Guid

The globally unique identifier (GUID) for the quality of service (QoS) provider.

[in] QosName

A pointer to a WSABUF structure that contains the QoS name of the template to remove.

Return value

If WSCRemoveQOSTemplate function succeeds, the return value is zero. Otherwise, it returns one of the following error codes.

Error code Meaning
WSAEFAULT
One or more of the arguments is not in a valid part of the user address space.
WSAEINVAL
One or more of the arguments are invalid. This error is returned if the if QoS provider specified in the Guid parameter is invalid or the QoS template name specified in the QosName parameter is invalid.
WSAENOBUFS
Memory cannot be allocated for buffers.
WSANO_RECOVERY
A nonrecoverable error occurred. This error is returned under several conditions including the following: the provider is already installed, the user lacks the administrative privileges required to write to the Winsock registry, or a failure occurred when creating or installing a catalog entry.
WSASYSCALLFAILURE
A system call that should never fail has failed.
WSA_NOT_ENOUGH_MEMORY
Insufficient memory was available. This error is returned when there is insufficient memory to allocate a new catalog entry.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header ws2spi.h

See also

WSCInstallQOSTemplate