private static GUITHREADINFO GetCaretPosition() { var guiInfo = new GUITHREADINFO(); guiInfo.cbSize = (uint)Marshal.SizeOf(guiInfo); NativeMethods.GetGUIThreadInfo(0, out guiInfo); return(guiInfo); }
public static extern bool GetGUIThreadInfo(uint tId, out GUITHREADINFO threadInfo);