Page 1 of 1

[Windows] API Function RegGetValue_() missing.

Posted: Wed Jan 15, 2020 12:22 pm
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.

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

Posted: Sun Jan 19, 2020 5:33 pm
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?

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

Posted: Sun Jan 26, 2020 6:19 am
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:

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

Posted: Mon Jan 27, 2020 3:30 pm
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