版博士V2.0程序
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

20 行
603 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 AssistClient.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. }