Zdarzenia
19 lis, 23 - 21 lis, 23
Uzyskaj przewagę konkurencyjną, której potrzebujesz dzięki zaawansowanym rozwiązaniom sztucznej inteligencji i chmury, uczestnicząc w konferencji Microsoft Ignite online.
Zarejestruj się terazTa przeglądarka nie jest już obsługiwana.
Przejdź na przeglądarkę Microsoft Edge, aby korzystać z najnowszych funkcji, aktualizacji zabezpieczeń i pomocy technicznej.
Enables a container to pass an object a pointer to the interface for its site.
HRESULT SetSite(
[in] IUnknown *pUnkSite
);
[in] pUnkSite
A pointer to the IUnknown interface pointer of the site managing this object. If NULL, the object should call Release on any existing site at which point the object no longer knows its site.
This method returns S_OK on success.
The object should hold onto this pointer, calling IUnknown::AddRef in doing so. If the object already has a site, it should call that existing site's IUnknown::Release, save the new site pointer, and call the new site's IUnknown::AddRef.
E_NOTIMPL is not allowed. Without implementation of the SetSite method, the IObjectWithSite interface is unnecessary.
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | ocidl.h |
Zdarzenia
19 lis, 23 - 21 lis, 23
Uzyskaj przewagę konkurencyjną, której potrzebujesz dzięki zaawansowanym rozwiązaniom sztucznej inteligencji i chmury, uczestnicząc w konferencji Microsoft Ignite online.
Zarejestruj się teraz