18 lines
515 B
C#
18 lines
515 B
C#
|
|
using System.Text;
|
|||
|
|
using System.Runtime.InteropServices;
|
|||
|
|
|
|||
|
|
namespace Sheng.Winform.Controls.Win32
|
|||
|
|
{
|
|||
|
|
public static class Kernel32
|
|||
|
|
{
|
|||
|
|
[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);
|
|||
|
|
}
|
|||
|
|
}
|