C# 指定父層級目錄
2021-04-08 06:25
阅读:502
标签:class new close nbsp ring style bsp oid string C# 指定父層級目錄 标签:class new close nbsp ring style bsp oid string 原文地址:https://www.cnblogs.com/shitekudasai/p/9093170.html
View Code
1 lstrcatW(pszpath, "\\..\\..\\");
2 DWORD dwlen = GetFullPathNameW(pszpath, 0u, null, null);
3 void* pv = malloc((size_t)(uint)dwlen);
4 GetFullPathNameW(pszpath, dwlen, (char*)pv, null);
5 string sz = new string((char*)pv);
6 free(pv);
评论
亲,登录后才可以留言!