| ' **********************************************************
' 列挙
' **********************************************************
Function WMIRegEnumKey( nType, strPath, aKeys )
WMIRegEnumKey = False
LoadWMIReg
on error resume next
WMIRet = objRegistry.EnumKey( nType, strPath, aKeys )
if Err.Number <> 0 then
ErrorMessage = Err.Description
Exit Function
end if
if WMIRet <> 0 then
ErrorMessage = Hex( WMIRet )
Exit Function
end if
on error goto 0
WMIRegEnumKey = True
End Function
| |