myapp.c

来自「Undocumented Windows NT 经典书籍的源码」· C语言 代码 · 共 20 行

C
20
字号
/* This is a sample console application which calls the newly
added services. The services are called through a wrapper DLL 
The application simply prints the return values from the newly
added services */

#include <windows.h>
#include <stdio.h>


#include "myntdll.h"

main()
{
	printf("SampleService0 returned = %x\n", SampleService0());
	printf("SampleService1 returned = %x\n", SampleService1(0x10));
	printf("SampleService2 returned = %x\n", SampleService2(0x10, 0x20));

	return 0;
}

⌨️ 快捷键说明

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