/// <summary> /// Read the menu template. /// </summary> /// <param name="lpRes">Address in memory.</param> internal override IntPtr Read(IntPtr lpRes) { _header = (Api.Structures.MenuTemplate)Marshal.PtrToStructure(lpRes, typeof(Api.Structures.MenuTemplate)); var lpMenuItem = new IntPtr(lpRes.ToInt32() + Marshal.SizeOf(_header) + _header.wOffset); return(_menuItems.Read(lpMenuItem)); }
/// <summary> /// Read the menu template. /// </summary> /// <param name="lpRes">Address in memory.</param> internal override IntPtr Read(IntPtr lpRes) { _header = (Api.Structures.MenuTemplate)Marshal.PtrToStructure(lpRes, typeof (Api.Structures.MenuTemplate)); var lpMenuItem = new IntPtr(lpRes.ToInt32() + Marshal.SizeOf(_header) + _header.wOffset); return _menuItems.Read(lpMenuItem); }