HANDLE is a ulong, so that's fine. Although not specified as const, lpSubKey is also fine.
I also tested the signature you provided, and it appears to work.
This is just one of many signatures that need to be reviewed, unfortunately.
Here is a selection of a few more that now seem to be as they need to be to work corrrectly:
int GetUserNameA(uchar &lpBuffer[], ulong &pcbBuffer);
int RegQueryValueExW(ulong hKey, ushort &lpValueName[], uint lpReserved, uint &lpType, uchar &lpData[], uint &lpcbData);
int RegCloseKey(ulong hKey);
int GetComputerNameW(ushort &lpBuffer[], ulong &nSize);
There are lots more that I'm using that need review. I'm working through them with reference to the Microsoft documented signatures.
Getting these exactly right is critical, obviously, although that only really becomes clear with optimisation resulting in memory leaks and access violations when the size/length of items is not correct.
Any additional advice/corrections/comments welcome.
Could you provide your code for investigation?
Or try this signature:
Could you provide your code for investigation?
Or try this signature:
Thanks for your assistance, Ilyas
The code is substantial in length and proprietary/sensitive, so you'll forgive me if it's not "open".
This signature is what I have and it works:
HANDLE is a ulong, so that's fine. Although not specified as const, lpSubKey is also fine.
I also tested the signature you provided, and it appears to work.
This is just one of many signatures that need to be reviewed, unfortunately.
Here is a selection of a few more that now seem to be as they need to be to work corrrectly:
There are lots more that I'm using that need review. I'm working through them with reference to the Microsoft documented signatures.
Getting these exactly right is critical, obviously, although that only really becomes clear with optimisation resulting in memory leaks and access violations when the size/length of items is not correct.
Any additional advice/corrections/comments welcome.
Thanks.
Could you provide your code for investigation?
Or try this signature:
May I ask about my "sidequest" concerning typedef?
We are working on it.
We are working on it.