kessler / node-regedit

Read, Write, List and do all sorts of funky stuff to the windows registry using node.js and windows script host
MIT License
279 stars 45 forks source link

REG_FULL_RESOURCE_DESCRIPTOR support #79

Open coelho-faminto opened 3 years ago

coelho-faminto commented 3 years ago

I will learn how to contribute to code and will perform some changes to partially support REG_FULL_RESOURCE_DESCRIPTOR as a valid REG TYPE. Current version is throwing an error in nodejs saying Type 9 is invalid and then it doesn't list any keys from the same path. Example: if you try to list HKLM\HARDWARE\DESCRIPTION\System Adding

        ' REG_FULL_RESOURCE_DESCRIPTOR
        Case 9
            RenderValueByType = RenderByteArray(varValue)

and

        Case 9
            GetBinaryValue constHive, strKey, strValueName, outVarValue
            Exit Sub

is enough to show the value empty at least. As far as I know StdRegProv doesn't provide a method to read REG_FULL_RESOURCE_DESCRIPTOR.