1、汇编debug程序中正确读取内存数据
以字为单位
0000: 000707DA 000E0003 001D0011 00AD0017
0008: 000707DA 000E0003 001D0009 00AD0017
0010: 00000960 0000003C 00000001 00000960
0018: 00000000 000004B0 00000001 00003AED
以字节为单位
0000: DA 07 07 00 03 00 0E 00 Ú.......
0008: 11 00 1D 00 17 00 AD 00 .......
-----------------------------------------------------
由以上代码可知读取debug -u指令时内存中正确的一个字节的内容为 DA 、07、07、00
高位对高地址,地位对低地址。所以前四个字的内容为000707DA
实际上那个也说明了Intel x86系列的CPU是采用的小字节序列
2、
Examples
The following example uses SystemParametersInfo to double the mouse speed.
#include <windows.h>
#include <stdio.h>
#pragma comment(lib, "user32.lib")
void main()
{
BOOL fResult;
int aMouseInfo[3]; // array for mouse information
// Get the current mouse speed.
fResult = SystemParametersInfo(
SPI_GETMOUSE, // get mouse information
0, // not used
&aMouseInfo, // holds mouse information
0); // not used
// Double it.
if( fResult )
{
aMouseInfo[2] = 2 * aMouseInfo[2];
// Change the mouse speed to the new value.
SystemParametersInfo(
SPI_SETMOUSE, // set mouse information
0, // not used
aMouseInfo, // mouse information
SPIF_SENDCHANGE); // update win.ini
}
}
3、win7启动的过程
BIOS-->MBR--> Bootmgr-->BCD-->Winload.exe-->内核加载
加点以后首先执行的是固化在BIOS里面的代码,然后通过BIOS确定从硬盘启动并加载了MBR(注意:MBR位于硬盘的的第一个扇区,不属于任何一个分区),MBR会搜索64B大小的分区表,找到4个主分区(可能没有4个)的活动分区并确认其他主分区都不是活动的,然后加载活动分区的第一个扇区(Bootmgr)到内存,Bootmgr寻找并读取BCD,如果有多个启动选项,会将这些启动选项反映在屏幕上,由用户选择从哪个启动项启动,选择从Windows 7启动后,会加载C:/windows/system32/winload.exe,并开始内核的加载过程。
4、Windows Forms是微软.NET开发框架的图形用户界面部分,该组件通过将现有的win32应用程序界面封装为托管代码提供了对windows本地组件的访问方式。
5.VSS(visual source safe).作为visual studio的一名成员,它主要的任务就是负责项目文件的管理,几乎可适用于任何软件项目。
VSS-运行环境
Windows平台下使用VSS开发的典型环境是基于C/S架构的,即开发小组的每个开发者在各自的Windows平台下利用开发工具(比如VC)开发项目中的各个模块,而配有专门的服务器集中控制开发过程中的文档和代码。服务器和开发人员的客户机分别装有VSS的服务器和客户端程序。