473,806 Members | 2,319 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RegistryKey.Get Value not returning the value for REG_QWORD type

Hi,

I am facing problem in retriving value of a registry key where the value is
of type REG_QWORD.

Below is the code snipet i am trying with:
RegistryKey reg = Registry.Curren tUser;
regKeyTools = reg.OpenSubKey( @"MynewKey\qwor d");
object val = regKeyTools.Get Value("qvalue") ;

where qvalue is of type REG_QWORD.

Note: Same code works if the value if type string, DWORd or Binary.

Please let me know if i am missing something.

Regards,
Abhijit
Nov 16 '05 #1
1 4934
As far as I know you got it right. I have run across the same thing. Have
you had any luck getting it to work? I have even tried using the
RegOpenKey/RegQueryValue API (which i guess should work), but had no luck
with any retrieval. I ran accross info saying that .NET version 2.0 supports
it.

"Abhijit" wrote:
Hi,

I am facing problem in retriving value of a registry key where the value is
of type REG_QWORD.

Below is the code snipet i am trying with:
RegistryKey reg = Registry.Curren tUser;
regKeyTools = reg.OpenSubKey( @"MynewKey\qwor d");
object val = regKeyTools.Get Value("qvalue") ;

where qvalue is of type REG_QWORD.

Note: Same code works if the value if type string, DWORd or Binary.

Please let me know if i am missing something.

Regards,
Abhijit

Nov 16 '05 #2

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

Similar topics

1
4487
by: R Agam | last post by:
Hi How can I tell what type of value (string, int, ...) is returned from a call to RegistryKey.GetValue? Thanks, Ronen
1
1914
by: R A | last post by:
Hi I write the registry value using the following: Size size = new Size (100, 500); Key.SetValue (ClientSizeName, size); How can I retreive the value back to a Size type? When I use
0
2855
by: csharp_helpwanted | last post by:
steps.. first, I'm creating a connection by mapping a network drive to the pc second, the map drive connection was successful I try to read a certian registry key/value (that is a valid reg item) third, I disconnect the network drive connection it works great the first time but if i run it again on the same pc anytime after that I get the following
8
2831
by: Steve | last post by:
I am using RegistryKey reademai2 = Registry.LocalMachine.OpenSubKey(launch_email_path, true); string launch_email = (String)reademai2.GetValue(""); To get the value, in the registry, value = "C:\Program Files\Internet Explorer\iexplore.exe" -nohome but If I used string launch_email = (String)reademai2.GetValue(""); I got the value ="\"C:\Program Files\Internet Explorer\iexplore.exe\" -nohome" System will add "\......\", is it normal?
1
3385
by: Brian Keating | last post by:
Hi there anyone know to the get the native registry Handle from a RegistryKey? thanks in advance
4
8464
by: Thomas | last post by:
Hi All, When i am trying run the following code i am geting the error 'Object reference not set to an instance of an object' Try Dim Reg As RegistryKey Dim Value As String Dim KeyValue As String = "Software\\MyCompany\\Connections" Reg = Registry.LocalMachine.OpenSubKey(KeyValue, True)
5
8519
by: Dave | last post by:
I'd like to create a Registry key value where the Registry key value type is REG_QWORD. I'm using SetValue(name As String, value As Object), and I understand that the object type used in this function determines the registry value type, however I cannot find a type eqivilant in vb.net that will create the REG_QWORD type (they keep coming out as REG_SZ, REG_BINARY or REG_DWORD) Does anyone know how I can do this?
2
3594
by: auldh | last post by:
being a novice i searched the net to get help on my c# project. i'm trying to iterate, enumerate, loop through a registry tree hive. for example i have a sub folder under HKLM\SOFTWARE that has some 21 sub folders and there are sub folders under some of he 21. i have no problem going into the sub folder (lets call it) programX. when i do an readkeys.opensubkey(regipath) and then keyvalue.getvalue(...) it will not only read the "values"...
4
1729
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. Here is my problem. I have a program that will create a registry key, however it is not and here is the code and also the error that follows: Imports System.IO Imports System.Text Imports System.Security.Cryptography Imports System.Net Imports Microsoft.VisualBasic.Conversion Imports System.Management
0
9719
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9597
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10110
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9187
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3850
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.