Skip to Content
0

Usage of RegQueryValueEx in powerbuilder 12.5

Mar 15 at 01:18 PM

29

avatar image
Former Member

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Bruce Armstrong
Mar 15 at 04:33 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded