• Welcome to Valhalla Legends Archive.
 

API for Restoring a Window..

Started by vuther.de, July 05, 2007, 02:35 PM

Previous topic - Next topic

vuther.de

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

If so, what is it?

Thanks.

l2k-Shadow

Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

l)ragon

Quote from: l2k-Shadow on July 05, 2007, 05:17 PM
solved over aim.
That dosen't tell anyone the solution to the problem.
*^~·.,¸¸,.·´¯`·.,¸¸,.-·~^*ˆ¨¯¯¨ˆ*^~·.,l)ragon,.-·~^*ˆ¨¯¯¨ˆ*^~·.,¸¸,.·´¯`·.,¸¸,.-·~^*

l)ragon

#3
Quote from: l)ragon on July 05, 2007, 06:22 PM
Quote from: l2k-Shadow on July 05, 2007, 05:17 PM
solved over aim.
That dosen't tell anyone the solution to the problem.


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

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



edit re: heh hit reply instead of modify
*^~·.,¸¸,.·´¯`·.,¸¸,.-·~^*ˆ¨¯¯¨ˆ*^~·.,l)ragon,.-·~^*ˆ¨¯¯¨ˆ*^~·.,¸¸,.·´¯`·.,¸¸,.-·~^*

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)
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.