mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 04:43:47 +00:00
[MSUTB][SDK] Use QISearch for QueryInterface (#6631)
Simplify code and reduce binary size. JIRA issue: CORE-19363 - Use shlwapi!QISearch for QueryInterface implementation. - Add delay link to shlwapi. - Define QITABENT macro in <shlwapi.h>.
This commit is contained in:
parent
1fbf09f531
commit
1af0dbe36e
3 changed files with 28 additions and 45 deletions
|
@ -2090,6 +2090,9 @@ QISearch(
|
|||
#define OFFSETOFCLASS(base, derived) \
|
||||
((DWORD)(DWORD_PTR)(static_cast<base*>((derived*)8))-8)
|
||||
|
||||
#define QITABENTMULTI(Cthis, Ifoo, Iimpl) { &IID_##Ifoo, OFFSETOFCLASS(Iimpl, Cthis) }
|
||||
#define QITABENT(Cthis, Ifoo) QITABENTMULTI(Cthis, Ifoo, Ifoo)
|
||||
|
||||
#include <poppack.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue