dynlibs.pp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by the Free Pascal development team
  5. Implements OS-independent loading of dynamic libraries.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {$MODE OBJFPC}
  13. unit dynlibs;
  14. interface
  15. { ---------------------------------------------------------------------
  16. Read OS-dependent interface declarations.
  17. ---------------------------------------------------------------------}
  18. {$define readinterface}
  19. {$i dynlibs.inc}
  20. {$undef readinterface}
  21. { ---------------------------------------------------------------------
  22. OS - Independent declarations.
  23. ---------------------------------------------------------------------}
  24. Function LoadLibrary(Name : AnsiString) : TLibHandle;
  25. Function GetProcedureAddress(Lib : TlibHandle; ProcName : AnsiString) : Pointer;
  26. Function UnloadLibrary(Lib : TLibHandle) : Boolean;
  27. Implementation
  28. { ---------------------------------------------------------------------
  29. OS - Independent declarations.
  30. ---------------------------------------------------------------------}
  31. {$i dynlibs.inc}
  32. end.
  33. {
  34. $Log$
  35. Revision 1.2 2002-09-07 15:07:45 peter
  36. * old logs removed and tabs fixed
  37. }