mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 23:29:31 +02:00
61 lines
1.5 KiB
ObjectPascal
61 lines
1.5 KiB
ObjectPascal
{
|
|
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.
|