I just followed a pattern already there in shell32, I don't know the exact rules that apply here, to be honest.
I neither, I was seeking illumination. In case there's an absence of clear rules, I'd suggest the more readable GUIDFromStringW is better. --Juan