From 86f75fe243adec90caebe2d1ebaf6c6ad925ad9a Mon Sep 17 00:00:00 2001 From: Kimmo Pekkola Date: Thu, 30 Jul 2009 20:15:10 +0000 Subject: [PATCH] EmptyBinSilent !bang should be silent now. --- Plugins/PluginRecycleManager/RecycleManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/PluginRecycleManager/RecycleManager.cpp b/Plugins/PluginRecycleManager/RecycleManager.cpp index 4d1a4875..be2d1b87 100644 --- a/Plugins/PluginRecycleManager/RecycleManager.cpp +++ b/Plugins/PluginRecycleManager/RecycleManager.cpp @@ -254,7 +254,7 @@ void ExecuteBang(LPCTSTR args, UINT id) { //Empty the Recycle Bin (no prompt) if(wcsicmp(driveSet.c_str(), L"ALL") == 0) { - if(SHEmptyRecycleBin( NULL, NULL, NULL ) == S_OK) + if(SHEmptyRecycleBin( NULL, NULL, SHERB_NOCONFIRMATION | SHERB_NOPROGRESSUI | SHERB_NOSOUND ) == S_OK) { return; } @@ -270,7 +270,7 @@ void ExecuteBang(LPCTSTR args, UINT id) for(int i=0;i < tokens.size(); i++) { std::wstring strd = tokens.at(i); - SHEmptyRecycleBin( NULL, strd.c_str(), NULL ); // empty bin + SHEmptyRecycleBin( NULL, strd.c_str(), SHERB_NOCONFIRMATION | SHERB_NOPROGRESSUI | SHERB_NOSOUND ); // empty bin } return; }