Desktop Functions: ![]() Smart Device Functions:
|
SHQueryRecycleBin (shell32)
C# Signature:
[DllImport("shell32.dll")] User-Defined Types:
[StructLayout(LayoutKind.Explicit, Size=20)] Notes:None. Tips & Tricks:Please add some! Sample Code:
public static int GetCount() N.B./*<a href="http://websearch01.mcclient.com/search.php?s=using+p%2finvoke+in+.net&rnd=ixleei" onmouseover="window.status='http://www.pinvoke.net/info.php?in'; return true;" onMouseOut="window.status='Done'; return true;">In</a> case of Windows 2000 OS, you must supply the root drive. So <a href="http://websearch01.mcclient.com/search.php?s=using+p%2finvoke+in+.net&rnd=tkxrxe" onmouseover="window.status='http://www.pinvoke.net/info.php?in'; return true;" onMouseOut="window.status='Done'; return true;">In</a> order to calculate the total no of recycled items , you must add the recycled items from each drive e.g. For getting the recycled items from the C:\ , you should use: */
int hresult = SHQueryRecycleBin(@"C:\", ref sqrbi); Alternative Managed API:Do you know one? Please contribute it! Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|