获取指定的系统路径 SHGetSpecialFolderPath

UE5、CesiumForUnreal实现加载GeoJson绘制多面(MultiPolygon)功能(支持点选高亮) UE5、CesiumForUnreal实现加载GeoJson实现多面(MultiPolygon)的绘制功能,并且支持点选高亮和属性查询。 阅读详情
 
1   #include    < shlobj.h >    
2    #pragma    comment(lib,   "shell32.lib")   
3     
4   TCHAR   szPath[MAX_PATH];
      SHGetSpecialFolderPathNULL,szPath,CSIDL_COMMON_DOCUMENTS,   FALSE);   
5    //    szPath   就是

对于这个函数MSDN:
使用说明:这里面的CSIDL可能有些使用不正常,最好参考本地SHLOBJ.H文件里面的定义使用
保证能using,:)

TCHAR   szPath[MAX_PATH];
    SHGetSpecialFolderPath(NULL,szPath,CSIDL_APPDATA,FALSE);
    MessageBox(NULL,szPath,
" 当前用户配置路径 " ,MB_ICONSTOP); 
    
//

 


 

SHGetSpecialFolderPath Function

Retrieves the path of a special folder, identified by its CSIDL.

Syntax

BOOL SHGetSpecialFolderPath(      
    HWND hwndOwner,     LPTSTR lpszPath,     int nFolder,     BOOL fCreate );

Parameters

hwndOwner
A handle to the owner window that the client should specify if it displays a dialog box or message box.
lpszPath
A 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 whether 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.

Return Value

Returns TRUE if successful, or FALSE otherwise.

Remarks

The Microsoft Internet Explorer 4.0 Desktop Update must be installed for this function to be available.

With Microsoft Windows 2000, this function is superseded by ShGetFolderPath. You can use this function on earlier systems by including the redistributable DLL, ShFolder.dll.

Function Information

Minimum DLL Versionshell32.dll version 4.71 or later
Custom ImplementationNo
Headershlobj.h
Import libraryshell32.lib
Minimum operating systemsWindows 2000, Windows NT 4.0 with Internet Explorer 4.0, Windows 98, Windows 95 with Internet Explorer 4.0
UnicodeImplemented as ANSI and Unicode versions.

地下是关于路径设置参数CSIDL的说明
CSIDL  Note  In Windows Vista, these values have been replaced by KNOWNFOLDERID values. See that topic for a list of the new constants and their corresponding CSIDL values. For convenience, corresponding KNOWNFOLDERID values are also noted here for each CSIDL value.

The CSIDL system is supported under Windows Vista for compatibility reasons. However, new development should use KNOWNFOLDERID values rather than CSIDL values.

CSIDL (constant special item ID list) values provide a unique system-independent way to identify special folders used frequently by applications, but which may not have the same name or location on any given system. For example, the system folder may be "C:/Windows" on one system and "C:/Winnt" on another. These constants are defined in Shlobj.h. A subset of them is also defined in Shfolder.h.

Constants

CSIDL_ADMINTOOLS  (FOLDERID_AdminTools)
Version 5.0 . The file system directory that is used to store administrative tools for an individual user. The Microsoft Management Console (MMC) will save customized consoles to this directory, and it will roam with the user.

CSIDL_ALTSTARTUP  (FOLDERID_Startup)
The file system directory that corresponds to the user's nonlocalized Startup program group. This value is recognized in Windows Vista for backward compatibility, but the folder itself no longer exists.

CSIDL_APPDATA  (FOLDERID_RoamingAppData)
Version 4.71. The file system directory that serves as a common repository for application-specific data. A typical path is C:/Documents and Settings/username/Application Data. This CSIDL is supported by the redistributable Shfolder.dll for systems that do not have the Microsoft Internet Explorer 4.0 integrated Shell installed.

CSIDL_BITBUCKET  (FOLDERID_RecycleBinFolder)
The virtual folder that contains the objects in the user's Recycle Bin.

CSIDL_CDBURN_AREA  (FOLDERID_CDBurning)
Version 6.0. The file system directory that acts as a staging area for files waiting to be written to a CD. A typical path is C:/Documents and Settings/username/Local Settings/Application Data/Microsoft/CD Burning.

CSIDL_COMMON_ADMINTOOLS  (FOLDERID_CommonAdminTools)
Version 5.0. The file system directory that contains administrative tools for all users of the computer.

CSIDL_COMMON_ALTSTARTUP  (FOLDERID_CommonStartup)
The file system directory that corresponds to the nonlocalized Startup program group for all users. Valid only for Microsoft Windows NT systems. This value is recognized in Windows Vista for backward compatibility, but the folder itself no longer exists.

CSIDL_COMMON_APPDATA  (FOLDERID_ProgramData)
Version 5.0. The file system directory that contains application data for all users. A typical path is C:/Documents and Settings/All Users/Application Data. This folder is used for application data that is not user specific. For example, an application can store a spell-check dictionary, a database of clip art, or a log file in the CSIDL_COMMON_APPDATA folder. This information will not roam and is available to anyone using the computer.

CSIDL_COMMON_DESKTOPDIRECTORY  (FOLDERID_PublicDesktop)
The file system directory that contains files and folders that appear on the desktop for all users. A typical path is C:/Documents and Settings/All Users/Desktop. Valid only for Windows NT systems.

CSIDL_COMMON_DOCUMENTS  (FOLDERID_PublicDocuments)
The file system directory that contains documents that are common to all users. A typical paths is C:/Documents and Settings/All Users/Documents. Valid for Windows NT systems and Microsoft Windows 95 and Windows 98 systems with Shfolder.dll installed.

CSIDL_COMMON_FAVORITES  (FOLDERID_Favorites)
The file system directory that serves as a common repository for favorite items common to all users. Valid only for Windows NT systems.

CSIDL_COMMON_MUSIC  (FOLDERID_PublicMusic)
Version 6.0. The file system directory that serves as a repository for music files common to all users. A typical path is C:/Documents and Settings/All Users/Documents/My Music.

CSIDL_COMMON_OEM_LINKS  (FOLDERID_CommonOEMLinks)
This value is recognized in Windows Vista for backward compatibility, but the folder itself is no longer used.

CSIDL_COMMON_PICTURES  (FOLDERID_PublicPictures)
Version 6.0. The file system directory that serves as a repository for image files common to all users. A typical path is C:/Documents and Settings/All Users/Documents/My Pictures.

CSIDL_COMMON_PROGRAMS  (FOLDERID_CommonPrograms)
The file system directory that contains the directories for the common program groups that appear on the Start menu for all users. A typical path is C:/Documents and Settings/All Users/Start Menu/Programs. Valid only for Windows NT systems.

CSIDL_COMMON_STARTMENU  (FOLDERID_CommonStartMenu)
The file system directory that contains the programs and folders that appear on the Start menu for all users. A typical path is C:/Documents and Settings/All Users/Start Menu. Valid only for Windows NT systems.

CSIDL_COMMON_STARTUP  (FOLDERID_CommonStartup)
The file system directory that contains the programs that appear in the Startup folder for all users. A typical path is C:/Documents and Settings/All Users/Start Menu/Programs/Startup. Valid only for Windows NT systems.

CSIDL_COMMON_TEMPLATES  (FOLDERID_CommonTemplates)
The file system directory that contains the templates that are available to all users. A typical path is C:/Documents and Settings/All Users/Templates. Valid only for Windows NT systems.

CSIDL_COMMON_VIDEO  (FOLDERID_PublicVideos)
Version 6.0. The file system directory that serves as a repository for video files common to all users. A typical path is C:/Documents and Settings/All Users/Documents/My Videos.

CSIDL_COMPUTERSNEARME  (FOLDERID_NetworkFolder)
The folder that represents other computers in your workgroup.

CSIDL_CONNECTIONS  (FOLDERID_ConnectionsFolder)
The virtual folder that represents Network Connections, that contains network and dial-up connections.

CSIDL_CONTROLS  (FOLDERID_ControlPanelFolder)
The virtual folder that contains icons for the Control Panel applications.

CSIDL_COOKIES  (FOLDERID_Cookies)
The file system directory that serves as a common repository for Internet cookies. A typical path is C:/Documents and Settings/username/Cookies.

CSIDL_DESKTOP  (FOLDERID_Desktop)
The virtual folder that represents the Windows desktop, the root of the namespace.

CSIDL_DESKTOPDIRECTORY  (FOLDERID_Desktop)
The file system directory used to physically store file objects on the desktop (not to be confused with the desktop folder itself). A typical path is C:/Documents and Settings/username/Desktop.

CSIDL_DRIVES  (FOLDERID_ComputerFolder)
The virtual folder that represents My Computer, containing everything on the local computer: storage devices, printers, and Control Panel. The folder can also contain mapped network drives.

CSIDL_FAVORITES  (FOLDERID_Favorites)
The file system directory that serves as a common repository for the user's favorite items. A typical path is C:/Documents and Settings/username/Favorites.

CSIDL_FONTS  (FOLDERID_Fonts)
A virtual folder that contains fonts. A typical path is C:/Windows/Fonts.

CSIDL_HISTORY  (FOLDERID_History)
The file system directory that serves as a common repository for Internet history items.

CSIDL_INTERNET  (FOLDERID_InternetFolder)
A virtual folder for Internet Explorer.

CSIDL_INTERNET_CACHE  (FOLDERID_InternetCache)
Version 4.72. The file system directory that serves as a common repository for temporary Internet files. A typical path is C:/Documents and Settings/username/Local Settings/Temporary Internet Files.

CSIDL_LOCAL_APPDATA  (FOLDERID_LocalAppData)
Version 5.0. The file system directory that serves as a data repository for local (nonroaming) applications. A typical path is C:/Documents and Settings/username/Local Settings/Application Data.

CSIDL_MYDOCUMENTS  (FOLDERID_Documents)
Version 6.0. The virtual folder that represents the My Documents desktop item. This value is equivalent to CSIDL_PERSONAL .

CSIDL_MYMUSIC  (FOLDERID_Music)
The file system directory that serves as a common repository for music files. A typical path is C:/Documents and Settings/User/My Documents/My Music.

CSIDL_MYPICTURES  (FOLDERID_Pictures)
Version 5.0. The file system directory that serves as a common repository for image files. A typical path is C:/Documents and Settings/username/My Documents/My Pictures.

CSIDL_MYVIDEO  (FOLDERID_Videos)
Version 6.0. The file system directory that serves as a common repository for video files. A typical path is C:/Documents and Settings/username/My Documents/My Videos.

CSIDL_NETHOOD  (FOLDERID_NetHood)
A file system directory that contains the link objects that may exist in the My Network Places virtual folder. It is not the same as CSIDL_NETWORK , which represents the network namespace root. A typical path is C:/Documents and Settings/username/NetHood.

CSIDL_NETWORK  (FOLDERID_NetworkFolder)
A virtual folder that represents Network Neighborhood, the root of the network namespace hierarchy.

CSIDL_PERSONAL  (FOLDERID_Documents)
Version 6.0. The virtual folder that represents the My Documents desktop item. This is equivalent to CSIDL_MYDOCUMENTS .

Previous to Version 6.0. The file system directory used to physically store a user's common repository of documents. A typical path is C:/Documents and Settings/username/My Documents. This should be distinguished from the virtual My Documents folder in the namespace. To access that virtual folder, use SHGetFolderLocation, which returns the ITEMIDLIST for the virtual location, or refer to the technique described in Managing the File System.

CSIDL_PRINTERS  (FOLDERID_PrintersFolder)
The virtual folder that contains installed printers.

CSIDL_PRINTHOOD  (FOLDERID_PrintHood)
The file system directory that contains the link objects that can exist in the Printers virtual folder. A typical path is C:/Documents and Settings/username/PrintHood.

CSIDL_PROFILE  (FOLDERID_Profile)
Version 5.0. The user's profile folder. A typical path is C:/Documents and Settings/username. Applications should not create files or folders at this level; they should put their data under the locations referred to by CSIDL_APPDATA or CSIDL_LOCAL_APPDATA .

CSIDL_PROGRAM_FILES  (FOLDERID_ProgramFiles)
Version 5.0. The Program Files folder. A typical path is C:/Program Files.

CSIDL_PROGRAM_FILESX86  (FOLDERID_ProgramFilesX86)

CSIDL_PROGRAM_FILES_COMMON  (FOLDERID_ProgramFilesCommon)
Version 5.0. A folder for components that are shared across applications. A typical path is C:/Program Files/Common. Valid only for Windows NT, Windows 2000, and Windows XP systems. Not valid for Windows Millennium Edition (Windows Me).

CSIDL_PROGRAM_FILES_COMMONX86  (FOLDERID_ProgramFilesCommonX86)

CSIDL_PROGRAMS  (FOLDERID_Programs)
The file system directory that contains the user's program groups (which are themselves file system directories). A typical path is C:/Documents and Settings/username/Start Menu/Programs.

CSIDL_RECENT  (FOLDERID_Recent)
The file system directory that contains shortcuts to the user's most recently used documents. A typical path is C:/Documents and Settings/username/My Recent Documents. To create a shortcut in this folder, use SHAddToRecentDocs . In addition to creating the shortcut, this function updates the Shell's list of recent documents and adds the shortcut to the My Recent Documents submenu of the Start menu.

CSIDL_RESOURCES  (FOLDERID_ResourceDir)
Windows Vista. The file system directory that contains resource data. A typical path is C:/Windows/Resources.

CSIDL_RESOURCES_LOCALIZED  (FOLDERID_LocalizedResourcesDir)

CSIDL_SENDTO  (FOLDERID_SendTo)
The file system directory that contains Send To menu items. A typical path is C:/Documents and Settings/username/SendTo.

CSIDL_STARTMENU  (FOLDERID_StartMenu)
The file system directory that contains Start menu items. A typical path is C:/Documents and Settings/username/Start Menu.

CSIDL_STARTUP  (FOLDERID_Startup)
The file system directory that corresponds to the user's Startup program group. The system starts these programs whenever any user logs onto Windows NT or starts Windows 95. A typical path is C:/Documents and Settings/username/Start Menu/Programs/Startup.

CSIDL_SYSTEM  (FOLDERID_System)
Version 5.0. The Windows System folder. A typical path is C:/Windows/System32.

CSIDL_SYSTEMX86  (FOLDERID_SystemX86)

CSIDL_TEMPLATES  (FOLDERID_Templates)
The file system directory that serves as a common repository for document templates. A typical path is C:/Documents and Settings/username/Templates.

CSIDL_WINDOWS  (FOLDERID_Windows)
Version 5.0. The Windows directory or SYSROOT. This corresponds to the %windir% or %SYSTEMROOT% environment variables. A typical path is C:/Windows.

Flags  

CSIDL_FLAG_CREATE  (KF_FLAG_CREATE)
Version 5.0. Combine with another CSIDL to force the creation of the associated folder if it does not exist.

CSIDL_FLAG_DONT_UNEXPAND  (KF_FLAG_DONT_UNEXPAND)
Combine with another CSIDL constant to ensure the expansion of environment variables.

CSIDL_FLAG_DONT_VERIFY  (KF_FLAG_DONT_VERIFY)
Combine with another CSIDL constant, except for CSIDL_FLAG_CREATE , to return an unverified folder path with no attempt to create or initialize the folder.

CSIDL_FLAG_NO_ALIAS  (KF_FLAG_NO_ALIAS)
Combine with another CSIDL constant to ensure the retrieval of the true system path for the folder, free of any aliased placeholders such as %USERPROFILE%, returned by SHGetFolderLocation. This flag has no effect on paths returned by SHGetFolderPath.

CSIDL_FLAG_PER_USER_INIT  

CSIDL_FLAG_MASK  
A mask for any valid CSIDL flag value.

Remarks

These values supersede the use of environment variables for this purpose. They are in turn superseded in Windows Vista and later by the KNOWNFOLDERID values.

A CSIDL is used in conjunction with one of four Shell functions, SHGetFolderLocation, SHGetFolderPath, SHGetSpecialFolderLocation, and SHGetSpecialFolderPath, to retrieve a special folder's path or pointer to an item identifier list (PIDL).

Combine CSIDL_FLAG_CREATE with any of the other CSIDLs, except for CSIDL_FLAG_DONT_VERIFY, to force the creation of the associated folder. The remaining CSIDLs correspond to either file system folders or virtual folders. Where the CSIDL identifies a file system folder, a commonly used path is given as an example. Other paths may be used. Some CSIDLs can be mapped to an equivalent %VariableName% environment variable. CSIDLs are more reliable, however, and should be used if possible.


解决anaconda占用C盘空间过多问题 anaconda就算安装在其他盘,默认会把索引、锁定文件、压缩包等都放到系统盘(C盘),我用了两年,占用30GB。 1. 卸载不用的虚拟环境 查看已安装的虚拟环境 conda env list 卸载不用的、过期的虚拟环境 conda remove -n (要卸载的环境的名字) --all 2. 删除索引缓存、锁定文件、未使用过的包和tar包 conda clean -a 清理完之后,删除了15GB,还剩15GB,舒服了 ... 阅读详情

相关推荐

告别Mumu!在Mac(M1/M2)上免费搭建Android Emulator的保姆级避坑指南

本文提供在Mac(M1/M2)上免费搭建高性能Android模拟器的详细指南,特别针对Apple Silicon芯片优化。通过使用Google官方的ARM原生模拟器,开发者可以获得3-5倍的性能提升,降低CPU占用,并避免x86转译的兼容性问题。文章涵盖从环境准备、工具安装到AVD创建与优化的全流程,帮助用户避开常见陷阱,实现接近原生性能的体验。

weixin_42531886的博客 600

CSIDL_PROGRAM_FILES

 Unable to start program %CSIDL_PROGRAM_FILES%/... .exe解决方法:将运行程序缺少的dll、lib等文件拷到执行程序的目录下。

kuiyuan的专栏 2323

全志DRM框架下LVDS双屏异显配置实战

本文详细介绍了在全志DRM框架下配置LVDS双屏异显的实战经验。涵盖硬件连接、内核配置、设备树修改、背光控制及U-Boot适配等关键步骤,重点解析屏参转换技巧与双屏route配置,帮助开发者解决工业控制台等多屏应用中的显示适配问题,提升开发效率。

rnn9storyteller的博客 815

无法启动程序“%CSIDL_PROGRAM_FILES%/XX/XX.exe”。发生了通常表示安装被损坏的错误(代码 0x8007007e)。

vs2005调试DLL时,编译没有错误但在启动调试的时候提示:——————————————————————————————无法启动程序“%CSIDL_PROGRAM_FILES%/XX/XX.exe”。发生了通常表示安装被损坏的错误(代码 0x8007007e)。如果问题仍然存在,则通过“控制面板”中的“添加或删除程序”修复 Visual Studio 安装。—————

thanklife的专栏 1万+

SVDD和OCSVM的比较

OCSVM(one class support vector machine)即单类支持向量机,最先提出的文献为:Estimating the support of a high-dimensional distribution.该模型 将数据样本通过核函数映射到高维特征空间,使其具有更良好的聚集性,在特征空间中求解一个最优超平面实现目标数据与坐标原点的最大分离,如图1: 坐标原...

qq_33880788的博客 1万+

InfiniBand 与 RoCE 协议介绍

InfiniBand 是高性能互联的 “标杆”,以极致的低延迟、高可靠性适用于对性能要求苛刻的场景(如超算、大规模 AI 训练);而 RoCE 通过以太网实现 RDMA,平衡了性能与成本,成为数据中心和云计算的主流选择。两者均基于 RDMA 技术,核心目标是解决传统网络的 “CPU 瓶颈” 和 “延迟瓶颈”,推动高性能计算和分布式系统的发展。

jundao1997的专栏 714

有关无法启动程序 “%CSIDL_PROGRAM_FILES%/.../....exe" 的问题

利用vs2005或vs2008调试windows mobile 程序的时候,如果利用到了其他的资源有可能出现 无法启动程序 “%CSIDL_PROGRAM_FILES%/.../....exe”的提示。解决方法:1.选择要调试的项目2.选择菜单  项目xxx属性3.配置属性部署   输入相关的附加文件   该格式为 |||如:sqllite3.dll|$(TargetDir)|%CSIDL_PRO

yanzhibo的专栏IlgawME)Y*Ml 2275

GPT-5.5 是真好用!SCI论文润色与学术写作能力上全面提升,全流程指令已整理好!

输出规范:先输出完整的摘要正文,不添加额外说明,以Markdown表格形式提供中文自检说明,表格包含两列,列标题为“检查项”和“说明”,逐项说明是否已覆盖背景、研究问题、方法、结果及贡献,并简要评价摘要结构与表达是否符合要求,除上述内容外不输出其他信息。:你是一位(学术写作专家/期刊审稿人/论文评审专家),精通学术写作规范、逻辑结构、语法准确性及学术表达方式,你的任务是帮助提升论文的质量,包括语言润色、语法检查、逻辑优化和降低重复率。语言需简洁、正式、具有概括性,不展开具体论述,仅提供结构与要点说明。

智能AI让学术科研更容易 289

获取系统指定路径SHGetSpecialFolderPath

API声明: function ulong SHGetSpecialFolderPath(long hwndOwner,ref string lpszPath,int nFolder,boolean fCreate ) LIBRARY "shell32.dll" ALIAS FOR "SHGetSpecialFolderPathA" Function Long GetDesktopWindow(

it技术学习 766

Python爬虫实战:实时爬取东方财富网股票行情

东方财富网实时行情(价格、涨跌幅、成交量等)K线图、分时图、技术指标市盈率、换手率、总市值等指标相比某些收费API,东方财富网页端接口不需要登录、免费、响应快、封装清晰,适合爬虫实践。东方财富网股票数据接口分析实时数据抓取与字段提取数据结构化处理自动化批量抓取多线程加速采集数据可视化展示支持存储为CSV/Excel/数据库。

2201_76125261的博客 1万+

2025年下半年网络规划设计师综合知识真题及答案解析

1983年,ARPANet完成技术转型,对此后的 Internet发展全关重要,这一转型是指( ) A.电路交换转向分组交换 B.商业化转型 C.民用化转型 D.从 NCP 协议转向 TCP/IP 答案:D 解析:ARPANet 最初使用 NCP (Network Control Protocol)协议进行主机问通信。1983年1月1日,ARPANet 正式切换到TCP/IP 协议族,为后续Internet的发展奠定了统一协议基础。

鹿鸣天涯 945

[转]获取指定的系统路径 SHGetSpecialFolderPath

获取指定的系统路径 SHGetSpecialFolderPath(http://www.cnblogs.com/riky/archive/2008/02/09/1066291.html) 1#include<shlobj.h>2#pragmacomment(lib,"shell32.lib")34TCHARszPath[MA...

weixin_30693683的博客 193

27、超声成像技术与原理全面解析

本博客全面解析了超声成像技术与原理,涵盖声学材料特性、超声成像系统的基本概念与组成、关键技术如多普勒和聚焦技术、超声换能器的设计与原理、图像处理方法、系统校准与质量控制,以及超声成像的应用领域和发展趋势。旨在为医学诊断、工业检测和海洋声学等领域的研究人员和工程师提供深入的技术参考和指导。

z2a3b4c5d的博客 500

SHGetSpecialFolderPathA/SHGetFolderPathA/SHGetKnownFolderPath - 获取指定的系统路径

获取指定路径有三个函数,分别是:SHGetSpecialFolderPathA(HWND hwnd, LPSTR pszPath, int csidl, BOOL fCreate) BOOL;【已不再支持】SHGetFolderPathA(HWND hwnd, int csidl, HANDLE hToken, DWORD dwFlags, LPSTR psz...

dianbingyu7367的博客 1197

精雕软件(JDpaint) 5.5 绿色版

精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

SHGetSpecialFolderPath

转自:百度百科 http://baike.baidu.com/view/3449405.htm SHGetSpecialFolderPath 目录 简介 编辑本段简介 该api用来获取指定的系统路径 API声明: function ulongSHGetSpecialFolderPath(long hwndOwne...

weixin_30252155的博客 475

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

VC 获取指定文件夹路径的方法小结

VC获取指定文件夹路径   flyfish  2010-3-5   一 使用Shell函数 1 获取应用程序的安装路径   TCHAR buf[_MAX_PATH]; SHGetSpecialFolderPath(NULL,buf,CSIDL_PROGRAM_FILES,NULL); AfxMessageBox(buf); 2 获取应用程序数据路径的文件夹   TC

夜空的流星的专栏 2661

ssm框架搭建

这个是一个在idea上成功跑起来的ssm框架项目,保存在这里方便以后使用直接下载

VC 获取系统特殊文件夹的路径如:系统目录,桌面等

如果需要,请在StdAfx.h中添加 #include <shlobj.h> TCHAR MyDir[_MAX_PATH]; SHGetSpecialFolderPath(this->GetSafeHwnd(),MyDir,CSIDL_APPDATA,0); AfxMessageBox(MyDir); 其中第三个参数CSIDL_APPDATA可以为以下的值: CSIDL_BITBUCKET回收站 CSIDL_CONTROLS控制面...

technologyleader的专栏 842

直接获取Program Files目录的API

偶然间发现 SHGetSpecialFolderPath 这个API真是好东西,好多系统目录都可以直接获取了,再也不用一点点的拼装了。MSDN上的说明如下:  Syntax BOOL SHGetSpecialFolderPath(           HWND hwndOwner,     LPTSTR lpszPath,     int nFolder,     BOOL fCrea

Never too late to study 2602

开机自启c++代码

【代码】开机自启c++代码。

2401_84532311的博客 706
上一篇: 利用MFC的类库编写FTP程序 ------快速上手
下一篇: 一点感慨
zhsp1029
博客等级 码龄21年 115粉丝 89原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值