internal static void SetWindowTitle(IntPtr windowRef, string title) { IntPtr title1 = API.__CFStringMakeConstantString(title); API.SetWindowTitleWithCFString(windowRef, title1); }