程序代码 function sidt1[color=#0000ff]: boolean; var idtr: array[0..005] of Byte; begin result := false; asm sidt idtr end; if pCardinal(@idtr[2])^ = $8003F400 //NT Address then result := true; begin asm sidt idtr end; if pCardinal(@idtr[2])^ = $80036400 //XP Address then result := true; begin asm sidt idtr end; if pCardinal(@idtr[2])^ = $81AFF400 //Vista Address then result := true; begin asm sidt idtr end; if pCardinal(@idtr[2])^ = $884D2960 //Vista Address Thanks Spider then result := true; begin asm sidt idtr end; if pCardinal(@idtr[2])^ = $0341A070 //Vista 64bit or intel dual core then result := true; begin asm sidt idtr end; if pCardinal(@idtr[2])^ = $005F62F0 //Vista 64bit or intel dual core then result := true; begin asm sidt idtr end; if pCardinal(@idtr[2])^ = $F771B590 //XP Address Thanks ChainCoder then result := true; end; end; end; end; end; end; end;