版博士V2.0程序
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

WINAPI.cs 608 B

12345678910111213141516171819
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.InteropServices;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace ProductionControl.Utils
  8. {
  9. internal class WINAPI
  10. {
  11. //声明读写INI文件的API函数
  12. [DllImport("kernel32")]
  13. public static extern long WritePrivateProfileString(string section, string key, string val, string filePath);
  14. [DllImport("kernel32")]
  15. public static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, int size, string filePath);
  16. }
  17. }