I am creating a plugin to override the way messages are shown (would like to use the standard Windows message dialog/ Task dialog), but I'm not sure how to get the message text to be shown as the OnShowMessage function is using an integer as the parameter
function Enigma_Plugin_OnShowMessage(AMessageID : integer) : boolean; stdcall;
begin
if (AMessageID = MESSAGEID_CHECK_FILENAME) then
begin
MessageBox(0, 'Filename is incorrect!', 'Application', MB_ICONERROR);
end else
if (AMessageID = MESSAGEID_CHECK_EXECUTEDPROCESSES) then
begin
MessageBox(0, 'Bad executed process is found!', 'Application', MB_ICONERROR);
end;
Result := 1;
end;