RegObj.dll question 
Author Message
 RegObj.dll question

Hello. I am currently trying to create a VBScript that used the regobj.dll
to create a reg_Binary value. I know how to use the regtype constant, but
doing so always ends up with a zero length vlaue with a Reg_None type. What
am I missing? Is there a way to force a varient to be binary? Thanks!

Code example below:

strRegKey = "\HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Custom
Forms\Read\"
Set objReg = CreateObject("RegObj.Registry")
Set objRegKey = objReg.RegKeyFromString(strRegKey)
objRegKey.Values.Add "Testing","1101a1",rvBinary



Sat, 17 Apr 2004 21:47:25 GMT  
 RegObj.dll question
Do you use custom business object to write registry? As far as I know we
usually use RegWrite with WSH object to write registry.   I don't think we
can form a variant to be Binary value with that although we can specify
value type while write registry. You may need to confirm with the vendor of
your business object whether or not it can perform the conversion you want.

Hope it helps.

Best Regards,
Robin Shen
Microsoft Support

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. Copy right, 2001 Microsoft Corporation.
All rights reserved.



Mon, 19 Apr 2004 15:35:00 GMT  
 RegObj.dll question
You might want to consider switching to using WMI's StdRegProv (Standard Registry Provider).

Google Usenet Advanced Search
http://groups.google.com/advanced_group_search

with all of the words: stdregprov

newsgroup: microsoft.public.scripting.*

for examples and links to the documentation...

For Win9x and NT4, you'll need to install the WMI core (comes standard with WinME/2000/XP).

Windows Management Instrumentation (WMI) CORE 1.5
http://msdn.microsoft.com/downloads/sample.asp?url=/msdn-files/027/00...

For WMI access to remote machines (including the registry), you need WMI on both the local and remote machines.

--
Michael Harris
Microsoft.MVP.Scripting
--

Quote:

> Hello. I am currently trying to create a vbscript that used the regobj.dll
> to create a reg_Binary value. I know how to use the regtype constant, but
> doing so always ends up with a zero length vlaue with a Reg_None type. What
> am I missing? Is there a way to force a varient to be binary? Thanks!

> Code example below:

> strRegKey = "\HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Custom
> Forms\Read\"
> Set objReg = CreateObject("RegObj.Registry")
> Set objRegKey = objReg.RegKeyFromString(strRegKey)
> objRegKey.Values.Add "Testing","1101a1",rvBinary



Tue, 20 Apr 2004 01:09:49 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Newbie question on Regobj.dll

2. I need documentation on how to use RegObj.dll (registry manip dll)

3. Reading REG_BINARY Keys with RegObj.dll

4. sfImpersonator and RegOBJ.dll

5. regobj.dll

6. regobj.dll

7. RegObj.dll

8. Newbie needs help in reading installed programs from the registry using RegObj.dll

9. regobj.dll

10. Reading binary registry values using regobj.dll

11. RegObj.dll and Windows 9x

12. Adding a value to the registry of a remote PC using REGOBJ.DLL

 

 
Powered by phpBB® Forum Software