IProfferService::ProfferService method

Makes a service available to other objects on the same host.

Syntax


HRESULT ProfferService(
  [in]  REFGUID          rguidService,
  [in]  IServiceProvider *psp,
  [out] DWORD            *pdwCookie
);

Parameters

rguidService [in]

Type: REFGUID

A value of type GUID that specifies the service being offered.

psp [in]

Type: IServiceProvider*

A pointer to an IServiceProvider interface.

pdwCookie [out]

Type: DWORD*

A pointer to a DWORD that receives an implementation-defined value used for identification purposes. The calling application must keep track of this value for possible use in IProfferService::RevokeService.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shobjidl.h

See also

IProfferService
IProfferService::RevokeService
IServiceProvider

 

 

Show: