Unfortunately not, it seems __msreturn has to be between the return type and function name (I'm testing on C++ Builder XE4). On 16/10/2014 01:31, Argyrios Kyrtzidis wrote: > > To clarify, this can’t be folded with CINDEX_LINKAGE, it won’t > compile if __msreturn is added at the beginning ? >