网站首页  词典首页

请输入您要查询的函数:

 

术语 shemptyrecyclebin
释义 SHEmptyRecycleBin
语法:
HRESULT SHEmptyRecycleBin( HWND hwnd,
LPCTSTR pszRootPath,
DWORD dwFlags
);
SHEmptyRecycleBin功能
清空指定的驱动器上的回收站。
参数
hwnd
句柄的任何可能行动中显示对话框的父窗口。此参数可以为NULL。
pszRootPath
一个空地址结尾的最大长度MAX_PATH,其中包含根驱动器上的回收站所在的路径字符串。此参数可以包含与驱动器,文件夹格式化字符串地址,子文件夹名称,例如C:\\的Windows \\ System \\。它也可以包含一个空字符串或NULL。如果该值为空字符串或NULL,所有驱动器上的所有回收箱将被清空。
dwFlags
一个或多个下列值。
SHERB_NOCONFIRMATION
没有对话框中确认删除的对象将显示。
SHERB_NOPROGRESSUI
没有对话框,指示所取得的进展将被显示。
SHERB_NOSOUND
没有健全的时候将发挥操作完成。
返回值
返回S_OK如果成功,或COM定义的错误,否则价值。
功能信息
最低DLL版本 shell32.dll版本4.71或更高版本
自定义ImplementationNo
Headershellapi.h
import libraryshell32.lib
2000年最低经营systemsWindows时,Windows NT 4.0与Internet Explorer 4.0,视窗98,视窗与Internet Explorer 4.0 95
UnicodeImplemented为ANSI和Unicode版本。
参见
SHQueryRecycleBin
==英文原文==SHEmptyRecycleBin Function
Empties the Recycle Bin on the specified drive.
Syntax
HRESULT SHEmptyRecycleBin( HWND hwnd,
LPCTSTR pszRootPath,
DWORD dwFlags
);
Parameters
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\\. 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.
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.
Function Information
Minimum DLL Versionshell32.dll version 4.71 or later
Custom ImplementationNo
Headershellapi.h
Import libraryshell32.lib
Minimum operating systemsWindows 2000, Windows NT 4.0 with Internet Explorer 4.0, Windows 98, Windows 95 with Internet Explorer 4.0
UnicodeImplemented as ANSI and Unicode versions.
See Also
SHQueryRecycleBin
==原始网址==http://msdn.microsoft.com/en-us/library/bb762160(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:28:12