What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » lpClassName

lpClassName
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15497
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: lpClassName
quote:
Originally posted by saralk
How do you find out the ClassName of an application?
It depends on what you mean by 'application'...

An application can contain many windows, and each window can have its own classname.

Also classnames are rarely unique. Many windows have the same classname (just pointing it out as this is sometimes a mistake made when searching for windows with Windows APIs like FindWindow)...

quote:
Originally posted by Mattike
[*]nMaxCount - Seems like the Win32 API even lets you choose how big you want to make your DataBloc.
Not really, a classname has a maximum length of 256 characters, incl. null character (iirc). This means your buffer must always be at least 256 characters big.

Also the Windows API GetClassName comes in two modes, ascii and wide. So you need to specify this too (best to use the wide/unicode version): Interop.Call("user32", "GetClassNameW", ...

This post was edited on 05-18-2007 at 04:47 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
05-18-2007 04:45 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
lpClassName - by saralk on 05-18-2007 at 12:24 PM
RE: lpClassName - by Matti on 05-18-2007 at 04:27 PM
RE: lpClassName - by CookieRevised on 05-18-2007 at 04:45 PM
RE: lpClassName - by saralk on 05-18-2007 at 05:06 PM
RE: lpClassName - by Matti on 05-19-2007 at 01:18 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On