ascfun.inc 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 1999-2000 by the Free Pascal development team.
  4. Contains the Ascii functions for windows unit
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. {
  12. ASCIIFunctions.h
  13. Declarations for all the Win32 ASCII Functions
  14. Copyright (C) 1996 Free Software Foundation, Inc.
  15. Author: Scott Christley <[email protected]>
  16. This file is part of the Windows32 API Library.
  17. This library is free software; you can redistribute it and/or
  18. modify it under the terms of the GNU Library General Public
  19. License as published by the Free Software Foundation; either
  20. version 2 of the License, or (at your option) any later version.
  21. This library is distributed in the hope that it will be useful,
  22. but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  24. Library General Public License for more details.
  25. If you are interested in a warranty or support for this source code,
  26. contact Scott Christley <[email protected]> for more information.
  27. You should have received a copy of the GNU Library General Public
  28. License along with this library; see the file COPYING.LIB.
  29. If not, write to the Free Software Foundation,
  30. 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  31. *What should contain this file*
  32. Imported functions with header modified in order to be compatible with win32
  33. Ansi header equivalent like LoadLibraryA wich not exist under wince.
  34. if needed use header definition from rtl\win\wininc\ascfun.inc
  35. Changes :
  36. 05/13/2006 update for wince4.2 port, [email protected]
  37. }
  38. {$ifdef read_interface}
  39. function LoadLibraryA(lpLibFileName:LPCSTR):HINST;
  40. {$endif read_interface}
  41. {$ifdef read_implementation}
  42. function LoadLibraryA(lpLibFileName:LPCSTR):HINST;
  43. var ws: PWideChar;
  44. begin
  45. ws:=StringToPWideChar(lpLibFileName);
  46. try
  47. Result:=Windows.LoadLibrary(ws);
  48. finally FreeMem(ws); end;
  49. end;
  50. {$endif read_implementation}