#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
);
View code on GitHub// wdm.h
NTSYSAPI NTSTATUS RtlGUIDFromString(
[in] PCUNICODE_STRING GuidString,
[out] GUID *Guid
);
View the official Windows Driver Kit DDI referenceThis function is documented in Windows Driver Kit.
The RtlGUIDFromString routine converts the given Unicode string to a GUID in binary format.
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.
If the conversion succeeds, RtlGUIDFromString returns STATUS_SUCCESS. Otherwise, no conversion was done.