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. Also see the Using COM Automation objects topic.