SHQueryRecycleBin function Null safety shell32
- Pointer<
Utf16> pszRootPath, - Pointer<
SHQUERYRBINFO> pSHQueryRBInfo
Retrieves the size of the Recycle Bin and the number of items in it, for a specified drive.
SHSTDAPI SHQueryRecycleBinW(
LPCWSTR pszRootPath,
LPSHQUERYRBINFO pSHQueryRBInfo
);
Implementation
int SHQueryRecycleBin(
Pointer<Utf16> pszRootPath, Pointer<SHQUERYRBINFO> pSHQueryRBInfo) {
final _SHQueryRecycleBin = _shell32.lookupFunction<
Int32 Function(
Pointer<Utf16> pszRootPath, Pointer<SHQUERYRBINFO> pSHQueryRBInfo),
int Function(Pointer<Utf16> pszRootPath,
Pointer<SHQUERYRBINFO> pSHQueryRBInfo)>('SHQueryRecycleBinW');
return _SHQueryRecycleBin(pszRootPath, pSHQueryRBInfo);
}