IProfferService.RevokeService Method (UInt32)
Visual Studio 2015
Prevents third-party clients from accessing a specified service.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- dwCookie
-
Type:
System.UInt32
[in] Identifier of the specified service that is returned by a call to ProfferService.
Return Value
Type: System.Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From proffserv.idl:
HRESULT IProfferService::RevokeService(
[in] DWORD dwCookie
);
This method is rarely used. Normally, once a VSPackage proffers its services, they remain available until Visual Studio is shut down. That is, the environment handles revoking services automatically.
If a service is not currently provided at the time an attempt is made to revoke it, the RevokeService method will fail and return S_FALSE.
Show: