网站首页  词典首页

请输入您要查询的函数:

 

术语 shqueryrecyclebin
释义 SHQueryRecycleBin
语法:
HRESULT SHQueryRecycleBin( LPCTSTR pszRootPath,
LPSHQUERYRBINFO pSHQueryRBInfo
);
SHQueryRecycleBin功能
检索回收站的规模和在它的项目数量,在指定的驱动器。
参数
pszRootPath
一个空地址结尾的字符串的最大长度MAX_PATH遏制根驱动器上的回收站所在的路径。此参数可以包含与驱动器,文件夹格式化字符串地址,子文件夹名称(丙:\\的Windows \\ System ...).
pSHQueryRBInfo
一个SHQUERYRBINFO结构,接收回收站的信息的地址。结构的cbSize成员必须设置结构的大小,然后再调用这个API。
返回值
返回S_OK如果成功,或其他错误值。
备注
使用Microsoft Windows 2000,如果是空的pszRootPath参数传递,函数失败并返回E_INVALIDARG错误代码。在操作系统的早期版本中,您可以传递一个空字符串或NULL。如果pszRootPath包含一个空字符串或NULL,信息检索所有回收站在所有驱动器。
功能信息
最低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版本。
参见
SHEmptyRecycleBin
==英文原文==SHQueryRecycleBin Function
Retrieves the size of the Recycle Bin and the number of items in it, for a specified drive.
Syntax
HRESULT SHQueryRecycleBin( LPCTSTR pszRootPath,
LPSHQUERYRBINFO pSHQueryRBInfo
);
Parameters
pszRootPath
The address of a null-terminated string of maximum length MAX_PATH to contain 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 (C:\\Windows\\System...).
pSHQueryRBInfo
The address of a SHQUERYRBINFO structure that receives the Recycle Bin information. The cbSize member of the structure must be set to the size of the structure before calling this API.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
With Microsoft Windows 2000, if NULL is passed in the pszRootPath parameter, the function fails and returns an E_INVALIDARG error code. In earlier versions of the operating system, you can pass an empty string or NULL. If pszRootPath contains an empty string or NULL, information is retrieved for all Recycle Bins on all drives.
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
SHEmptyRecycleBin
==原始网址==http://msdn.microsoft.com/en-us/library/bb762241(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:30:55