GetFileName function

获取文件路径中文件名(如:1.jpg)


Function:

LPCSTR UAPI GetFileName(
        LPCSTR lpcFile,
        bool bDelExtname
);

Parameters:

  • lpcFile [in]:文件路径
  • bDelExtname [in]:从文件名中移除文件扩展名

Notes:如 photo\xiaoyy.jpg 如若 bDelExtname 参数为 TRUE GetFileName function 的返回值为 xiaoyy

Return value:

  • Type:LPCSTR
  • Text:成功返回文件名,失败返回 NULLPTR

Requirements:

Keyword Value
Minimum Agine Version 171012.1
Minimum SDK Version 171012.1
Header File h.files
Library Server kext

results matching ""

    No results matching ""