473,386 Members | 1,886 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,386 software developers and data experts.

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 2474
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.google.c om...
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**************@tk2msftngp13.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.google.c om...
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
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...
0
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...
1
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'...
5
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...
2
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
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
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...
5
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...
0
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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
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...

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.