If have notepad.exe in process list ,main notepad window hide.void __fastcall TForm1::Button2Click(TObject *Sender)
{
Process("notepad.exe")->GetWindows()->Hide();
}
But when i close notepad.exe(notepad.exe not in process list) , all windows in my system hide.
What's wrong ,i just want to hide only main notepad windows
if notepad not in process list it will do nothing.