Reading from the registry...

Posted on 1998-12-16
Last Modified: 2010-07-27
I need to get all the sub-entries from an entry in the registry.
In my "HKEY_CLASSES_ROOT\Word.RTF.8\shell", the sub-entries is:

But I need to get(find/extract) them using code. How do I do that?
Question by:Olli083097
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2

Expert Comment

ID: 1450712
'to get registry keys use:
Declare Function RegEnumKeyEx Lib "advapi32.dll" _
    Alias "RegEnumKeyExA" (ByVal hKey As Long, _
    ByVal dwIndex As Long, ByVal lpName As String, _
    ByVal cbName As Long) As Long

'to get values use:
Declare Function RegEnumValue Lib "advapi32.dll" _
    Alias "RegEnumValueA" (ByVal hKey As Long, _
    ByVal dwIndex As Long, ByVal lpValueName As String, _
    lpcbValueName As Long, lpReserved As Long, _
    lpType As Long, lpData As Byte, lpcbData As Long) _
    As Long

Expert Comment

ID: 1450713
If you need more just ask
LVL 10

Expert Comment

ID: 1450714
Olli, I asked a very similar question myself recently and had good answers from both Mirkwood and Waty: - here's the URL

You'll find it most helpful.
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now


Author Comment

ID: 1450715
caraf_g: Your code was just what I needed! If you want the points, the just answer the question...!

Expert Comment

ID: 1450716
So you wanted the application written for you not told what you can use..  Ok what ever floats your boat.  What he showed you is using the API I told ya to use.

Author Comment

ID: 1450717
Chizl: If it were possible to split the pionts on two persons I would have done it... But he gave me exactly what I needed + a lot more usefull code! Sorry...!
LVL 10

Accepted Solution

caraf_g earned 50 total points
ID: 1450718
Olli, here's a token answer. Thanks. Sorry for the late reply I sadly had to go on holidays. O woe!

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question