the win7 sdk version defines AVRT_DECLSPEC which supposedly aliases to DECLSPEC_IMPORT, but this uses _AVRT_ symbol which is used as ifdef guard too, so this did not work.. ---