473,549 Members | 3,109 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating REG_QWORD Registry key value type

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?
Kind Regards,

Dave
Nov 21 '05 #1
5 8480
Create a 64 Bit number then
"Dave" <de********@gma il.com> wrote in message
news:f8******** *************** ***@posting.goo gle.com...
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?
Kind Regards,

Dave

Nov 21 '05 #2
"Crouchie19 98" <cr**********@s pamcop.net> wrote in message
Create a 64 Bit number then


I've tried doing this without success. If you can provide sample code
that you think may work, it would be appreciated.

Thanks,

Dave
Nov 21 '05 #3
Dave,
According to MSDN the SetValue method:

<quote>
Value allowed in the registry can be DWORD, binary, and string. String
values can be represented as the following categories...
</quote>

In VB.NET a QWORD (64-bit number) would be a Long, however reading
RegistryKey.Set Value I get the impression its simply not supported...

Hope this helps
Jay
"Dave" <de********@gma il.com> wrote in message
news:f8******** *************** ***@posting.goo gle.com...
| 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?
|
|
| Kind Regards,
|
| Dave
Nov 21 '05 #4
Doh!
I meant to include the link:

http://msdn.microsoft.com/library/de...valuetopic.asp

Jay

"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:%2******** *********@TK2MS FTNGP10.phx.gbl ...
| Dave,
| According to MSDN the SetValue method:
|
| <quote>
| Value allowed in the registry can be DWORD, binary, and string. String
| values can be represented as the following categories...
| </quote>
|
| In VB.NET a QWORD (64-bit number) would be a Long, however reading
| RegistryKey.Set Value I get the impression its simply not supported...
|
| Hope this helps
| Jay
|
|
| "Dave" <de********@gma il.com> wrote in message
| news:f8******** *************** ***@posting.goo gle.com...
|| 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?
||
||
|| Kind Regards,
||
|| Dave
|
|
Nov 21 '05 #5
Thanks Jay, i'll just use the RegCreateKeyEx and RegSetValueEx
functions from the win32 api. I know they work.

Regards,

Dave
"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message news:<#3******* ******@TK2MSFTN GP10.phx.gbl>.. .

In VB.NET a QWORD (64-bit number) would be a Long, however reading
RegistryKey.Set Value I get the impression its simply not supported...

Nov 21 '05 #6

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

Similar topics

6
3924
by: Yogi_Bear_79 | last post by:
I'm Creating new Keys in the registry, but when I do, they always have a Vaule called (Default) type RG_SZ. I need them to be DWord dword:00000005 Is there a way to automaticaly make the (Default) a Dword using the CreateSubKey method? If not, How can I use the SetValue Method t change the Default from RG_SZ to DWord?
1
5631
by: Asaf Ganot | last post by:
Hi, I'm looking for a way to retrieve the date type of a registry value using c#. Since I couldn't find a way to do it with 'Microsoft.Win32', I tried to use the good old API call 'RegEnumValue' which gives you the data type as well as other things... After many tries, I managed to call the function without any errors. However, I get the...
1
1134
by: Shawn | last post by:
i am trying to write a test that would cause a method that writes a registry value name to fail. can anyone tell me if there are any limitations to a registry value name? length? types of characters? they had a test in place that attempts to write a huge string (Hamlet's monalog) as a value name. it's supposed to cause the method to fail but...
3
4394
by: JR | last post by:
Hi, How can I delete a registry value in vb.net Jan
3
1380
by: Ravi | last post by:
Hi, Could any one please tell me if there's any way to set the value of a particular registry key equal to that of another registry key that's already present in the registry. Thank you. Ravi.
2
2771
by: Guy | last post by:
I want to create a new value type for hiding the creation of Guid's that can be used in my business classes. I suppose I have to achieve this by creating a struct (ID) The problem is I'm completely stuck as how to develop my struct. Anyone can help? Thanks. e.g. class Person
2
5566
by: Ben | last post by:
I think I might have found a bug in Visual Studio. The following code should work and doesn't: My.Computer.Registry.LocalMachine.CreateSubKey("Software\Dravet") My.Computer.Registry.LocalMachine.SetValue("HKEY_LOCAL_MACHINE\Software\Dravet", "loglevel", "1") My.Computer.Registry.LocalMachine.GetValue("loglevel") This code does work:...
5
2335
by: Brian8568 | last post by:
I'm doing something wrong. I'm trying to delete a registry value with the following code VB 2005 Express: Dim oReg As Microsoft.Win32.RegistryKey oReg = My.Computer.Registry.LocalMachine.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run") Try oReg.DeleteValue("AlcWzrd") Debug.Print("Successfully Delete Registry Key AlcWzrd")...
1
1580
by: gracepaul | last post by:
hi all, I write a javascript for reading the registry value as follows <script language="javascript" type="text/javascript"> <!-- function ReadRegistry() { var WshShell;
0
7446
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...
0
7956
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7470
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7809
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...
0
6041
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...
1
5368
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...
1
1936
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1058
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.