stdregprov and SetMultiStringValue

agreen24

New member
Joined
Sep 12, 2007
Messages
1
Programming Experience
Beginner
I am currently using stdregprov to write changes to remote clients but am having a problem writing reg_multi_sz values. I cant find any documentation anywhere about how to do this in vb.net. I think i need a byte array for setmultistringvalue but when i convert the following string to bytes Im getting an error in conversion "123456789abcdefghijklm".

How can i write a string like this to the registry using stdregprov and oReg.SetMultiStringValue(HKEY_CURRENT_USER, strPath, "MultiValue", uMulti)

Thanks!
 
I have no idea what stdregprov and SetMultiStringValue are. If you want to edit a remote registry then you should be using the same class you use on the local Machine: Microsoft.Win32.RegistryKey. The OpenRemoteBaseKey is the place to start, then to set a REG_MULTI_SZ you specify a String array as the value when calling SetValue.
 
Back
Top