fpcylix.pp 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. Kylix compatibility unit
  3. The stuff in this unit might be rather linux or even
  4. i386-linux centric and even contain windows like stuff.
  5. This file is part of the Free Pascal run time library.
  6. Copyright (c) 2005 by Florian Klaempfl
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY;without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. {$mode objfpc}
  14. unit fpcylix;
  15. interface
  16. {$IFDEF FPC_DOTTEDUNITS}
  17. uses
  18. UnixApi.CThreads,UnixApi.CWString,System.DynLibs;
  19. {$ELSE FPC_DOTTEDUNITS}
  20. uses
  21. cthreads,cwstring,dynlibs;
  22. {$ENDIF FPC_DOTTEDUNITS}
  23. const
  24. MAX_PATH = 4095;
  25. var
  26. MainInstance: PtrUInt;
  27. function GetModuleName(Module: HMODULE): string;
  28. function GetModuleHandle(ModuleName: PAnsiChar): HMODULE;
  29. function GetModuleFileName(Module: HMODULE; Buffer: PAnsiChar; BufLen: Integer): Integer;
  30. implementation
  31. function GetModuleName(Module: HMODULE): string;
  32. begin
  33. result:='';
  34. end;
  35. function GetModuleHandle(ModuleName: PAnsiChar): HMODULE;
  36. begin
  37. result:=NilHandle;
  38. end;
  39. function GetModuleFileName(Module: HMODULE; Buffer: PAnsiChar; BufLen: Integer): Integer;
  40. begin
  41. result:=0;
  42. end;
  43. end.