RtlGUIDFromString function

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

Syntax

NTSYSAPI NTSTATUS RtlGUIDFromString(
  PCUNICODE_STRING GuidString,
  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.

Requirements

   
Windows version Available starting with Windows 2000.
Target Platform Universal
Header wdm.h (include Wdm.h, Ntddk.h, Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe (kernel mode); Ntdll.dll (user mode)
IRQL PASSIVE_LEVEL

See Also

RtlStringFromGUID