mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-11-04 07:59:34 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			55 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			ObjectPascal
		
	
	
	
	
	
{
 | 
						|
    $Id$
 | 
						|
    This file is part of the Free Pascal run time library.
 | 
						|
    Copyright (c) 1999-2000 by the Free Pascal development team
 | 
						|
 | 
						|
    Implements OS-independent loading of dynamic libraries.
 | 
						|
    
 | 
						|
    See the file COPYING.FPC, included in this distribution,
 | 
						|
    for details about the copyright.
 | 
						|
 | 
						|
    This program is distributed in the hope that it will be useful,
 | 
						|
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
						|
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 | 
						|
 | 
						|
 **********************************************************************}
 | 
						|
 | 
						|
{$MODE OBJFPC}
 | 
						|
 | 
						|
unit dynlibs;
 | 
						|
 | 
						|
interface
 | 
						|
 | 
						|
{ ---------------------------------------------------------------------
 | 
						|
  Read OS-dependent interface declarations.
 | 
						|
  ---------------------------------------------------------------------}
 | 
						|
 | 
						|
{$define readinterface}
 | 
						|
{$i dynlibs.inc}
 | 
						|
{$undef  readinterface}
 | 
						|
 | 
						|
{ ---------------------------------------------------------------------
 | 
						|
  OS - Independent declarations.
 | 
						|
  ---------------------------------------------------------------------}
 | 
						|
 | 
						|
 | 
						|
Function LoadLibrary(Name : AnsiString) : TLibHandle;
 | 
						|
Function GetProcedureAddress(Lib : TlibHandle; ProcName : AnsiString) : Pointer;
 | 
						|
Function UnloadLibrary(Lib : TLibHandle) : Boolean;
 | 
						|
 | 
						|
Implementation
 | 
						|
 | 
						|
{ ---------------------------------------------------------------------
 | 
						|
  OS - Independent declarations.
 | 
						|
  ---------------------------------------------------------------------}
 | 
						|
 | 
						|
{$i dynlibs.inc}
 | 
						|
 | 
						|
end.
 | 
						|
 | 
						|
{
 | 
						|
  $Log$
 | 
						|
  Revision 1.1  2000-08-18 19:15:34  michael
 | 
						|
  + Implemented loading of dynamical libraries
 | 
						|
 | 
						|
} |