shemptyrecyclebin

shemptyrecyclebin函式,功能是清空指定驅動器的資源回收筒

基本介紹

  • 外文名:shemptyrecyclebin
  • 類型:函式
  • 學科:C++
  • 功用:清空指定驅動器的資源回收筒
函式原型,主要參數&返回值,hwnd,pszRootPath,dwFlags,Return Value,

函式原型

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.

相關詞條

熱門詞條

聯絡我們