[코드] Delphi 구현 테스트가 VMWare에서 실행되는지 여부
1837 단어 vmware
function IsInsideVMWare: Boolean;
var
rc: Boolean;
begin
rc := False;
try
asm
push edx
push ecx
push ebx
mov eax, 'VMXh'
mov ebx, 0 // any value but not the MAGIC VALUE
mov ecx, 10 // get VMWare version
mov edx, 'VX' // port number
in eax, dx // read port
// on return EAX returns the VERSION
cmp ebx, 'VMXh' // is it a reply from VMWare?
setz [rc] // set return value
pop ebx
pop ecx
pop edx
end;
except
on EPrivilege do rc := False;
end;
Result := rc;
end;
Virtual PC를 감지할 수 있는 유사한 기능을 제공하는 링크도 있습니다.
Technorati 태그:
Delphi ,
Detect ,
VMWare ,
VirtualPC
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
P2V했을 때 BSoD STOP 0x0000007A로 빠졌다글쎄, 이런 기사는 아무도 읽지 않을 것이라고 생각하지만, 잊은 기록으로 남겨 둡니다. 그 순서로 수정해도 Windows Server 2003과 XP는 Boot 할 수 있었지만, 2008R2는 Boot하지 않고(울음...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.