DWORD WINAPI GetFullPathName(
__in LPCTSTR lpFileName,
__in DWORD nBufferLength,
__out LPTSTR lpBuffer,
__out LPTSTR* lpFilePart
);
Retrieves the full path and file name of the specified file.
根据文件名,可以获取到改文件名的全路径。。
WCHAR buffer[BUFSIZ] = {0};
LPWSTR lpPart[BUFSIZ]={0};
GetFullPathName(_T("Big5.dat"),BUFSIZ,buffer,lpPart);
获取到的文件名录,在lpPart数组中。。