[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
NoDriveTypeAutoRun
注册表下这个键值 ,无法读取!请问各位是什么原因!
var m_RegKey  : Tregistry;
if m_RegKey.OpenKey(HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer,True) then
begin
      if m_RegKey.ValueExists('NoDriveTypeAutoRun') then // 注册表中是有值的!但ValueExists返回失败!
        tmpI := m_RegKey.ReadInteger('NoDriveTypeAutoRun')
      m_RegKey.CloseKey;
end;