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

◆ GetFileVersionLanguage()

static unsafe string System.Diagnostics.FileVersionInfo.GetFileVersionLanguage ( IntPtr memPtr)
inlinestaticprivate

Definition at line 200 of file FileVersionInfo.cs.

201 {
202 uint wLang = GetVarEntry(memPtr) >> 16;
203 char* ptr = stackalloc char[256];
204 int length = global::Interop.Kernel32.VerLanguageName(wLang, ptr, 256u);
205 return new string(ptr, 0, length);
206 }
static uint GetVarEntry(IntPtr memPtr)

References System.Diagnostics.FileVersionInfo.GetVarEntry(), and System.length.

Referenced by System.Diagnostics.FileVersionInfo.GetVersionInfoForCodePage().