zlibfileserviceintf.~pas

来自「Delphi开发webservice的一套例子」· ~PAS 代码 · 共 28 行

~PAS
28
字号
unit ZlibFileServiceIntf;

interface

uses
  Types, XSBuiltIns;

type
  IZlibFileService = interface(IInvokable)
    ['{A36E10C3-9605-11D5-8B77-9654F3594F6E}']
    // Declare your invokable logic here using standard Object Pascal code
    // Remember to include a calling convention! (usually stdcall)
    function GetFile(const sFileName : String) : String; stdcall;
    function GetCompressedFile(const sFileName : String) : String; stdcall;
    function GetFileSize(const sFileName : String) : Integer; stdcall;
    function GetCompressedSize(const sFileName : String) : Integer; stdcall;
  end;

implementation

uses
  InvokeRegistry;

initialization
  InvRegistry.RegisterInterface(TypeInfo(IZlibFileService), '', '');

end.
 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?