fpcylix.pp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. uses
  17. cthreads,cwstring,dynlibs;
  18. const
  19. MAX_PATH = 4095;
  20. var
  21. MainInstance: PtrUInt;
  22. function GetModuleName(Module: HMODULE): string;
  23. function GetModuleHandle(ModuleName: PChar): HMODULE;
  24. function GetModuleFileName(Module: HMODULE; Buffer: PChar; BufLen: Integer): Integer;
  25. implementation
  26. function GetModuleName(Module: HMODULE): string;
  27. begin
  28. result:='';
  29. end;
  30. function GetModuleHandle(ModuleName: PChar): HMODULE;
  31. begin
  32. result:=NilHandle;
  33. end;
  34. function GetModuleFileName(Module: HMODULE; Buffer: PChar; BufLen: Integer): Integer;
  35. begin
  36. result:=0;
  37. end;
  38. end.