Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Call this method to set the site of the CComPtrBase object to the IUnknown of the parent object.
HRESULT SetSite(
IUnknown* punkParent
) throw( );
Parameters
- punkParent
A pointer to the IUnknown interface of the parent.
Return Value
Returns S_OK on success, or an error HRESULT on failure.
Remarks
This method calls AtlSetChildSite.
Requirements
Header: atlcomcli.h