【Windows C++笔记】windows常用API

获取ini文件value

GetPrivateProfileString
参考网址:https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getprivateprofilestring

  DWORD GetPrivateProfileString(
  LPCTSTR lpAppName, //section name
  LPCTSTR lpKeyName, //key name
  LPCTSTR lpDefault, //if key name not be found
  LPTSTR lpReturnedString, //returned value
  DWORD nSize, //buffer for returned string
  LPCTSTR lpFileName //ini file
  );

判断路径是否存在

PathFileExsit

移除文件名后缀

PathRemoveExtension

移除路径后的文件名

PathRemoveFileSpec

posted @ 2019-09-05 10:18  鱼汤泡饭  阅读(1230)  评论(0编辑  收藏  举报