⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pokeproc.c

📁 sjf2410和sjf2440 还有giveio的驱动程序。 此程序是在windows环境下的flash烧写工具
💻 C
字号:
/*
 *  From inpection of the TSS we know that NT's default IOPM offset is
 * 0x20AD.  From an inspection of a dump of a process structure, we
 * can find the bytes 'AD 20' at offset 0x30.  This is where NT stores
 * the IOPM offset for each process, so that I/O access can be granted
 * on a process-by-process basis.  This portion of the process
 * structure is not documented in the DDK.
 *
 *  This kernel mode driver fragment illustrates the brute force
 * method of poking the IOPM base into the process structure.
 */
void GiveIO()
{
	char *CurProc;

	CurProc = IoGetCurrentProcess();
	*((USHORT *)(CurProc + 0x30)) = 0x88;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -