Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reading a single value from Registry (Win)
#1
I'm looking for a way to read a single value from the registry (Win).



This exemple lists recents files opened in CorelDRAW Home & Student

Program written in VBA Excel.

Is it possible to have something same in QB64 ???

Thank's for help.



'---VBA EXCEL PROG---

a$ = "HKEY_CURRENT_USER\Software\Corel\CorelDRAW Home & Student\18.0\PPHome\Application Preferences\Framework\RecentFiles"

MsgBox RegKeyRead(a$)

stop

'---

Function RegKeyRead(i_RegKey As String) As String

Dim myWS As Object

  On Error Resume Next

    Set myWS = CreateObject("WScript.Shell")

    RegKeyRead = myWS.RegRead(i_RegKey)

End Function



'---
Why not yes ?
Reply


Messages In This Thread
Reading a single value from Registry (Win) - by euklides - 06-05-2022, 03:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Win 10 Users. No more Windows F'updates! Pete 43 3,529 11-24-2025, 05:43 PM
Last Post: hsiangch_ong
  How do you boot Win 11 in Safe Mode? Pete 8 5,933 10-30-2025, 06:03 AM
Last Post: SMcNeill
  Splitting REALLY *REALLY* long lines into single character + CR + LF Circlotron 10 1,561 04-22-2025, 11:30 AM
Last Post: Circlotron
  Integer (math) Single = Single SMcNeill 0 548 10-20-2023, 12:16 AM
Last Post: SMcNeill
  tweak Str$ for single and double Jack 9 1,789 12-01-2022, 03:51 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)