ICoCreatedLocally::LocalInit

The helper object, created by ICoCreateLocally::CoCreateLocally implements ICoCreatedLocally::LocalInit. Clients who use ICoCreateLocally::CoCreateLocally need to implement this method. It allows clients to pass information about the server they are running under.

HRESULT LocalInit(
IUnknown* punkLocalObject,REFIIDriidParam,IUnknown* punkParam,VARIANTvarParam);

Parameters

  • punkLocalObject
    [in] A pointer to the server object.
  • riidParam
    [in] An optional interface parameter that is passed to the new helper object. This parameter specifies an interface identifier.
  • punkParam
    [in] An optional interface parameter that is passed to the new helper object. This parameter specifies the interface pointer.
  • varParam
    [in] An optional interface parameter that is passed to the new helper object.

Return Values

If successful, returns S_OK. If not successful, returns a standard COM error code.

Requirements

**  Windows NT/2000/XP/Server 2003:** Included in Windows XP and Windows Server 2003.
**  Windows 95/98/Me:** Unsupported.
**  Redistributable:** Requires Active Accessibility 2.0 RDK on Windows NT 4.0 SP6 and Windows 98.
**  Header:** Declared in Msaatext.h.