Example #1
0
        private static GUITHREADINFO GetCaretPosition()
        {
            var guiInfo = new GUITHREADINFO();

            guiInfo.cbSize = (uint)Marshal.SizeOf(guiInfo);

            NativeMethods.GetGUIThreadInfo(0, out guiInfo);

            return(guiInfo);
        }
Example #2
0
 public static extern bool GetGUIThreadInfo(uint tId, out GUITHREADINFO threadInfo);