[Windows] API Function RegGetValue_() missing.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
PureLust
Enthusiast
Enthusiast
Posts: 477
Joined: Mon Apr 16, 2007 3:57 am
Location: Germany, NRW

[Windows] API Function RegGetValue_() missing.

Post by PureLust »

I was trying to use the API to read registry-values and detected, that the API Function "RegGetValue()" is not included in the supported API-Calls.
Any special reason why not?

Would be great, if this function could be included. :D

Thanks a lot,
PL.
[Dynamic-Dialogs] - create complex GUIs the easy way
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
fryquez
Enthusiast
Enthusiast
Posts: 370
Joined: Mon Dec 21, 2015 8:12 pm

Re: [Windows] API Function RegGetValue_() missing.

Post by fryquez »

PureLust wrote:Any special reason why not?
PureBasic still (fully?) supports WinXP.
API's introduced in later versions of Windows are no included, yet.

@Fred, any reason why not adding source of API Imports and Residents to github?
Opcode
Enthusiast
Enthusiast
Posts: 137
Joined: Thu Jul 18, 2013 4:58 am

Re: [Windows] API Function RegGetValue_() missing.

Post by Opcode »

You can always import missing functions if they aren't already supported out of the box.

Code: Select all

Import "Advapi32.lib"
  RegGetValueW_(hKey.l, *lpSubKey, *lpValue, dwFlags.l, *pdwType, *pvData, *pcbData) As "_RegGetValueW@28"
EndImport
Not sure if the parameters are correct... :shock:
PureLust
Enthusiast
Enthusiast
Posts: 477
Joined: Mon Apr 16, 2007 3:57 am
Location: Germany, NRW

Re: [Windows] API Function RegGetValue_() missing.

Post by PureLust »

fryquez wrote:API's introduced in later versions of Windows are no included, yet.
Didn't know that ... thanks for the explanation.
Opcode wrote:You can always import missing functions if they aren't already supported out of the box...
Oh great ... import seems to work fine ... thanks. :D
[Dynamic-Dialogs] - create complex GUIs the easy way
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
Post Reply