@@ -3,7 +3,7 @@ namespace winrt::impl
33{
44 template <> struct abi <Windows::Foundation::IUnknown>
55 {
6- struct __declspec (novtable) type
6+ struct WINRT_IMPL_NOVTABLE type
77 {
88 virtual int32_t __stdcall QueryInterface (guid const & id, void ** object) noexcept = 0;
99 virtual uint32_t __stdcall AddRef () noexcept = 0;
@@ -15,7 +15,7 @@ namespace winrt::impl
1515
1616 template <> struct abi <Windows::Foundation::IInspectable>
1717 {
18- struct __declspec (novtable) type : unknown_abi
18+ struct WINRT_IMPL_NOVTABLE type : unknown_abi
1919 {
2020 virtual int32_t __stdcall GetIids (uint32_t * count, guid** ids) noexcept = 0;
2121 virtual int32_t __stdcall GetRuntimeClassName (void ** name) noexcept = 0;
@@ -27,20 +27,20 @@ namespace winrt::impl
2727
2828 template <> struct abi <Windows::Foundation::IActivationFactory>
2929 {
30- struct __declspec (novtable) type : inspectable_abi
30+ struct WINRT_IMPL_NOVTABLE type : inspectable_abi
3131 {
3232 virtual int32_t __stdcall ActivateInstance (void ** instance) noexcept = 0;
3333 };
3434 };
3535
36- struct __declspec (novtable) IAgileObject : unknown_abi {};
36+ struct WINRT_IMPL_NOVTABLE IAgileObject : unknown_abi {};
3737
38- struct __declspec (novtable) IAgileReference : unknown_abi
38+ struct WINRT_IMPL_NOVTABLE IAgileReference : unknown_abi
3939 {
4040 virtual int32_t __stdcall Resolve (guid const & id, void ** object) noexcept = 0;
4141 };
4242
43- struct __declspec (novtable) IMarshal : unknown_abi
43+ struct WINRT_IMPL_NOVTABLE IMarshal : unknown_abi
4444 {
4545 virtual int32_t __stdcall GetUnmarshalClass (guid const & riid, void * pv, uint32_t dwDestContext, void * pvDestContext, uint32_t mshlflags, guid* pCid) noexcept = 0;
4646 virtual int32_t __stdcall GetMarshalSizeMax (guid const & riid, void * pv, uint32_t dwDestContext, void * pvDestContext, uint32_t mshlflags, uint32_t * pSize) noexcept = 0;
@@ -50,20 +50,20 @@ namespace winrt::impl
5050 virtual int32_t __stdcall DisconnectObject (uint32_t dwReserved) noexcept = 0;
5151 };
5252
53- struct __declspec (novtable) IGlobalInterfaceTable : unknown_abi
53+ struct WINRT_IMPL_NOVTABLE IGlobalInterfaceTable : unknown_abi
5454 {
5555 virtual int32_t __stdcall RegisterInterfaceInGlobal (void * object, guid const & iid, uint32_t * cookie) noexcept = 0;
5656 virtual int32_t __stdcall RevokeInterfaceFromGlobal (uint32_t cookie) noexcept = 0;
5757 virtual int32_t __stdcall GetInterfaceFromGlobal (uint32_t cookie, guid const & iid, void ** object) noexcept = 0;
5858 };
5959
60- struct __declspec (novtable) IStaticLifetime : inspectable_abi
60+ struct WINRT_IMPL_NOVTABLE IStaticLifetime : inspectable_abi
6161 {
6262 virtual int32_t __stdcall unused () noexcept = 0;
6363 virtual int32_t __stdcall GetCollection (void ** value) noexcept = 0;
6464 };
6565
66- struct __declspec (novtable) IStaticLifetimeCollection : inspectable_abi
66+ struct WINRT_IMPL_NOVTABLE IStaticLifetimeCollection : inspectable_abi
6767 {
6868 virtual int32_t __stdcall Lookup (void *, void **) noexcept = 0;
6969 virtual int32_t __stdcall unused () noexcept = 0;
@@ -74,23 +74,23 @@ namespace winrt::impl
7474 virtual int32_t __stdcall unused4 () noexcept = 0;
7575 };
7676
77- struct __declspec (novtable) IWeakReference : unknown_abi
77+ struct WINRT_IMPL_NOVTABLE IWeakReference : unknown_abi
7878 {
7979 virtual int32_t __stdcall Resolve (guid const & iid, void ** objectReference) noexcept = 0;
8080 };
8181
82- struct __declspec (novtable) IWeakReferenceSource : unknown_abi
82+ struct WINRT_IMPL_NOVTABLE IWeakReferenceSource : unknown_abi
8383 {
8484 virtual int32_t __stdcall GetWeakReference (IWeakReference** weakReference) noexcept = 0;
8585 };
8686
87- struct __declspec (novtable) IRestrictedErrorInfo : unknown_abi
87+ struct WINRT_IMPL_NOVTABLE IRestrictedErrorInfo : unknown_abi
8888 {
8989 virtual int32_t __stdcall GetErrorDetails (bstr* description, int32_t * error, bstr* restrictedDescription, bstr* capabilitySid) noexcept = 0;
9090 virtual int32_t __stdcall GetReference (bstr* reference) noexcept = 0;
9191 };
9292
93- struct __declspec (novtable) IErrorInfo : unknown_abi
93+ struct WINRT_IMPL_NOVTABLE IErrorInfo : unknown_abi
9494 {
9595 virtual int32_t __stdcall GetGUID (guid* value) noexcept = 0;
9696 virtual int32_t __stdcall GetSource (bstr* value) noexcept = 0;
@@ -99,7 +99,7 @@ namespace winrt::impl
9999 virtual int32_t __stdcall GetHelpContext (uint32_t * value) noexcept = 0;
100100 };
101101
102- struct __declspec (novtable) ILanguageExceptionErrorInfo2 : unknown_abi
102+ struct WINRT_IMPL_NOVTABLE ILanguageExceptionErrorInfo2 : unknown_abi
103103 {
104104 virtual int32_t __stdcall GetLanguageException (void ** exception) noexcept = 0;
105105 virtual int32_t __stdcall GetPreviousLanguageExceptionErrorInfo (ILanguageExceptionErrorInfo2** previous) noexcept = 0;
@@ -109,25 +109,25 @@ namespace winrt::impl
109109
110110 struct ICallbackWithNoReentrancyToApplicationSTA ;
111111
112- struct __declspec (novtable) IContextCallback : unknown_abi
112+ struct WINRT_IMPL_NOVTABLE IContextCallback : unknown_abi
113113 {
114114 virtual int32_t __stdcall ContextCallback (int32_t (__stdcall* callback)(com_callback_args*), com_callback_args* args, guid const & iid, int method, void* reserved) noexcept = 0;
115115 };
116116
117- struct __declspec (novtable) IServerSecurity : unknown_abi
117+ struct WINRT_IMPL_NOVTABLE IServerSecurity : unknown_abi
118118 {
119119 virtual int32_t __stdcall QueryBlanket (uint32_t *, uint32_t *, wchar_t **, uint32_t *, uint32_t *, void **, uint32_t *) noexcept = 0;
120120 virtual int32_t __stdcall ImpersonateClient () noexcept = 0;
121121 virtual int32_t __stdcall RevertToSelf () noexcept = 0;
122122 virtual int32_t __stdcall IsImpersonating () noexcept = 0;
123123 };
124124
125- struct __declspec (novtable) IBufferByteAccess : unknown_abi
125+ struct WINRT_IMPL_NOVTABLE IBufferByteAccess : unknown_abi
126126 {
127127 virtual int32_t __stdcall Buffer (uint8_t ** value) noexcept = 0;
128128 };
129129
130- struct __declspec (novtable) IMemoryBufferByteAccess : unknown_abi
130+ struct WINRT_IMPL_NOVTABLE IMemoryBufferByteAccess : unknown_abi
131131 {
132132 virtual int32_t __stdcall GetBuffer (uint8_t ** value, uint32_t * capacity) noexcept = 0;
133133 };
0 commit comments