如何获取有关 Windows 操作系统类型的信息?是32位还是64位?我如何以编程方式获取此信息?
最佳答案
function IsWin64: Boolean;
var
IsWow64Process : function(hProcess : THandle; var Wow64Process : BOOL): BOOL; stdcall;
Wow64Process : BOOL;
begin
Result := False;
IsWow64Process := GetProcAddress(GetModuleHandle(Kernel32), 'IsWow64Process');
if Assigned(IsWow64Process) then begin
if IsWow64Process(GetCurrentProcess, Wow64Process) then begin
Result := Wow64Process;
end;
end;
end;
关于delphi - 如何获取有关计算机的信息? [32位或64位],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2523957/