I'm pulling registry values using AdvApi.dll, and I'm getting an error for several that are REG_DWORDS that give me the error for out of memory. Below is the section of code where it shows up.
VB Code:
' Determine the size and type of data to be read lrc = RegQueryValueExNULL(lhKey, szValueName, 0&, lType, 0&, cch) If lrc <> ERROR_NONE Then Error 5
lrc is being returned as 6 which is the error code for ERROR_OUTOFMEMORY. Do I have a variable that is the wrong type?
I've probably done a poor job of explaining this, let me know if I can clarify it better.
edit:
I should probably tell what values I'm expecting back from the registry:
0x00000000
0x00000022




Reply With Quote