gpt4 book ai didi

delphi - 如何获取有关计算机的信息? [32位或64位]

转载 作者:行者123 更新时间:2023-12-03 14:49:32 24 4
gpt4 key购买 nike

如何获取有关 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com