Page 1 of 1

Idea: random name of window and process

Posted: Thu Jun 10, 2010 7:21 am
by goscinny
Hi,

I use micromacro in some games. It's works fine, but I afraid, that game developers can 'sniff' this software.
Maybe you should anonymize micromacro? Randomly generated window name and process name could be useful.

Goscinny

Re: Idea: random name of window and process

Posted: Thu Jun 10, 2010 9:09 am
by Administrator
Good idea. It's also fairly simple to implement. At least, the random window name is. I'm not sure if giving the main executable a random name at runtime will be easily doable. Are there any other suggestions you have along these lines?

Re: Idea: random name of window and process

Posted: Thu Jun 10, 2010 1:27 pm
by goscinny
Long, long time ago when I write some programs in Delphi, I change WindowName and appsname like this:

function ChangeName(WHandle: HWND; LParM: LParam): Boolean;StdCall;Export
var Title,ClassName:array[0..128] of char;
sTitle,sClass: string;

begin
Result := True;
GetWindowText(wHandle, title,128);
GetClassName(wHandle, ClassName,128);
sTitle := Title;
sClass:=ClassName;

end;

and in init procedure I call:

Form1.Caption:='';
For name:=0 to Random(16)+1 do
begin
Form1.Caption:=Form1.Caption+Chr(64+Random(32));
end;
EnumWindows(@ChangeName,0);

and it's works :)

My program wasn't detected by Spedia and similar 'click and make money' programs ;)