RtlGUIDFromString - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

/**
 * The RtlGUIDFromString routine converts the Unicode string representation of a GUID into a GUID structure.
 *
 * \param GuidString A pointer to the Unicode string that contains the GUID.
 * \param Guid A pointer to a variable that receives the converted GUID.
 * \return NTSTATUS Successful or errant status.
 * \sa https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs-rtlguidfromstring
 */
NTSYSAPI
NTSTATUS
NTAPI
RtlGUIDFromString(
    _In_ PCUNICODE_STRING GuidString,
    _Out_ PGUID Guid
    );

#endif

View code on GitHub
// wdm.h

NTSYSAPI NTSTATUS RtlGUIDFromString(
  [in]  PCUNICODE_STRING GuidString,
  [out] GUID             *Guid
);
View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-wdm-rtlguidfromstring)

RtlGUIDFromString function

Description

The RtlGUIDFromString routine converts the given Unicode string to a GUID in binary format.

Parameters

GuidString [in]

Pointer to the buffered Unicode string to be converted to a GUID. The string should be in the following form (including the braces): {00000000-0000-0000-0000-000000000000}

Guid [out]

Pointer to a caller-supplied variable in which the GUID is returned.

Return value

If the conversion succeeds, RtlGUIDFromString returns STATUS_SUCCESS. Otherwise, no conversion was done.

See also

RtlStringFromGUID