如何获得“特殊" Windows文件夹(回收站等)的本地化名称? [英] How can I get the localized name of a 'special' windows folder (Recycle bin etc.)?
问题描述
我正在尝试查找正确"的Windows API,以查找特殊"文件夹的本地化名称,特别是回收站.我希望能够通过一个适当本地化的对话框提示用户,询问他们是否要将文件发送到回收站或直接将其删除.
I'm trying to find out the 'correct' windows API for finding out the localized name of 'special' folders, specifically the Recycle Bin. I want to be able to prompt the user with a suitably localized dialog box asking them if they want to send files to the recycle bin or delete them directly.
我已经在互联网上(以及Stackoverflow上)找到了很多有关如何进行实际删除的信息,而且看起来很简单,我真的很想能够对文本进行本地化.
I've found lots on the internet (and on Stackoverflow) about how to do the actual deletion, and it seems simple enough, I just really want to be able to have the text localized.
推荐答案
阅读本文以获得代码示例和用法:
Read this article for code samples and usage:
http://www.codeproject.com/KB/winsdk/SpecialFolders.aspx
在MSDN上也有一篇文章可以帮助您通过API调用确定特殊文件夹的位置
Also there is an article on MSDN that helps you Identify the Location of Special Folders with API Calls
这篇关于如何获得“特殊" Windows文件夹(回收站等)的本地化名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!