您的位置:首页 > 编程语言 > Delphi

如何将C/C++程序转译成Delphi(十五)

2001-07-24 13:45 375 查看
8. The Jedi Common Support Unit unit JediUtil;

{==========================================================}

{ Jedi Common Support Unit }

{==========================================================}

interface

USES WinTypes,

WinProcs;

{----------------------------------------------------------}

{ Function JediCheckInstanceHandle }

{ }

{ Parameter: }

{ }

{ hInst: Instance Handle }

{ }

{ Returns-Value: }

{ TRUE if the handle is valid, FALSE if not }

{----------------------------------------------------------}

Function JediCheckInstanceHandle (hInst: THandle): Boolean;

implementation

Function JediCheckInstanceHandle (hInst: THandle): Boolean;

begin

{$IFNDEF WIN32}

Result := hInst > HINSTANCE_ERROR;

{$ELSE}

Result := hInst <> 0;

{$ENDIF}

end;

end.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  delphi function interface