版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、vc获取系统文件夹路径如i果需要,请在 stdafx. h 中添加 ttinclude <shlobj. h>char mydirmax_path;shgetspecialfolderpath(this->getsafehwnd(), mydir, csidl appdata, 0);afxmessagebox (mydir);/如果下面的值在vc开发环境中不存在话,可以在vc98/include/shl0bj. h 中定义该变量csidl_flag_create(0x8000)version 5. 0. combine this csidl with any of the
2、following csidls to force the creation of the associated foldercsidl_admintools(0x0030)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 wit
3、h the usercsidl_altstartup (oxoolcl)the file system directory that corresponds to the user's nonlocalized startup program groupcsidl_appdata(0x001a)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
4、usernameapplication data this csidl is supported by the redistributable shfolder.dll for systems that do not have the microsoft ® inter net explorer 4.0 integrated shell installedcsidl_bitbucket(0x000a)the virtual folder containing the objects in the user,s recycle bin.csidl_cdburn_area(0x00
5、3b)version 6. 0. the file system directory acting as a staging area for files waiting to be written to cd. a typical path is c:documents and settingsusernamelocal settingsapplication datamicrosoftcd burning.csidl_c0mm0n_admint00ls(0x002f)version 5.0. the file system directory containing administrati
6、ve tools for all users of the computercsidl_c0mm0n_altstartup(oxoole)the file system directory that corresponds to the nonlocalized startup program group for all users valid only for microsoft windows nt® systemscsidl_common_appdata(0x0023)version 5.0. the file system directory containing ap
7、plication data for all users a typical path is c:documents and settingsall usersapplication datacs i dl_commondesktopd i rectory (0x0019) /获取桌面csidl_common_documents(0x002e)the file system directory that contains documents that are common to all users a typical paths is c:documents and settingsall u
8、sersdocuments valid for windows nt systems and microsoft windows® 95 and windows 98 systems with shfolder dll installedcsidl_c0mm0n_favorites(0x00if) /获取收藏文件夹the file system directory that serves as a common repository for favorite items common to all users valid only for windows nt systemsc
9、sidl_common_music(0x0035)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 settingsall usersdocumentsmy musiccsidl_c0mm0n_pictures(0x0036)version 6.0. the file system directory that serves as a repository for imag
10、e files common to all users a typical path is c: documents and settingsall usersdocumentsmy picturescsidl_c0mm0n_pr0grams (0x0017) /获取程序菜单目录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
11、 and settingsall usersstart menuprograms valid only for windows nt systemscsidl_common_startmenu (0x0016) /开始菜单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 settingsall userssta.rt menu. valid only for w
12、indows nt systemscsidl_common_startup (0x0018) /获取启动菜单the file system directory that contains the programs that appear in the startup folder for all users a typical path is c:documents and settingsall usersstart menuprogra.mssta.rtup valid only for windows nt systems.csi discommontemplates (0x002d)
13、/临时文件夹the file system directory that contains the templates that are available to all users a typical path is c:documents and settingsall userstemplates valid only for windows nt systemscsidl_c0mm0n_vide0(0x0037)version 6.0. the file system directory that serves as a repository for video files commo
14、n to all users a typical path is c:documents and settingsall usersdocumentsmy videoscsi decontrols (0x0003)the virtual folder containing icons for the control panel applications.csidl_cookies (0x0021) /获取 cookies 冃录the file system directory that serves as a common repository for internet cookies a t
15、ypical path is c:documents and settingsusernamecookiescsidl_desktop (0x0000) /获取桌面the virtual folder representing the windows desktop, the root of the namespacecsidl_desktopdirectory (0x0010) /获取桌面the file system directory used to physically store file objects on the desktop (not to be confused with
16、 the desktop folder itself). a typical path is c:documents andsettingsusernamedesktopcsidldrives (0x0011)the virtual folder representing my computer, containing everything on the local computer: storage devices, printers, and control pane1. the folder may also contain mapped network drivescsidl_favo
17、rites(0x0006)the file system directory that serves as a common repository for the user's favorite items. a typical path is c:documents and settingsuserna.mefavorites.csidl_fonts (0x0014) /获取字体目录a virtual folder containing fonts a typical path is c:windowsfontscsidl_history (0x0022) /获取历史目录the fi
18、le system directory that serves as a common repository for internet history itemscsidl_internet(0x0001)a virtual folder representing the internetcsidl_internet.cache(0x0020)version 4. 72. the file system directory that serves as a common repository for temporary internet files a typical path isc:doc
19、uments and settingsusernamelocal settingstemporary internet filescsidl_local_appdata(0x001c)version 5.0. the file system directory that serves as a data repository for local (nonroaming) applications a typical path is c:documents and settingsusernameloca.lsettingsapplication datacsidl_mydocuments(0x
20、000c)version 6. 0. the virtual folder representing the my documents desktop item this should not be confused with csidl personal, which represents the file system folder that physically stores the documentscsidl_mymusic(0x000d)the file system directory that serves as a common repository for music fi
21、les a typical path is c:documents and settingsusermy documentsmy musiccsidljiypictures (0x0027)version 5. 0. the file system directory that serves as a common repository for image files a typical path is c:documents and settingsusernamemy documentsmy picturescsidljlyvideo(oxoooe)version 6. 0. the fi
22、le system directory that serves as a common repository for video files a typical path is c:documents and settingsusernamemy documentsmy videoscsidl nethood(0x0013)a file system directory containing the link objects that may exist in the my network places virtual folder it is not the same as csidl_ne
23、twork, which represents the network namespace root. a typical path is c:documents and settingsusernamenethoodcsidl_network(0x0012)a virtual folder representing network neighborhood, the root of the network namespace hierarchy.csidl_personal(0x0005)the file system directory used to physically store a
24、 user's common repository of documents a typical path is c:documents and settingsusernamemy documents this should be distinguished from the virtual my documents folder in the namespace, identified by csidl_mydocuments to access that virtual folder, use shgetfolderlocation, which returns the item
25、idlist for the virtual location, or refer to the technique described in managing the file systemcsidl_printers(0x0004)the virtual folder containing installed printerscsidl_printli00d(0x001b)the file system directory that contains the link objects that can exist in the printers virtual folder a typic
26、al path is c:documents and settingsusernameprintiioodcsidlpr0file (0x0028)version 5.0. the user's profile folder a typical path is c:documents and settingsusername applications should not create files or folders at this level; they should put their data under the locations referred to by csidl_a
27、ppdata or csidl_local_appdatacsidlprofiles(0x003e)version 6. 0. the file system directory containing user profile folders a typical path is c:documents and settingscsidl_program_files(0x0026)version 5.0. the program files folder a typical path is c:program filescsidlpr0gram_files_c0mm0n(0x002b)versi
28、on 5. 0. a folder for components that are shared across applications. a typical path is c:program filescommon. valid only for windows nt, windows 2000, and windows xp systems. not valid for windows millennium edition (windows me).csidl_programs(0x0002)the file system directory that contains the user
29、,s program groups (which are themselves file system directories) a typical path is c:documents and settingsusernamestart menuprogramscsidlrecent (0x0008)the file system directory that contains shortcuts to the user's most recently used documents a typical path is c:documents and settingsusernamemy recent documents to create a shortcut in this folder, use shaddtorecentdocs. in addition to creating the shortcut, this function updates the shelt s list of recent documents and adds the shortcut to the my recentdocuments submenu of t
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年德州市德城区面向山东省省属公费师范生公开招聘教师(15名)笔试备考试题及答案详解
- 2026年延安市中医医院招聘笔试参考试题及答案详解
- 2026年徐州市贾汪区幼儿园教师招聘笔试备考试题及答案解析
- 2026年福建省福州滨海实验学校临聘教师招聘笔试参考试题及答案详解
- 2026中国电信桐城分公司乡镇用工招聘笔试备考题库及答案详解
- 厦门市前埔南区小学非在编人员招聘笔试参考题库及答案详解
- 2026无锡市汇创科技发展有限公司招聘3人笔试备考题库及答案详解
- 园林绿化工程施工组织设计方案
- 2026年黄山市黄山区幼儿园教师招聘笔试参考试题及答案解析
- 春季传染病防控实施方案
- 测匀加速直线运动物体的加速度实验报告
- 人口信息查询申请表(表格)
- 安徽省合肥市合肥第一中学2022-2023学年高一下学期期末物理试题
- 离婚协议书电子版下载
- 人教版三年级数学下册教案(表格式)【全册】
- 信号与动态测量系统
- 中医诊断学局部望诊
- 交通组织疏导方案
- 2023年职业中专美术教师招聘考试题目另附答案
- 太钢不锈冷轧厂简介
- 电磁感应中“单、双棒”问题归类例析
评论
0/150
提交评论