[SHELL32] Implement SHSimulateDropOnClsid (#8223)

This commit is contained in:
Whindmar Saksit 2025-07-05 18:18:51 +02:00 committed by GitHub
parent 2c0782d1e0
commit 375fca5058
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 112 additions and 36 deletions

View file

@ -652,6 +652,24 @@ public:
return m_pUnkSite ? m_pUnkSite->QueryInterface(riid, ppvSite) : E_FAIL;
}
};
#if defined(__WINE_SHLWAPI_H) && !defined(NO_SHLWAPI)
struct CScopedSetObjectWithSite
{
IUnknown *m_pObj;
explicit CScopedSetObjectWithSite(IUnknown *pObj, IUnknown *pSite) : m_pObj(pObj)
{
if (pSite)
IUnknown_SetSite(pObj, pSite);
else
m_pObj = NULL;
}
~CScopedSetObjectWithSite()
{
IUnknown_SetSite(m_pObj, NULL);
}
};
#endif
#endif /* __cplusplus */
#define S_LESSTHAN 0xffff