473,511 Members | 13,105 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 8470
Create a 64 Bit number then
"Dave" <de********@gmail.com> wrote in message
news:f8**************************@posting.google.c om...
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
"Crouchie1998" <cr**********@spamcop.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.SetValue I get the impression its simply not supported...

Hope this helps
Jay
"Dave" <de********@gmail.com> wrote in message
news:f8**************************@posting.google.c om...
| 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*****************@TK2MSFTNGP10.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.SetValue I get the impression its simply not supported...
|
| Hope this helps
| Jay
|
|
| "Dave" <de********@gmail.com> wrote in message
| news:f8**************************@posting.google.c om...
|| 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*************@TK2MSFTNGP10.phx.gbl>...

In VB.NET a QWORD (64-bit number) would be a Long, however reading
RegistryKey.SetValue 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
3921
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...
1
5620
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'...
1
1132
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...
3
4389
by: JR | last post by:
Hi, How can I delete a registry value in vb.net Jan
3
1376
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. ...
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...
2
5562
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")...
5
2323
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 =...
1
1577
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
7245
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,...
0
7427
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...
1
7085
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...
0
7512
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...
0
5671
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,...
1
5069
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...
0
4741
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...
0
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
449
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...

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.