Obtains the IUnknown interface pointer on the document object that owns this view.
HRESULT GetDocument(
IUnknown **ppunk // On return, pointer to the IUnknown pointer of
// the document object that owns this view
);
The caller is responsible for incrementing the reference count on the interface pointer obtained by this method. The caller must call Release on this pointer when it is no longer needed.
Because a view object must always be contained or aggregated in a document object, this method will always succeed. Before returning, this method should call AddRef on the pointer stored in *ppunk.
Windows NT: Use version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in docobj.h.
IUnknown