diff options
| author | Wither OrNot | 2025-04-03 22:22:33 +0000 |
|---|---|---|
| committer | Wither OrNot | 2025-04-03 22:22:33 +0000 |
| commit | 17a7c90245ccd45b6e32d8bbe01a1a3eddeeae4d (patch) | |
| tree | 5cbd3d5482d47648bfcf57f797e477d72f0697ea /LibTSforge/Common.cs | |
| parent | 84a0c754a353cfcee721a2c78769cc4a87b35cc1 (diff) | |
| download | TSforge-17a7c90245ccd45b6e32d8bbe01a1a3eddeeae4d.zip | |
miscellaneous fixes
Diffstat (limited to 'LibTSforge/Common.cs')
| -rw-r--r-- | LibTSforge/Common.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/LibTSforge/Common.cs b/LibTSforge/Common.cs index b9c274a..4d61770 100644 --- a/LibTSforge/Common.cs +++ b/LibTSforge/Common.cs @@ -183,6 +183,12 @@ namespace LibTSforge public static class Utils { + [DllImport("kernel32.dll")] + public static extern uint GetSystemDefaultLCID(); + + [DllImport("kernel32.dll")] + public static extern bool Wow64EnableWow64FsRedirection(bool Wow64FsEnableRedirection); + public static string DecodeString(byte[] data) { return Encoding.Unicode.GetString(data).Trim('\0'); @@ -193,9 +199,6 @@ namespace LibTSforge return Encoding.Unicode.GetBytes(str + '\0'); } - [DllImport("kernel32.dll")] - public static extern uint GetSystemDefaultLCID(); - public static uint CRC32(byte[] data) { const uint polynomial = 0x04C11DB7; |
