The idea is that you provide an exported function that sets a variable in the dll that controls if the main daemon function will be active or not. There are severals ways to do it, a dialog window with a checkbox for instance. Below is Pascal code for a simple configuration function (this one only shows a message box).
/Rolf
function configure (var m:TMInterface; name, parameter: pChar):shortint;export;cdecl;
begin
messagebox(MainW, pChar('Parameter is '+parameter), name, MB_OK);
Result:=1;
end;
<p>The idea is that you provide an exported function that sets a variable in the dll that controls if the main daemon function will be active or not. There are severals ways to do it, a dialog window with a checkbox for instance. Below is Pascal code for a simple configuration function (this one only shows a message box).
</p><p>/Rolf</p><p>&nbsp;</p><blockquote>function configure (var m:TMInterface; name, parameter: pChar):shortint;export;cdecl;
begin
&nbsp; messagebox(MainW, pChar('Parameter is '+parameter), name, MB_OK);
&nbsp; Result:=1;
end;</blockquote>