banboshi_V1/halftoneproject-master/Code/Utils/WINAPI.cs
2023-10-31 13:19:29 +08:00

20 lines
608 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace ProductionControl.Utils
{
internal class WINAPI
{
//声明读写INI文件的API函数
[DllImport("kernel32")]
public static extern long WritePrivateProfileString(string section, string key, string val, string filePath);
[DllImport("kernel32")]
public static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, int size, string filePath);
}
}