I tried this
typedef void (* __stdcall MessageHandler)(const Task*);
This compiles but gives me this warning (VS2003):
As MSDN says, the correct way to write this is
typedef void (__stdcall *MessageHandler)(const Task*);