Recent

Author Topic: [solved]How re-order the list of my application inside ProcExp?  (Read 442 times)

d2010

  • Full Member
  • ***
  • Posts: 230
[solved]How re-order the list of my application inside ProcExp?
« on: September 30, 2025, 08:56:22 am »
Hello.
I have my main application chiajnax.exe.
Main application, executefile "Devcinfo.exe" at multiples  times.
C:Q1=Can I display devcinfo.exe,devcinfo , devcinfo as exactly "msedge.exe"?
Code: Pascal  [Select][+][-]
  1. function ExecuteFile(const FileName, Params, DefaultDir: string;ShowCmd: Integer): THandle;
  2. var
  3.   zFileName, zParams, zDir: array[0..999] of Char;
  4. begin
  5.   Result := ShellExecute(Application.MainForm.Handle, nil,
  6.     StrPCopy(zFileName, FileName), StrPCopy(zParams, Params),
  7.     StrPCopy(zDir, DefaultDir), ShowCmd);
  8. end;
  9.  
C:Q2=Can I hide conhost.exe inside ProcExp-list-executables?
 but only conhost.exe linked with devcinfo.exe
 :-X

« Last Edit: October 15, 2025, 05:37:00 pm by d2010 »

Khrys

  • Sr. Member
  • ****
  • Posts: 348
Re: How re-order the list of my application inside ProcExp?
« Reply #1 on: September 30, 2025, 09:21:47 am »
Rename your executable to  msedge.exe,  add the correct icon and check Win32 gui application (-WG) under Config and Target to close the console.

I'll have to ask, though - why do you want to impersonate commonly installed software? Are you writing a virus?

Thaddy

  • Hero Member
  • *****
  • Posts: 18374
  • Here stood a man who saw the Elbe and jumped it.
Re: How re-order the list of my application inside ProcExp?
« Reply #2 on: September 30, 2025, 09:30:47 am »
I'll have to ask, though - why do you want to impersonate commonly installed software? Are you writing a virus?
Same question here.
But a better solution is to make them child processes from a main executable, which is an option of TProcess.
That will not hide it completely but will show the processes are related.
IOW you can write a console launcher that owns the child processes, which can be GUI apps too.
When the console app is terminated, the child processes are also terminated.

Maybe that is what you mean?
« Last Edit: September 30, 2025, 09:36:22 am by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

d2010

  • Full Member
  • ***
  • Posts: 230
Re: How re-order the list of my application inside ProcExp?
« Reply #3 on: October 15, 2025, 05:32:58 pm »
Same question here.
But a better solution is to make them child processes from a main executable, which is an option of TProcess.
That will not hide it completely but will show the processes are related.
IOW you can write a console launcher that owns the child processes, which can be GUI apps too.
When the console app is terminated, the child processes are also terminated.
Maybe that is what you mean?

Yes I used Tprocess, and he work very good.
Code: [Select]
procedure RunScriptMy;
var
  ScriptProcess : TProcessUTF8;
begin
  AssertTrue('ScriptEngine "' + ScriptEngine + '" does not exist.',
    FileExistsUTF8(ScriptEngine));
  ScriptProcess := TProcessUTF8.Create(nil);
  try
    ScriptProcess.CommandLine := ScriptEngine + ' ' + GetScriptFileName(FPath);
    ScriptProcess.Execute;
    ScriptProcess.WaitOnExit;
  finally
    ScriptProcess.Free;
  end;
end;

Thank you very much.
« Last Edit: October 15, 2025, 05:36:37 pm by d2010 »

 

TinyPortal © 2005-2018