Joe Strazzere - All Things Quality

Visit my new blog at http://strazzere.blogspot.com/


December 1, 2005 - WinTask - GetClassName

Posted in WinTask

'
' GetClassName
'
' "user32" Alias "GetClassNameA"
' (ByVal hwnd As Long,
'  ByVal lpClassName As String,
'  ByVal nMaxCount As Long) As Long
'

Dim memptr as unsigned
Dim texlen as unsigned

memptr=allocate(255)
textlen=64

hwnd=GetWindowHandle(focus$(),1)

ret = External("user32","GetClassNameA", hwnd, memptr, textlen)

myclass$=peekstring$(memptr)

msgbox("The class of the window with the Focus is "+myclass$,,"GetClassName")


<- Last Page :: Next Page ->

About Me

A gathering place for information and ideas about Quality Assurance, Testing, and other useful topics.

Problems cannot be solved by the same level of thinking that created them. - A. Einstein

Search This Site

Translate This Site

RSS Feed

Subscribe

Twitter

@jstrazzere

Categories

Life
QA
Sports
Tools
WinTask
Work in General

What I'm Reading Now