mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 05:53:05 +00:00
[SHELL32] Implement SHSimulateDropOnClsid (#8223)
This commit is contained in:
parent
2c0782d1e0
commit
375fca5058
7 changed files with 112 additions and 36 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue