Thread: unique handle
View Single Post
  #1 (permalink)  
Old 06-11-2008, 03:59 AM
alex2323 alex2323 is offline
Newbie
 
Join Date: Jun 2008
Posts: 3
Credits: 0
Rep Power: 0
alex2323 is on a distinguished road
Default unique handle

Hi, I wrote:
Code:
procedure TForm1.Timer1Timer(Sender: TObject);
var
h1 :hwnd;

begin
h1:=FindWindow(nil, 'My Computer');
ShowWindow(h1, sw_hide);

end;
But, if handle consist of first letters 'My Computer' and futher some other words. In another word handle have unique name every time. How can I resolve that? Thanks.

Last edited by WingedPanther; 06-11-2008 at 11:43 AM. Reason: add code tags
Reply With Quote

Sponsored Links