Extern, how to import a function and rename it ?

BlitzMax Forums/BlitzMax Programming/Extern, how to import a function and rename it ?

the win32.i file says "GetModuleHandleA@4" without the _ in front of it ...
perhaps different mingw / gcc versions behavior?

*note: I replaced the original BM pub.win32 with birdies from the sample because it better covers the winapi*