充错话费 骗局:Delphi如何将短文件名的路径转换成完整路径?

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/15 09:50:16
怎么把 C:\123456~3.txt 这样的路径转换成
C:\123456789.txt 这样完整的名称
或者将短文件名转换完整的文件名称?

The GetFullPathName function retrieves the full path and filename of a specified file.

DWORD GetFullPathName(

LPCTSTR lpFileName, // address of name of file to find path for
DWORD nBufferLength, // size, in characters, of path buffer
LPTSTR lpBuffer, // address of path buffer
LPTSTR *lpFilePart // address of filename in path
);