Skip to Content
avatar image
Former Member

Usage of RegQueryValueEx in powerbuilder 12.5

Hi ,

I can successfully execute the

RegOpenKeyEx and than RegQueryValueEx external function in powerbuilder 12.5 respectively.

But ,

FUNCTION uLong RegQueryValueEx( uLong hKey, String lpValueName, uLong lpReserved, ref uLong lpType,ref Long lpData,ref uLong lpcbData ) LIBRARY "advapi32.dll" ALIAS FOR "RegQueryValueExW"

returns the lpcbData and pData variables These variables contain numeric values,which are not meaningfull for me .. How can I get the string value belonging parameter name lpValueName

Best regards

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 15 at 04:33 PM

    Those long values are pointers to a location in memory. Try passing a string pre-padded with spaces instead by reference.

    Add comment
    10|10000 characters needed characters exceeded