#include <windows.h>
#include <iostream>
#include "Shlwapi.h"
using namespace std;
int main()
{
// Path_1 destination buffer.
char buffer_1[MAX_PATH] = "JustABufferToHoldTheCanonicalizedPathForAnExample";
char *lpStr1;
lpStr1 = buffer_1;
// Path_2 to be Canonicalized.
char buffer_2[ ] = "A://name_1//.//name_2//..//name_3";
char *lpStr2;
lpStr2 = buffer_2;
// Path_3 to be Canonicalized.
char buffer_3[ ] = "A://name_1//..//name_2//.//name_3";
char *lpStr3;
lpStr3 = buffer_3;
// Path_4 to be Canonicalized.
char buffer_4[ ] = "A://name_1//name_2//.//name_3//..//name_4";
char *lpStr4;
lpStr4 = buffer_4;
// Path_5 to be Canonicalized.
char buffer_5[ ] = "A://name_1//.//name_2//.//name_3//.
Shlwapi.dll 应用系列
最新推荐文章于 2022-02-25 19:38:17 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)