Hi,

I am trying to retrieve a Window Named [ test ] as a HEX, or DEC value in Visual Basic.

When Button1 is Clicked, TextBox1 Will Show The Window [ test ] as either a HEX or DEC value.

Code Example of FindWindow:

Code:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowW" (
      ByVal lpClassName As String, _
      ByVal lpWindowName  As String) As IntPtr
The Above May Or May Not Be Relevant To The Question..

If Anyone Can Provide An Example For Me, It Would Be Greatly Appreciated. Thanks