适配跨平台,winform乱码

This commit is contained in:
snltty
2023-11-29 17:40:41 +08:00
parent 1f0bfa6dc6
commit 26430402c4
3 changed files with 13 additions and 5 deletions

View File

@@ -3,7 +3,6 @@ using System.Diagnostics;
using System.Runtime.InteropServices;
using System.ServiceProcess;
using System.Text;
using System.Text.Json;
namespace cmonitor.sas.service
{
@@ -102,7 +101,7 @@ namespace cmonitor.sas.service
}
}, cancellationTokenSource, TaskCreationOptions.LongRunning);
}
private void WriteAllCloseState(bool state)
{
for (int i = 0; i < shareMLength; i++)
@@ -110,7 +109,7 @@ namespace cmonitor.sas.service
shareMemory.WriteClosed(i, state);
}
}
Process proc;
private void CheckMainProcess()
{