mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-19 10:51:28 +02:00

+cemiss : for missing win32 compatibility functions +ceshell,commdlg -func,ascfun (remain unidef and redef) git-svn-id: trunk@4498 -
42 lines
1011 B
PHP
42 lines
1011 B
PHP
{
|
|
This file is part of the Free Pascal run time library.
|
|
Copyright (c) 2006 by the Free Pascal development team.
|
|
|
|
Contains missing wince functions present in win32 api
|
|
|
|
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.
|
|
|
|
**********************************************************************}
|
|
{
|
|
*What should contain this file*
|
|
|
|
functions missing on wince in order to be compatible with win32
|
|
|
|
}
|
|
|
|
{$ifdef read_interface}
|
|
|
|
function LoadLibraryA(lpLibFileName:LPCSTR):HINST;
|
|
|
|
{$endif read_interface}
|
|
|
|
|
|
{$ifdef read_implementation}
|
|
|
|
function LoadLibraryA(lpLibFileName:LPCSTR):HINST;
|
|
var ws: PWideChar;
|
|
begin
|
|
ws:=StringToPWideChar(lpLibFileName);
|
|
try
|
|
Result:=Windows.LoadLibrary(ws);
|
|
finally FreeMem(ws); end;
|
|
end;
|
|
|
|
{$endif read_implementation}
|
|
|