function StringToGUID(const S: String): TGUID;
StringToGUID converts the string representation of a GUID into a 'real' GUID. An exception will be raised upon failure.
Using COM Automation objects