ReadElement(
  IN  HANDLE          HandleToKey,
  IN  PWSTR           pwsValueName,
  OUT PUNICODE_STRING pucString
  );

Routine Description:

    This routine is will read a string value given by pwsValueName, under a
    given Key (which must be open) - given by HandleToKey. This routine
    allocates memory for the buffer in the returned pucString, so the caller
    must deallocate that.

Arguments:

    pwsValueName- the name of the value to read (i.e. IPAddress)

Return Value:

    pucString - the string returns the string read from the registry