Saturday, September 27, 2008

EPMS BIRT

Monday, September 22, 2008

Some theses to read

A Rate Control Protocol for High Speed Streaming Video

Polar: an efficient finding nearest neighbor algorithm for overlay network

An Adaptive Mixing Audio Gateway in Heterogeneous Networks for ADMIRE System

Admire - A Prototype of Large Scale E-collaboration Platform

A Dynamic Optimal Selective Control Mechanism for Multi-Datastream Security in Video Conference System

Border Media Gateway: Extending Multimedia Multicast Gateway to Support Inter-AS Conferencing

Search "Admire" in IEEE

Sunday, September 21, 2008

Tuesday, September 16, 2008

Subclass and Superclass of Window

1. 子类化
通过GetWindowLongSetWindowLong改变一个窗口实例的窗口函数。子类化所要做的就是为一个窗口实例编写新的窗口函数。其操作是在实例级别上进行的。

2. 超类化
窗口超类化是在窗口类——WNDCLASS或WNDCLASSEX级别进行的改变窗口类特征的。
使用过程:首先获得一个已存在的窗口类,然后设置窗口类,最后注册该窗口类。

3. 总结
  • 子类化是实例级别上的,只要能获得窗口的实例,就可对其子类化。而超类化是在窗口类级别上的,不能用于由Windows创建的窗口。
    例如,对话框上的按钮就不能进行超类化,因为按钮类的名称为BUTTON,对应上述代码中的"Splash",是系统默认设计好的)。
  • 子类化修改窗口过程函数, 超类化修改窗口类。
参考

Inject Code into Another Process

1.将代码放入DLL中,通过windows hooks将DLL映射到远程进程。
在EXE中显式或隐式调用HookDll.dll中的InjectDllInjectDll函数调用SetWindowsHookEx。这时,HookDll.dll被映射到目标进程空间,并且通过HookProc监视并处理目标进程的消息。
由于HookDll.dll同时映射到了EXE和远程进程,所以可用通过共享数据区或其它方式进行通信。
以下为HookDll.dll源代码。

HookProc与窗口过程的区别?
DLL的物理地址相同?


2.将代码放入EXE中,通过使用CreateRemoteThread和LoadLibrary将DLL映射到远程进程。

The Execution of Switch and Case

switch和case语句只是选择入口,直至执行到switch结尾或遇到break.

MSDN:
Execution of the statement body begins at the selected statement and proceeds until the end of the body or until a break statement transfers control out of the body.

Monday, September 15, 2008

Create Dialog-based Win32 Application

1. 创建空win32工程
打开[File]--[New]--[Project...],单击[Next]后如图所示,选择Empty Project后单击[Finished].
2. 添加资源
打开[Project]--[Add New Items...].输入Name后,单击[Add].
在Resource View窗口中找到对应资源,右键单击,选择[Add Resources...]然后选择Dialog类型,并在ID属性中填入IDD_DIALOG
3. 添加代码

Use Syntax Highlighter in Blogspot

1. 下载Syntax Highlighter
SyntaxHighlighter_1.5.1.rar

2. 解压后,将Syntax Highlighter上传到网络空间
将Styles目录和Scripts目录下的所有文件上传到网络空间的同一目录下。

3. 在Layout--Edit HTML中添加如下内容
代码放在</body></html>前面。