Windows API 第二篇 SHGetSpecialFolderPath
BOOL SHGetSpecialFolderPath( HWND hwndOwner,
???????????????????????????????? LPTSTR lpszPath,
???????????????????????????????? int nFolder,
???????????????????????????????? BOOL fCreate );
參數解釋:
hwndOwner:Handle to the owner window the client should specify if it displays a dialog box or message box.
lpszPath:Pointer to a null-terminated string that receives the drive and path of the specified folder. This buffer must be at least MAX_PATH characters in size
nFolder:A CSIDL that identifies the folder of interest. If a virtual folder is specified, this function will fail.
fCreate:Indicates if the folder should be created if it does not already exist. If this value is nonzero, the folder will be created. If this value is zero, the folder will not be created.
?
一個簡單的test
建立控制臺程序:
?
?
轉載于:https://www.cnblogs.com/priarieNew/p/9753922.html
總結
以上是生活随笔為你收集整理的Windows API 第二篇 SHGetSpecialFolderPath的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: arcgis几何修复有作用吗_ArcGi
- 下一篇: 如何打造高效的多任务、高并发的网络服务器