The RtlGUIDFromString routine converts the given Unicode string to a GUID in binary format.
NTSTATUS
RtlGUIDFromString(
IN PUNICODE_STRING GuidString,
OUT GUID *Guid
);
If the conversion succeeds, RtlGUIDFromString returns STATUS_SUCCESS. Otherwise, no conversion was done.
Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.
Callers of RtlGUIDFromString must be running at IRQL = PASSIVE_LEVEL.