learn about registry

M

Milo¹ Vukov

Hi
anyone know where i can found informations about registry keys and
particulary how HKEY_CLASSES_ROOT is builded and structured.
I'am doing a function that get all verbs for given extension.

The algorith that do this is:
1.i have Extension="pdf"
2. i look in HKCR for key "*.pdf"
3.after i find it i look ValueData for HKCR\.pdf\(Default) and i find what
application is default for this ValueData = "AcroExch.Document"
4. now i look for verbs (Keys) under HKCR\AcroExch.Document\Shell\

This works fine but on some computers i dicsovered that they don't have
"Shell" key ,but they have "CurVer" key and if you look you have another
ValueName "(Default)" that point to "AcroExch.Document.7". Where this ends?
Is there any FAQ or HOWTO how this works? Links?

Milos

PS:i am developing this under VB6
 
P

Phill. W

Milo¹ Vukov said:
The algorith that do this is:
1.i have Extension="pdf"
2. i look in HKCR for key "*.pdf"
3.after i find it i look ValueData for HKCR\.pdf\(Default) and i find what
application is default for this ValueData = "AcroExch.Document"
4. now i look for verbs (Keys) under HKCR\AcroExch.Document\Shell\

This works fine but on some computers i dicsovered that they don't have
"Shell" key ,but they have "CurVer" key and if you look you have another
ValueName "(Default)" that point to "AcroExch.Document.7". Where this
ends?

The Registry in completely proprietary to Microsoft and they can
pretty well do what they like with from one version of Windows to
the next.

Are you, perchance, trying to open a pdf file in whichever application
the user prefers? If so, use the ShellExecute API call directly on the
pdf file; that way Windows can work out what to "open" it with ...

HTH,
Phill W.
 
M

Milo¹ Vukov

i want evry file open for "edit" or "view".
if edit then try this verbs: 1.edit,3.open
if view then try this verbs: 1.open,2.play,3.edit
---------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top