Valhalla Legends Forums Archive | Visual Basic Programming | API for Restoring a Window..

AuthorMessageTime
inner.
I need to know if there is an API that restores a hidden program with using PID.

If so, what is it?

Thanks.
July 5, 2007, 7:35 PM
l2k-Shadow
solved over aim.
July 5, 2007, 10:17 PM
dRAgoN
[quote author=l2k-Shadow link=topic=16850.msg170760#msg170760 date=1183673840]
solved over aim.
[/quote]
That dosen't tell anyone the solution to the problem.
July 5, 2007, 11:22 PM
dRAgoN
[quote author=l)ragon link=topic=16850.msg170764#msg170764 date=1183677737]
[quote author=l2k-Shadow link=topic=16850.msg170760#msg170760 date=1183673840]
solved over aim.
[/quote]
That dosen't tell anyone the solution to the problem.
[/quote]


Edit: Look up the following.[code][WINDOWPLACEMENT].ShowCommand = SW_SHOWNORMAL

SetWindowPlacement([Application].HWND, [WINDOWPLACEMENT])[/code]


edit re: heh hit reply instead of modify
July 5, 2007, 11:29 PM
l2k-Shadow
yes but he didn't have the window handle, he had the process id only. he also said he was unable to use FindWindow but we later found out he could.

so:
hwnd = FindWindow()
to kill process:
GetWindowThreadId(hwnd, pid)
hproc = OpenProcess(PROCESS_ALL_ACCESS, 0, pid)
TerminateProcess(hproc, 0)
CloseHandle(hproc)
to show window:
ShowWindow(hwnd, SW_SHOWNORMAL)
July 6, 2007, 12:25 AM

Search