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

◆ TryGetACPCodePage()

static unsafe bool Interop.Kernel32.TryGetACPCodePage ( out int codePage)
inlinestaticpackage

Definition at line 33 of file Interop.cs.

34 {
35 Unsafe.SkipInit(out CPINFOEXW cPINFOEXW);
36 if (GetCPInfoExW(0u, 0u, &cPINFOEXW) != 0)
37 {
38 codePage = (int)cPINFOEXW.CodePage;
39 return true;
40 }
41 codePage = 0;
42 return false;
43 }
static unsafe BOOL GetCPInfoExW(uint CodePage, uint dwFlags, CPINFOEXW *lpCPInfoEx)

References Interop.Kernel32.GetCPInfoExW().