示例#1
0
		internal static Int64 ComputeRecycleBinSize (string path)
		{
			//Int32 hResult;
			ShellQueryRecycledBinInformationStructure oQueryInfo = new ShellQueryRecycledBinInformationStructure(false);

			/*hResult = */ShellApiNativeMethods.SHQueryRecycleBin (path, ref oQueryInfo);
			// Using a path like @"C:\" doesn't work :( but works in C++
			//hResult = ApiNativeMethods.SHQueryRecycleBin (@"C:\", ref oQueryInfo);

			return oQueryInfo.SizeOn64Bits;
		}
示例#2
0
		internal static extern Int32	SHQueryRecycleBin	([MarshalAs(UnmanagedType.LPWStr)]String path, ref ShellQueryRecycledBinInformationStructure shellQueryRBInfo);