登录
首页 » 其他 » C# 清空回收站的源码实例

C# 清空回收站的源码实例

于 2022-12-15 发布 文件大小:12.88 kB
0 98
下载积分: 2 下载次数: 1

代码说明:

C# 清空回收站,这个功能不用多介绍了吧,你懂的,具体的实现请看以下代码:   const int SHERB_NOCONFIRMATION = 0x000001;//整型常量在API中表示删除时没有确认对话框   const int SHERB_NOPROGRESSUI = 0x000002;//在API中表示不显示删除进度条   const int SHERB_NOSOUND = 0x000004;//在API中表示删除完毕时不播放声音   [DllImportAttribute("shell32.dll")]//声明API函数   private static extern int SHEmptyRecycleBin(IntPtr handle, string root, int falgs);   private void button1_Click(object sender, EventArgs e)   {    //清空回收站    SHEmptyRecycleBin(this.Handle, "", SHERB_NOCONFIRMATION + SHERB_NOPROGRESSUI + SHERB_NOSOUND);   }

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论


0 个回复

  • it is a player, a number of channels can be watched with no download.
    它是一个播放器,可以观看多个频道并不用下载其他.-it is a player, a number of channels can be watched with no download.
    2023-02-18 03:25:03下载
    积分:1
  • 所得税打开富裕啊随访速度发芽率安静含漱剂地方数据库大后方了防哈喇可是似的看见后撒...
    所得税打开富裕啊随访速度发芽率安静含漱剂地方数据库大后方了防哈喇可是似的看见后撒-Income tax the rich to open up the speed of germination rate ah quiet place Gargles agent database Kazakhstan rear anti-La, however like to see after the scattering
    2022-12-09 12:20:03下载
    积分:1
  • Machine Development System Demo procedures
    片机开发系统演示程序 - 8位数码管显示 */ /* */ /* 8位数码管从左至右显示 0-7-Machine Development System Demo procedures- an 8-bit digital tube display*//**//* 8-bit digital tube display from left to right 0-7
    2022-03-19 00:54:01下载
    积分:1
  • 对文件进行处理。 包括文件复制、分割、连接、查看等。
    对文件进行处理。 包括文件复制、分割、连接、查看等。-of documents processed. Including document reproduction, segmentation, connectivity, View, etc..
    2022-12-05 03:35:03下载
    积分:1
  • VB TreeView应用实例-支持多节点选择
    一个支持多节点选择的VB TreeView应用实例,TreeView树型多节点选择原型示例。你或许对下列代码感兴趣:   VB版竖直带TAB的树形折叠菜单   vb增强型Treeview视图菜单控件
    2022-04-20 14:36:29下载
    积分:1
  • 一维信号卷积试验 读入两个数组,进行卷积,并在DOS下画图显示卷积结果。...
    一维信号卷积试验 读入两个数组,进行卷积,并在DOS下画图显示卷积结果。-One-dimensional signal deconvolution test read two array for convolution, and in DOS convolution results show that under the drawing.
    2022-03-20 01:36:48下载
    积分:1
  • 1.本系统生成静态shtml文件!不过仅仅是后缀而已,实生成的是静态的html页面,熟悉asp的朋友可以自己修改后缀! 2.本系统采用功能强大的eWebSof...
    1.本系统生成静态shtml文件!不过仅仅是后缀而已,其实生成的是静态的html页面,熟悉asp的朋友可以自己修改后缀! 2.本系统采用功能强大的eWebSoft在线编辑器2.8.0,能够保存远程图片! 3.使用一级分类方法,简单,又能有效的解决一般分类问题!简单实用! 4.后台管理相对强大,文章的添加和修改,类别的修改,添加,删除,傻瓜方式生成Js代码,方便与入门级站长的管理! 5.能生成 JS代码,在任何地方都能调用本系统的文章! 6.由于本系统主要用于中小型网站,并且,所有论坛系统都有用户注册数据库,所以不使用会员注册,既能减少维护的困难度,又能与论坛系统/如动网搭配,共同构建网站平台!以后版本可能根据需要增加。 7.完善的数据备份,一旦发生数据崩溃,几秒间将恢复系统! 适用网站:大中小型站点,与论坛配合更能增强功能 后台登录页面:admin.asp 后台登录帐号:苏青网 后台登录密码:www.54xiu.com 编辑器管理帐号:苏青网 编辑器管理密码:www.54xiu.com -1. The system generated static shtml paper! But i s only suffixes, in fact generated static html pages, familiar with the asp friends can change their suffix! 2. The system uses powerful eWebSoft online editor 2.8.0, to preserve long-distance pictures! 3. The use of a classification method, a simple, yet effective solution to the general classification! Simple and practical! 4. Relatively strong management background, the article adds and changes, the types of changes, add, delete, stupid way js code generation, convenient and director of the
    2023-03-27 23:30:03下载
    积分:1
  • Minigof 迷你高尔夫游戏源代码(手机版)
    Minigof 迷你高尔夫游戏源代码(手机版)-Minigof mini-golf game source code (mobile version)
    2022-03-06 14:20:06下载
    积分:1
  • VB精仿 Regedit win7 注册表
    VB精仿 Regedit win7 注册表,在Windows XP下也同样运行稳定,精仿的注册表,不管是从界面还是功能上来说,几乎和Windows7自带的注册表编辑器一模一样的。从键值和结构等各个方面,甚至还要优于windows注册表,键值设置界面功能比较多,注册表运行效果如图所示,是不是很强大?
    2022-02-07 14:46:47下载
    积分:1
  • This is my source of the mine ,with flexible structor
    自己的扫雷程序源代码,结构灵巧-This is my source of the mine ,with flexible structor
    2022-02-02 07:44:36下载
    积分:1
  • 696518资源总数
  • 104634会员总数
  • 21今日下载