DWORD WINAPI GetPrivateProfileString(
  __in          LPCTSTR lpAppName,
  __in          LPCTSTR lpKeyName,
  __in          LPCTSTR lpDefault,
  __out         LPTSTR lpReturnedString,
  __in          DWORD nSize,
  __in          LPCTSTR lpFileName
);
DWORD WINAPI GetPrivateProfileSection(
  __in          LPCTSTR lpAppName,
  __out         LPTSTR lpReturnedString,
  __in          DWORD nSize,
  __in          LPCTSTR lpFileName
);

如果文件不存在,会新建文件
BOOL WINAPI WritePrivateProfileString(
  __in          LPCTSTR lpAppName,
  __in          LPCTSTR lpKeyName,
  __in          LPCTSTR lpString,
  __in          LPCTSTR lpFileName
);
BOOL WINAPI WritePrivateProfileSection(
  __in          LPCTSTR lpAppName,
  __in          LPCTSTR lpString,
  __in          LPCTSTR lpFileName
);

DWORD WINAPI GetPrivateProfileString(
  __in          LPCTSTR lpAppName,
  __in          LPCTSTR lpKeyName,
  __in          LPCTSTR lpDefault,
  __out         LPTSTR lpReturnedString,
  __in          DWORD nSize,
  __in          LPCTSTR lpFileName
);
DWORD WINAPI GetPrivateProfileSection(
  __in          LPCTSTR lpAppName,
  __out         LPTSTR lpReturnedString,
  __in          DWORD nSize,
  __in          LPCTSTR lpFileName
);

如果文件不存在,会新建文件
BOOL WINAPI WritePrivateProfileString(
  __in          LPCTSTR lpAppName,
  __in          LPCTSTR lpKeyName,
  __in          LPCTSTR lpString,
  __in          LPCTSTR lpFileName
);
BOOL WINAPI WritePrivateProfileSection(
  __in          LPCTSTR lpAppName,
  __in          LPCTSTR lpString,
  __in          LPCTSTR lpFileName
);

相关文章:

  • 2022-12-23
  • 2022-02-21
  • 2021-11-12
  • 2021-06-09
  • 2021-11-04
猜你喜欢
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
  • 2021-11-11
相关资源
相似解决方案