if (result == WINERROR.ERROR_MORE_DATA)
{
lpData = new byte[lpcbData.getValue()];
lpcchValueName = new IntByReference(16384);
result = advapi32.RegEnumValue(handle, dwIndex, lpValueName, lpcchValueName, null, lpType, lpData, lpcbData);
if (result == WINERROR.ERROR_SUCCESS)
{
name = new String(lpValueName, 0, lpcchValueName.getValue());