Use a typelib. You can use that attribute and when in a typelib, an API is placed in the IAT, rather than called dynamically. Only a noticeable difference on the first call, but you're chasing microseconds and a few bytes anyway.