On Fri May 29 16:50:51 2026 +0000, Vibhav Pant wrote:
Fixed, thanks. I think method numbers lower than 3 likely have some kind of an `IUnknown` fastpath in native, at least according to Raymond Chen: https://devblogs.microsoft.com/oldnewthing/20191128-00/?p=103157
The interface must not be `IUnknown`, because the COM marshaler treats `IUnknown` as a special case.¹ Similarly, the method index must not be less than 3, because the first three methods on every interface come from `IUnknown`.² I've seen the blog while implementing it (it's where the iMethod=5 suggestion comes from). I was not able to find any difference in ContextCallback behavior when iMethod==2 (and the application I was implementing it for uses iMethod=2).
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/11018#note_141732