Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IUnknown_SetSite function

Sets the specified object's site by calling its IObjectWithSite::SetSite method.

Syntax


HRESULT IUnknown_SetSite(
  _In_  IUnknown *punk,
  _In_  IUnknown *punkSite
);

Parameters

punk [in]

Type: IUnknown*

A pointer to the IUnknown interface of the object whose site is to be changed.

punkSite [in]

Type: IUnknown*

A pointer to the IUnknown interface of the new site.

Return value

Type: HRESULT

Returns S_OK if the site was successfully set, or a COM error code otherwise.

Remarks

This function calls the specified object's IUnknown::QueryInterface method to obtain a pointer to the object's IObjectWithSite interface. If successful, the function calls IObjectWithSite::SetSite to set or change the site.

Requirements

Minimum supported client

Windows 2000 Professional, Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server, Windows Server 2003 [desktop apps only]

Header

Shlwapi.h

DLL

Shlwapi.dll (version 5.0 or later)

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.