User32RealGetWindowClass Method

Retrieves a string that specifies the window type.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", CharSet = CharSet.Auto, BestFitMapping = false, 
	ThrowOnUnmappableChar = true, SetLastError = true)]
public static uint RealGetWindowClass(
	IntPtr hwnd,
	StringBuilder className,
	uint classNameMax
)

Parameters

hwnd  IntPtr

[Missing <param name="hwnd"/> documentation for "M:DevCase.Win32.NativeMethods.User32.RealGetWindowClass(System.IntPtr,System.Text.StringBuilder,System.UInt32)"]

className  StringBuilder
A pointer to a string that receives the window type.
classNameMax  UInt32
The length, in characters, of the buffer pointed to by the className parameter.

Return Value

UInt32
If the function succeeds, the return value is the number of characters copied to the specified.

If the function fails, the return value is .

To get extended error information, call GetLastWin32Error.

Remarks

See Also