Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
WSCRemoveQOSTemplate
Collapse the table of content
Expand the table of content

WSCRemoveQOSTemplate function

[ 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 WSPAPI WSCRemoveQOSTemplate(
  _In_ const LPGUID   Guid,
  _In_       LPWSABUF QosName
);

Parameters

Guid [in]

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

QosName [in]

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 codeMeaning
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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

End of client support

Windows XP

End of server support

Windows Server 2003

Header

Ws2spi.h

See also

WSCInstallQOSTemplate

 

 

Community Additions

ADD
Show:
© 2015 Microsoft