How to declare an __stdcall function pointer June 8, 2023 by Tarik As MSDN says, the correct way to write this is typedef void (__stdcall *MessageHandler)(const Task*);