版博士V2.0程序
Você não pode selecionar mais de 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.
 
 
 
 

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