-
C# 清空回收站的源码实例
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);
}
- 2022-12-15 14:50:03下载
- 积分:1
-
很好用的串口调试的工具,可以支持多种校验码
很好用的串口调试的工具,可以支持多种校验码-a good debug tool for COM
- 2022-03-08 09:05:52下载
- 积分:1
-
VB API HOOK拦截程序源码
VB 基于API HOOK拦截程序源码,演示VB如何拦截API呼叫,這是網友問的問題,雖然這個問題並不適合用VB做,但並不是做不到,要多繞一段路,這個問題重點在於執行檔中的IAT(Import Address Table) 如果你對於PE黨並不熟悉 請參考PE檔簡介。一個Process再執行時,會將許多DLL載入到行程空間中,如呼叫User32.dll中的MessageBoxW就必須將User32.dll載入到位址空間,呼叫越多不同種的API,位址空間中的模組也就越多,至於如何得知行程所載入的模組請參考如何取得Process中載入的模組的資訊。
一般來說,如果是執行Notepad.exe 我們只要攔截模組Notepad.exe的IAT即可,除非你想攔截Notepad.exe是否有透過其他DLL去執行要攔截的函數,才需要去攔截其他載入的模組,這個程式整個攔截的過程如下:
1.在要攔截的程式上配置2塊記憶體空間,一塊用來放要攔截的程式,一塊用來放所需要用的區域變數 至於如何再外部程式配置記憶體請參考如何在外部程式配置記憶體
AddressOfRemoteFunction=CreateRemoteMememory(SomeProcess,FunctionSize)
AddressOfVar=CreateRemoteMememory(SomeProcess,DataSize)
2.將要注射的函數寫到配置的位址空間 並初使化變數
Call WriteCodeTo(AddressOfRemoteFunction)
[AddressOfVar]=1
[AddressOfVar+256]=Old_FunctionAddress
3.修改IAT位址到新配置的函數
- 2023-07-21 01:35:17下载
- 积分:1
-
kalman
四旋翼飞行器或者其他滤波用的卡尔曼滤波,实测有用!为部分关键代码(Kalman filter for quad-rotor aircraft or other filtering is useful in practical measurement. For some key code)
- 2020-06-18 08:40:01下载
- 积分:1
-
C#做的定时关机、重新启动、注销程序,保护你的健康!
C#做的定时关机、重新启动、注销程序,保护你的健康!
- 2022-10-24 02:20:03下载
- 积分:1
-
ACKERMAN-STEERING-MECHANISM
The intention of Ackermann geometry is to avoid the need for tyres to slip sideways when following the path around a curve. The geometrical solution to this is for all wheels to have their axles arranged as radii of circles with a common centre point. As the rear wheels are fixed, this centre point must be on a line extended from the rear axle.
- 2020-06-20 15:40:01下载
- 积分:1
-
In the photonic crystal, the introduction of magnetic conductivity modulation to...
在光子晶体中,引入磁导率调制来计算PBG-In the photonic crystal, the introduction of magnetic conductivity modulation to calculate the PBG
- 2022-06-30 21:33:32下载
- 积分:1
-
area of circle
a program to find the area of circle
- 2017-12-20 21:27:49下载
- 积分:1
-
这是一个ASP编写的关于制作网页论坛的程序,首先声明这段程序并不是我编的,我只是觉得这段程序写得很好,对ASP初学者有好处....
这是一个ASP编写的关于制作网页论坛的程序,首先声明这段程序并不是我编的,我只是觉得这段程序写得很好,对ASP初学者有好处.-This is an ASP, on the Forum website production process, the first to declare that this procedure is not my series, I just feel that this was very well written procedures for beginners ASP good.
- 2022-09-24 23:35:04下载
- 积分:1
-
ADXL345-Lib-v1-3
adxl345 accelerator device
- 2020-06-21 22:40:01下载
- 积分:1