473,406 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Read binary value from registry???

What is the easiest .net method to read a REG_BINARY value from the registry?
I'm using a ManagementClass from the System.Management namespace and can
retrieve string values using GetMethodParameter("GetStringValue") but can't
find the method for binary, the MSDN documentation is terrible and doesn't
provide a list of possible parameters. any ideas would be appreciated. thanks
Jul 22 '05 #1
2 2589
actually i figured it out, i had to use stdregprov, but what i need now i to
convert a binary value into a date?

"lastusernameleft" wrote:
What is the easiest .net method to read a REG_BINARY value from the registry?
I'm using a ManagementClass from the System.Management namespace and can
retrieve string values using GetMethodParameter("GetStringValue") but can't
find the method for binary, the MSDN documentation is terrible and doesn't
provide a list of possible parameters. any ideas would be appreciated. thanks

Jul 22 '05 #2
Depends on how the date is stored in the binary format. In the past I saved
it as DateTime.Ticks and then just read it back that way. You could also
serialize it and store it as a byte array.

Regards,
John

"lastusernameleft" <la**************@discussions.microsoft.com> wrote in
message news:4F**********************************@microsof t.com...
actually i figured it out, i had to use stdregprov, but what i need now i
to
convert a binary value into a date?

"lastusernameleft" wrote:
What is the easiest .net method to read a REG_BINARY value from the
registry?
I'm using a ManagementClass from the System.Management namespace and can
retrieve string values using GetMethodParameter("GetStringValue") but
can't
find the method for binary, the MSDN documentation is terrible and
doesn't
provide a list of possible parameters. any ideas would be appreciated.
thanks

Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: fabrice | last post by:
hello, Is it possible to read a registry key in ASP, and use the value in an application via a session variable. I'm using II6 on windows server 2003. I'd like to create a key in the registry...
1
by: Borka | last post by:
Hi all! I have some questions. 1. I write script which controls registry settings, which must work on every computer. If I try JFSO = new ActiveXObject("Scripting.FileSystemObject"); JWS =...
8
by: Saradhi | last post by:
Can any one put me a piece of code to write binary data into Registry?
4
by: Wolfgang Kaml | last post by:
I came accross the need to store binary data in the registry. The binary data to be saved is kept within a string in the code segment. If I write that string to a registry, not all of the data is...
1
by: Steve Bostedor | last post by:
I'm trying to use the RegistryKey to write a hex number into the registry as a binary type. I know see that in DotNet, the RegistryKey tries to interprate what registry type to create depending...
2
by: yxq | last post by:
There are 8 bytes binary value stored date and time in Registry. 84 8B D7 DF 8B 28 C5 01 I want to convert the binary value to date using VB.NET. Dim a As FILETIME a.dwHighDateTime = 29698187...
2
by: lastusernameleft | last post by:
What is the easiest .net method to read a REG_BINARY value from the registry? I'm using a ManagementClass from the System.Management namespace and can retrieve string values using...
13
by: dumpingrounds | last post by:
Hi, I must be going nutty, but I can't seem to find anywhere where I can get just the binaries for, say, 2.3.5 for win32. I've googled high and low and all I come up with is installer (MSI/EXE)...
5
by: vighnesh | last post by:
Hi Folks Greetings to you all. I am dealing with a project ( windows application ) in which I have to read the REG_BINARY value from the Registry and get its string equalent ( the ASCII text...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.