如何获取 recyclebin 的这个属性并使用 C# 切换它。
问问题
138 次
1 回答
0
There is no supported way to do so irrespective of language.
As far as I understand there is no API to configure this settings. You can query information about recycle bin via PInvoke (SHQueryRecycleBin and empty (SHEmptyRecycleBin).
Couple ways to touch those settings can be found in Raymond Chen's blog post - What is default size of the Recycle Bin.... Summary below:
Official way to adjust size - via policy Maximum allowed Recycle Bin size.
Unsupported way - tweak registry settings - Managing the Recycle bin
于 2017-03-16T03:36:54.310 回答