
Reading binary registry values using regobj.dll
Try this function:
Function Bin2Hex(Value,nDigit)
dim res,ib,i
res=""
For i=1 To LenB(Value)
ib=Hex(AscB(MidB(value,i)))
if len(ib) < 2 then ib="0"+ib
res=res+ib
Next
If nDigit-Len(res)>0 Then res=String(nDigit-Len(res),"0") & res
Bin2Hex=res
End Function
Quote:
> Does anyone know how to output the values of binary registry data in
hex/string/other
> format? I am using the regobj.dll provided at
(http://msdn.microsoft.com/vbasic/downloads/download.asp?ID=026).
Quote:
> I am trying to output registry data in a single line that will contain
hive,
> key, subkey, value name, value type and value. I can get everything
except
> binary values and Reg_Full_Resource_Descriptor entries. Is there a newer
> version of Regobj that will allow me to get these entires? Is there
another
> easier way to do this?
> Any assistance is greatly appreciated. TIA.
> kinfuzed
> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> Check out our new Unlimited Server. No Download or Time Limits!
> -----== Over 80,000 Newsgroups - 19 Different Servers! ==-----