IOleDocumentView::GetInPlaceSite method
Retrieves the view site associated with this view object.
Syntax
HRESULT GetInPlaceSite( [out] IOleInPlaceSite **ppIPSite );
Parameters
- ppIPSite [out]
-
A pointer to an IOleInPlaceSite pointer variable that receives the interface pointer to the document's view site.
Return value
This method returns S_OK on success. Other possible values include:
| Return code | Description |
|---|---|
|
The operation failed. |
Remarks
IOleDocumentView::GetInPlaceSite obtains the most recent IOleInPlaceSite pointer passed by IOleDocumentView::SetInPlaceSite, or NULL if IOleDocumentView::SetInPlaceSite has not yet been called. If this pointer is not NULL, this method will call IUnknown::AddRef on the pointer. The caller is responsible for releasing it. A document view must implement this method completely; E_NOTIMPL is not an acceptable return value.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
IDL |
|
|
IID |
IID_IOleDocumentView is defined as b722bcc6-4e68-101b-a2bc-00aa00404770 |
See also