Move process to another desktop

Asked

Viewed 82 times

0

Imagine a scenario where I have the desktop pattern of windows, and I create another desktop, then need to move my application to the second. I currently create this application in the other, but am having problems with it.

What I need is some command that moves my current application to the second desktop, Right now what I’m using is the command CreateProcess, and I’ll do it this way:

 FillChar(sinfo, SizeOf(sinfo), 0);
 sinfo.cb := SizeOf(sinfo);
 sinfo.lpDesktop := PChar('desktop_aplic');
 CreateProcess(pchar(Application.ExeName), nil, nil, nil, False, 0, nil, nil, sinfo, pinfo);

There is a way for me to move the application instead of creating a new one?

  • You refer to the multiple Windows 10 Desktop feature?

  • @rodorgas, actually no, by DELPHI itself you have how to create new desktops, I have his name, more wanted to move my application to it rather than create a new process.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.