delayed
Syntax
Delays the loading of an external library until the routine is called for the first time.
function GetSomething: Integer; external 'somelibrary.dll' delayed;
Notes
  • Cannot test for existence of an API call only a whole DLL
Further reading
Bob Swartz describes all the ways a DLL can be loaded.
http://www.drbob42.com/examines/examinC1.htm
Allen Bauer introduces the delayed loading of DLLs.
http://blogs.embarcadero.com/abauer/2009/08/25/38894
Christian Wimmer gives a critique of the behaviour of the delayed DLL loading mechanism.
http://blog.delphi-jedi.net/2009/08/29/version-checking-for-delphi/
Allen Bauer responds to Christian Wimmer's critique with a way to improve the error handling of the delayed DLL loading mechanism.
http://blogs.embarcadero.com/abauer/2009/08/29/38896