Should be possible to declare the pointer type as
`typedef ULONG_PTR (__cdecl * CDECL_FUNC)( ... );`
therefore avoiding all the different pointer types (that's what cdecl is for anyway).
Not tested so take this with a grain of salt.