// If it is a pointer to the pointer lpolecontainer lpContainer; hResult hr = m_pclientSite-> getContainer;
// If the window handle is taken HWND m_hWndParent; IOleInPlaceSite * pOleInPlaceSite = NULL; if (NOERROR == m_pClientSite-> QueryInterface (IID_IOleInPlaceSite, (LPVOID *) & pOleInPlaceSite)) {pOleInPlaceSite-> GetWindow ((HWND *) & m_hWndParent); pOleInPlaceSite- > Release ();