egEnumValue(hKey, lIndex, sName, lNameSize, _
                                  0&amp;, 0&amp;, 0&amp;, 0&amp;)
           ' Log "RegEnumValue returned:" &amp; lResult
           If (lResult = ERROR_SUCCESS) Then
       
                ' Although in theory you can also retrieve the actual
                ' value and type here, I found it always (ultimately) resulted
                 in
                ' a GPF, on Win95 and NT.  Why?  Can anyone help?
       
               sName = Left$(sName, lNameSize)
 