I want to run a function in the context of a foreign process. So I wanted to use ExecuteFunction.
Your example works just fine, but how can I pass an Integer/cardinal Value as the Parameter?
I tried to cast the param in the Remote function
Code: Select all
procedure RemoteFunction(var params);
var
dwStyle : Integer;
begin
dwStyle := GetWindowLong(Integer(params),GWL_STYLE);
[...]
end;