473,796 Members | 2,742 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting a HKEY/HANDLE from RegistryKey?

I would like to get the HKEY(a handle to the registry key) from the
RegistryKey class in C#, but it does not seem to be exposed. is it
possible?
Jul 21 '05 #1
2 2517
No the KEY handle is not pubicly exposed, do you have a specific need for
it?

Willy.

"=JT=" <jo***********@ optonline.net> wrote in message
news:5e******** *************** ***@posting.goo gle.com...
I would like to get the HKEY(a handle to the registry key) from the
RegistryKey class in C#, but it does not seem to be exposed. is it
possible?

Jul 21 '05 #2
yes, i have a C++ dll that does my registry encryption/decryption. it
requires a handle/hkey.
"Willy Denoyette [MVP]" <wi************ *@pandora.be> wrote in message news:<uX******* *******@tk2msft ngp13.phx.gbl>. ..
No the KEY handle is not pubicly exposed, do you have a specific need for
it?

Willy.

"=JT=" <jo***********@ optonline.net> wrote in message
news:5e******** *************** ***@posting.goo gle.com...
I would like to get the HKEY(a handle to the registry key) from the
RegistryKey class in C#, but it does not seem to be exposed. is it
possible?

Jul 21 '05 #3

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

Similar topics

0
4092
by: geek_in_a_box | last post by:
I seem to be experiencing a behavior on Framework 1.0 sp2 RegistryKey class where the class is not releasing/closing named pipe winreg handles to remote machines. The process continues to hold on to a handle to the following pipe: \Device\LanmanRedirector\<MACHINE>\PIPE\winreg Even after explicitly calling Close() (which, according to the docs, should not matter for a base key), and expliticly doing garbage collections, I cannot seem...
0
3270
by: g82martin | last post by:
I am using the RegistryKey class to access the registry on remote machines. I only require read access. I am able to successfully read registry keys under HKLM\Software\Microsoft\Windows NT\CurrentVersion\HotFix but I get a permissions error when I try to access HKLM\Software\Network Associates\TVD\Shared Components\VirusScan Engine\4.0.xx. The security permissions are identical on these two keys. Here is my code: RegistryKey...
1
5656
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 data type, but not the value's name! (I even get the name length, but the string that supose to...
5
43322
by: Paul Horn | last post by:
Hi I need some help here. I would appreciate it if any one can help me. My 2 questions is this: 1. How do you get a list of installed applications on Windows? 2. How do I get a program's description from a exe? (Example - sqlservr.exe = Microsoft SQL Server 2000) I am using C# with Visual Studio .net 2003. Thanks in advance...
2
406
by: =JT= | last post by:
I would like to get the HKEY(a handle to the registry key) from the RegistryKey class in C#, but it does not seem to be exposed. is it possible?
3
1345
by: Adam Clauss | last post by:
If I am just given an open HKEY, is there a function I can use to retrieve the name of the key? Thanks -- Adam Clauss
5
3804
by: mike | last post by:
Hi, I have been playing with VB.NET/C# for getting some general properties of a fileinfo object. However, FileInfo object does not seem to expose some of the basic properties like TYPE that used to be available in "FileSystemObject" of ScriptingLibrary. For example the "TYPE" property should return "Text Document" or "Microsoft Office Document" or "Visual Studio Code File" and so on. similar to the properties displayed by Properties...
5
2035
by: asianmuscle | last post by:
I am trying to learn RAII and some template techniques by writer a smarter pointer class to manage the resource management. Since I find that a lot of the resource management is kinda the same, I try to mimic some other examples outther then tailor to my needs. My case is for windows handle like hkey, dll library, file handle, etc. But the code largely uses standard C++. Only the Clean up action, I put windows api call in there. In...
0
2716
by: Bernie Hunt | last post by:
Is there a way to modify a registry key in HKey Local Machine? I have a number of programs that store data in the registry, but always in HKey Current User. Anyone know how to read and write HKey Local Machine? Thanks, Bernie
1
10201
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
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...
1
7558
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
6802
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
5454
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
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4130
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
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.