24 Apr
2023
24 Apr
'23
9:08 a.m.
Rémi Bernon (@rbernon) commented about include/appnotify.h:
+ +#ifdef _CONTRACT_GEN +#define PSM_APP_API_HOST +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#if defined(PSM_APP_API_HOST) +#define APICONTRACT +#else +#define APICONTRACT DECLSPEC_IMPORT +#endif + +typedef void (__cdecl *PAPPSTATE_CHANGE_ROUTINE)(BOOLEAN quiesced, void *context); I think `__stdcall` was right but maybe you should use `CALLBACK` instead, which expands to the same thing but seems more appropriate for a callback.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/2672#note_30983