Previous Next

RtlGUIDFromString

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

NTSTATUS 
  RtlGUIDFromString( 
    IN PUNICODE_STRING  GuidString, 
    OUT GUID  *Guid 
    );

Parameters

GuidString
Pointer to the buffered Unicode string to be converted to a GUID.
Guid
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.

Headers

Declared in wdm.h and ntddk.h. Include wdm.h or ntddk.h.

Comments

Callers of RtlGUIDFromString must be running at IRQL = PASSIVE_LEVEL.

See Also

RtlStringFromGUID