Maybe of interest? The include file {$i ascdef.inc} is used from unit Windows with {$calling stdcall} in effect. Most functions in it therefore don't have "stdcall". But some do. Is that known/wanted/...? Similar in some other includes.