A buffer containing the retrieved string, or NULL in case of an error. The user is in charge of releasing the returned buffer with
simReleaseBuffer. The returned buffer might contain embedded zeros, and its length is specified by the parameterLength argument.