|
Borland C ++ Builder FAQ
|
||
| The content | The last update: 12/12/2008 | |
|
How program to clear a basket? The author: OlegGG Example: #include <Shellapi.h>
if (SUCCEEDED (SHEmptyRecycleBin (NULL, NULL, SHERB_NOCONFIRMATION + SHERB_NOPROGRESSUI + SHERB_NOSOUND))
{
ShowMessage ("OK");
}
else
{
ShowMessage ("ERR");
}
The first function argument - HWND a window to which will posess all dialogues caused by function (it can be equal NULL). The second - a disk on which will be cleared a basket (it can be equal NULL). The third - flags: SHERB_NOCONFIRMATION - Not to confirm, SHERB_NOPROGRESSUI - Not to show a window with прогрессбаром, SHERB_NOSOUND - Not to notify a sound on the operation termination. |