internal CbtEventArgs(IntPtr wParam, IntPtr lParam) { // cache the parameters this.wParam = wParam; this.lParam = lParam; // cache the window's class name StringBuilder sb = new StringBuilder(); sb.Capacity = 256; USER32.GetClassName(wParam, sb, 256); className = sb.ToString(); IsDialog = (className == "#32770"); }