System.Diagnostics.FileVersionInfo.GetVarEntry C# (CSharp) Method

GetVarEntry() private static method

private static GetVarEntry ( IntPtr memPtr ) : uint
memPtr IntPtr
return uint
        private static uint GetVarEntry(IntPtr memPtr)
        {
            IntPtr memRef = IntPtr.Zero;
            uint memLen;

            if (Interop.Version.VerQueryValue(memPtr, "\\VarFileInfo\\Translation", out memRef, out memLen))
            {
                return (uint)((Marshal.ReadInt16(memRef) << 16) + Marshal.ReadInt16((IntPtr)((long)memRef + 2)));
            }

            return 0x040904E4;
        }