16-04-2012, 06:33 PM
السلام عليكم
كتبت detect 64 bit delphi في محرك بحث
طلع أول ناتج:
مختصر:
بالتوفيق.
كتبت detect 64 bit delphi في محرك بحث
طلع أول ناتج:
كود :
http://www.delphipages.com/forum/showthread.php?tid=206540كود :
function IsWOW64: Boolean;
type
TIsWow64Process = function(Handle: HWND; var Res: BOOL): BOOL; stdcall;
var
IsWow64Result: BOOL;
IsWow64Process: TIsWow64Process;
begin
IsWow64Process := GetProcAddress(GetModuleHandle('kernel32'), 'IsWow64Process');
if Assigned(IsWow64Process) then begin
if not IsWow64Process(GetCurrentProcess, IsWow64Result) then
raise Exception.Create('Bad process handle');
Result := IsWow64Result;
end
else
Result := False;
end;
اللهم احقن دماء المسلمين، لا تنسوهم بالدعاء...

