{ Invokable-Implementierungsdatei für TRico_PC_service das IRico_PC_service implementiert }
unit Rico_PC_serviceImpl;
interface
uses FmxUtils, Windows, Classes, Consts,
InvokeRegistry, Types, XSBuiltIns, Rico_PC_ServiceIntf;
type
{ TRico_PC_service }
TRico_PC_service = class(TInvokableClass, IRico_PC_service)
public
function Startwenn_ok(const WAS, PW : String): String; stdcall;
end;
implementation
uses Forms, RtlConsts;
function TRico_PC_service.Startwenn_ok(const WAS, PW : String): String; stdcall;
begin
if (PW='ganzgeheim') then
Begin
Executefile(WAS, '', '\', SW_NORMAL);
result := 'OK :) '+WAS+ 'wurde gestartet !' ;
end;
end;