请输入您要查询的百科知识:

 

词条 PathFindExtension返回值
释义

函数:

PathFindExtension(LPCSTR pszPath);

参数:

LPCSTR pszPath: 一个LPCSTR类型或其他char类型(如TCHAR类型)的字符串

功能:

获取路径或文件名中的文件扩展名

例如:

#include "windows.h"

#include "shlwapi.h"

int main(int argc, char* argv[])

{

LPCSTR hou_chuo;

PathFindExtension( “File.txt” ) = “.txt” //如"D:\\\\masm32\\\\lcd\\\\lcd.asm",则可返回".asm"的首址

printf("%s ",hou_chuo);

} //C语言_VC6.0

备注:

最小支持客户 Windows 2000 Professional, Windows XP

最小支持服务器 Windows 2000 Server

包含头文件 Shlwapi.h

Library Shlwapi.lib

DLL Shlwapi.dll (版本4.71或以后)

Unicode和ANSI名字 PathFindExtensionW (Unicode)和PathFindExtensionA (ANSI)

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/2/3 15:09:06