Hi friends, I would like to get PCI configuration address under Win32(XP or 2003).
The sample code shows process to get offset via port cf8h and cfch. But I found the program need to get ring0 privilege to run the command. How can the program get the ring0 privilege easily? Thanks a lot for any help.
Code:#... void get_offset(void) { unsigned long config_address; __asm { pushf mov eax,0x8000fa24 mov dx,0xcf8 out dx,eax mov dx,0xcfc in eax,dx push eax lea ebx,config_address pop ebx popf } cout<<config_address<<endl; }



LinkBack URL
About LinkBacks




