[DllImport("user32.dll", SetLastError = true)]
static extern Boolean GetClassInfoEx(IntPtr hInstance, String lpClassName, ref WNDCLASSEX lpWndClass);
<DllImport("user32", SetLastError:=True)> _
Private Shared Function GetClassInfoEx(hInstance As IntPtr, lpClassName As String, ByRef lpWndClass As WNDCLASSEX) As Boolean
End Function
None.
Be sure to set cbSize member of WNDCLASSEX structure before calling the GetClassInfoEx function.
Please add some!
IntPtr hinstance = Marshal.GetHINSTANCE(GetType().Module);
String className = "Required Class Name";
WNDCLASSEX wndClass = new WNDCLASSEX { cbSize = (uint)Marshal.SizeOf(typeof(WNDCLASSEX)) };
if (GetClassInfoEx(hinstance, className, ref wndClass))
{
// Class exists
}
Do you know one? Please contribute it!