|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| user32.lib
| Header File
| winuser.h
| Unicode
| WinNT
| Platform Notes
| None
|
|
|
GetClassName
The GetClassName function retrieves the name of the class to which the specified window
belongs.
int GetClassName(
HWND hWnd,
| // handle of window
| LPTSTR lpClassName,
| // address of buffer for class name
| int nMaxCount
| // size of buffer, in characters
| );
|
|
Parameters
hWnd
Identifies the window and, indirectly, the class to which the window belongs.
lpClassName
Points to the buffer that is to receive the class name string.
nMaxCount
Specifies the length, in characters, of the buffer pointed to by the lpClassName parameter. The class name string is truncated if it is longer than the
buffer.
Return Values
If the function succeeds, the return value is the number of characters copied
to the specified buffer.
If the function fails, the return value is zero. To get extended error
information, call GetLastError.
See Also
FindWindow, GetClassInfo, GetClassLong, GetClassWord
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|