[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:
Katayama Hirofumi MZ 2024-03-17 11:55:19 +09:00 committed by GitHub
parent 1fbf09f531
commit 1af0dbe36e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 28 additions and 45 deletions

View file

@ -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