#ifndef _NTRTL_H
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.