交通安全责任书怎么写?:Delphi如何将短文件名的路径转换成完整路径?

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/11 03:05:18
怎么把 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
);