123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- {
- Kylix compatibility unit
- The stuff in this unit might be rather linux or even
- i386-linux centric and even contain windows like stuff.
- This file is part of the Free Pascal run time library.
- Copyright (c) 2005 by Florian Klaempfl
- 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 fpcylix;
- interface
- {$IFDEF FPC_DOTTEDUNITS}
- uses
- UnixApi.CThreads,UnixApi.CWString,System.DynLibs;
- {$ELSE FPC_DOTTEDUNITS}
- uses
- cthreads,cwstring,dynlibs;
- {$ENDIF FPC_DOTTEDUNITS}
-
- const
- MAX_PATH = 4095;
- var
- MainInstance: PtrUInt;
- function GetModuleName(Module: HMODULE): string;
- function GetModuleHandle(ModuleName: PAnsiChar): HMODULE;
- function GetModuleFileName(Module: HMODULE; Buffer: PAnsiChar; BufLen: Integer): Integer;
- implementation
- function GetModuleName(Module: HMODULE): string;
- begin
- result:='';
- end;
- function GetModuleHandle(ModuleName: PAnsiChar): HMODULE;
- begin
- result:=NilHandle;
- end;
- function GetModuleFileName(Module: HMODULE; Buffer: PAnsiChar; BufLen: Integer): Integer;
- begin
- result:=0;
- end;
- end.
|