예제 #1
0
        /// <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));
        }
예제 #2
0
        /// <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);
        }