public static WINDOWPLACEMENT Parse(string input) { WINDOWPLACEMENT result = default(WINDOWPLACEMENT); result.Length = Marshal.SizeOf(typeof(WINDOWPLACEMENT)); try { string[] items = input.Split('/'); result.Flags = int.Parse(items[0]); result.ShowCmd = int.Parse(items[1]); result.MinPosition = POINT.Parse(items[2]); result.MaxPosition = POINT.Parse(items[3]); result.NormalPosition = RECT.Parse(items[4]); } catch { } return(result); }