📄 peerrecipeintf.pas
字号:
{ Invokable interface IPeerRecipe }
unit PeerRecipeIntf;
interface
uses InvokeRegistry, Types, XSBuiltIns;
type
{ Invokable interfaces must derive from IInvokable }
IPeerRecipe = interface(IInvokable)
['{F1E9B1BA-6884-4375-92B7-2C0EA959525F}']
procedure Connect(const AURL: string); stdcall;
procedure Disconnect(const AURL: string); stdcall;
procedure FindRecipe(const ATTL: Integer;
const AURL: string;
const AGUID: string;
const ASearch: string); stdcall;
procedure RecipeFound(const AGUID, ARecipe: string); stdcall;
{ Methods of Invokable interface must not use the default }
{ calling convention; stdcall is recommended }
end;
implementation
initialization
{ Invokable interfaces must be registered }
InvRegistry.RegisterInterface(TypeInfo(IPeerRecipe));
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -