>>I want to make a process handler!!
>>
>>To kill the unwanted process by:
>>
>>- List out process caption, Show in a listbox
>>- FindWindow API function to get the process "hwnd"
>>- CloseWindow/DestroyWindow to close the process!!
>>
>>the last two tasks can be found in knowledge base, but how about the first task!?
>>
>Hi Justok,
>
>Look at my Is_Run32 for a reliable way of retrieving the window handle based on the known portion of a dynamic title bar. It'll also give you an idea as to how to loop through the existing windows to and retrieve their title bars. I'd also suggest that you use the IsWindowVisible() function to determine whether or not to display the window in the list. Some windows (such as the one named Program Manager) aren't visible. In this case terminating it, would (I believe) terminate Windows as well.
In others newsgrp, somebody suggest me to use:
EnumWindowsbut I don't know how it work on getting
ALL Top-Level Window Caption!!
Thanks a lot! I am an idol on WinAPI
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.