window64 位系统的C:\Windows\System32\drivers无法访问?? 分别在2台 win7 64上测试过,FileExists, 'C:\Windows\System32\adsldpc.dll‘ 一台true 一台false不太确认是否是目录重定向引起 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这个问题很神奇 经过验证关闭重定向确确实是可以解决问题。但是让我疑惑的是C:\Windows\System32 有些文件FileExists为true有些false 来点大神解释下。按1楼方法关掉重定向 function DisableWowRedirection: Boolean;var OldWow64RedirectionValue: LongBool;function DisableWowRedirection: Boolean; type TWow64DisableWow64FsRedirection = function(var Wow64FsEnableRedirection: LongBool): LongBool; StdCall;var hHandle: THandle; Wow64DisableWow64FsRedirection: TWow64DisableWow64FsRedirection;begin Result := true; try hHandle := GetModuleHandle('kernel32.dll'); @Wow64DisableWow64FsRedirection := GetProcAddress(hHandle,'Wow64DisableWow64FsRedirection'); if ((hHandle <> 0) and (@Wow64DisableWow64FsRedirection <> nil)) then Wow64DisableWow64FsRedirection(OldWow64RedirectionValue); except Result := False; end;end; 求助...大家幫我看下這段代碼的意思 Delphi中数据模块问题? 在CSDN中能不能找人啊? 向串口发送不同种类的命令(带有返回值),大虾们给些建议如何? StringGrid控件如何能够在某一列输入时遵循数学法则,高手帮忙? 如何取得Access的字段名? delphi下如何将图片旋转90度? 如何将连接的数据库采用相对路径,ADO控件和数据库的连接! 探讨进销存 delphi中那个pooler例子中TPooler,TPoolManager的调用机制是怎样的? 假日数据比较 关于模拟按键的问题
但是让我疑惑的是C:\Windows\System32 有些文件FileExists为true有些false 来点大神解释下。
按1楼方法关掉重定向 function DisableWowRedirection: Boolean;var
OldWow64RedirectionValue: LongBool;function DisableWowRedirection: Boolean;
type
TWow64DisableWow64FsRedirection = function(var Wow64FsEnableRedirection: LongBool): LongBool; StdCall;var
hHandle: THandle;
Wow64DisableWow64FsRedirection: TWow64DisableWow64FsRedirection;
begin
Result := true; try
hHandle := GetModuleHandle('kernel32.dll');
@Wow64DisableWow64FsRedirection := GetProcAddress(hHandle,'Wow64DisableWow64FsRedirection'); if ((hHandle <> 0) and (@Wow64DisableWow64FsRedirection <> nil)) then
Wow64DisableWow64FsRedirection(OldWow64RedirectionValue);
except
Result := False;
end;
end;