版博士V2.0程序
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

20 righe
608 B

  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. }