Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15628

[RESOLVED] Get custom shortcut overlay / read HKEY_LOCAL_MACHINE failing

$
0
0
You can set a custom overlay for shortcus by creating a key under HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons|29

But, apparently on newer OS's HKLM has some virtualization issue going on? RegOpenKeyEx is failing with 0x2 (File not found)... presumably because this key exists *only* under HKLM and not under HKCU or any HKEY_USERS? Tested this on other keys; it succeeds for keys that also exist under HKCU but all keys only under HKLM fail.

Is there any alternative way of either reading this key, or finding that value some other way (it doesn't appear anywhere else in the registry)?
Running from the IDE right now and VB is running as admin, but I don't want a solution to depend on that if at all possible.

(I tried getting the overlay SHGetStockIconInfo returned but it gave me the system default)

Viewing all articles
Browse latest Browse all 15628

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>