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", "GetClassName
W", ...