I had some ideas for my Services2 plugin and I'm currently trying to implement them. One of them involves calling TC Lister with a parameter. Is it possible to do that using PostMessage?
Here's what I tried (not all of them at once of course):
Code: Select all
var s: PString;
begin
New(s);
s:= PString(FService.Executable);
if NOT PostMessage(FhTotalCmd, TotalCmdMsg, cm_List, LParam(s)); then
Dispose(s);}
PostMessage(FhTotalCmd, TotalCmdMsg, cm_List, LongInt(PChar(FService.Executable)));
PostMessage(FhTotalCmd, TotalCmdMsg, cm_List, Integer(@FService.Executable)));
PS: I know that calling
Code: Select all
%COMMANDER_EXE% /S=L <executable>
Regards
Dalai