Patrik Stridvall ps@leissner.se writes:
So to the details of the marshalling API (the unmarshalling API can wait).
- Where should we put them? Suggestion: include/wine/messsage.h
No, it should be private to the dlls that really need it. We shouldn't add a global Wine-specific interface, we already have too many of that.
And please don't go around converting all SendMessage calls to some marshalling API; this should be reserved to the cases where there is really a need. This is why I suggested to add the inline function in the C file directly: if there is a file where there are a lot of WM_COMMANDs with ugly casts, you can add an inline function there. But if there is only one or two, or calls that don't need ugly typecasts (most of them don't), then you definitely don't want to use the inline, just do a normal SendMessage.