shemptyrecyclebin
shemptyrecyclebin函式,功能是清空指定驱动器的资源回收筒。
基本介绍
- 外文名:shemptyrecyclebin
- 类型:函式
- 学科:C++
- 功用:清空指定驱动器的资源回收筒
函式原型
HRESULT SHEmptyRecycleBin(
HWND hwnd,
LPCTSTR pszRootPath,
DWORD dwFlags
);
主要参数&返回值
hwnd
A handle to the parent window of any dialog boxes that might be displayed during the operation. This parameter can be NULL.(父视窗句柄。)
pszRootPath
The address of a null-terminated string of maximum length MAX_PATH that contains the path of the root drive on which the Recycle Bin is located. This parameter can contain the address of a string formatted with the drive, folder, and subfolder names, for example c:\windows\system\, etc. It can also contain an empty string or NULL. If this value is an empty string or NULL, all Recycle Bins on all drives will be emptied.(将要清空的资源回收筒的地址,如果为NULL,则清空所有驱动器上的资源回收筒。)
dwFlags
One or more of the following values.
SHERB_NOCONFIRMATION
No dialog box confirming the deletion of the objects will be displayed.
SHERB_NOPROGRESSUI
No dialog box indicating the progress will be displayed.
SHERB_NOSOUND
No sound will be played when the operation is complete.(用于清空资源回收筒的功能参数。)
Return Value
Returns S_OK if successful, or a COM-defined error value otherwise.
转载请注明出处海之美文 » shemptyrecyclebin