Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added partial support to REG_FULL_RESOURCE_DESCRIPTOR. #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion vbs/regUtil.vbs
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ Function RenderType(intType)
RenderType = "REG_DWORD"
Case 7
RenderType = "REG_MULTI_SZ"
Case 9
RenderType = "REG_FULL_RESOURCE_DESCRIPTOR"
Case 11
RenderType = "REG_QWORD"
Case Else
Expand Down Expand Up @@ -265,11 +267,16 @@ Function RenderValueByType(intType, varValue)

' REG_MULYI_SZ'
Case 7

RenderValueByType = RenderStringArray(varValue)

' REG_FULL_RESOURCE_DESCRIPTOR
Case 9
RenderValueByType = RenderByteArray(varValue)

' REG_QWORD
Case 11
RenderValueByType = varValue

Case Else
' TODO: should report / throw an error here
WriteErr("invalid Registry Value Type " & intType)
Expand Down Expand Up @@ -314,6 +321,11 @@ Sub GetValueByType(constHive, strKey, strValueName, intType, outVarValue)
Case 7
GetMultiStringValue constHive, strKey, strValueName, outVarValue
Exit Sub

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

' REG_QWORD
Case 11
Expand Down