Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetVarEntry()

static uint System.Diagnostics.FileVersionInfo.GetVarEntry ( IntPtr memPtr)
inlinestaticprivate

Definition at line 218 of file FileVersionInfo.cs.

219 {
220 IntPtr lplpBuffer = IntPtr.Zero;
221 if (global::Interop.Version.VerQueryValue(memPtr, "\\VarFileInfo\\Translation", out lplpBuffer, out var _))
222 {
223 return (uint)((Marshal.ReadInt16(lplpBuffer) << 16) + Marshal.ReadInt16((IntPtr)((long)lplpBuffer + 2)));
224 }
225 return 67699940u;
226 }
static short ReadInt16(object ptr, int ofs)
Definition Marshal.cs:54

References System.Runtime.InteropServices.Marshal.ReadInt16(), and System.IntPtr.Zero.

Referenced by System.Diagnostics.FileVersionInfo.FileVersionInfo(), and System.Diagnostics.FileVersionInfo.GetFileVersionLanguage().