词条 | shemptyrecyclebin |
释义 | 函数功能Empties the Recycle Bin on the specified drive. 清空指定驱动器的回收站。 函数原型HRESULT SHEmptyRecycleBin( HWND hwnd, LPCTSTR pszRootPath, DWORD dwFlags ); 主要参数&返回值hwndA handle to the parent window of any dialog boxes that might be displayed during the operation. This parameter can be NULL. pszRootPathThe 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. dwFlagOne 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 ValueReturns S_OK if successful, or a COM-defined error value otherwise. |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。