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.