从网上看到的代码,还是不形,会出错。
//////////////////////////////////////////////////////////////
#ifndef GOTORING0_H_
#define GOTORING0_H_
void initRing0Func(void (*));//the function used as parameter
//must have the declare of "__declspec(naked)"
//or it will make the system stop
void executeFunc();
#endif
DWORDLONG MYIDTR,SavedGate;
WORD OurGate[4]={0,0x28,0xee00,0};
WORD vmmver;
void (*Ring0Proc)=NULL;
void initRing0Func(void (*function))
{
Ring0Proc=function;
}