This method returns a generated Globally Unique IDentifier when invoked.
IDL Definition
HRESULT GenerateGUID( [out,retval] BSTR* pVal ) ;
Parameters
pVal
on return, the variable contains the GUID value in standard registry format. (e.g. {3050F53D-98B5-11CF-BB82-00AA00BDCE0B})
Return Values
a standard HRESULT value
Example
VBScript in a Windows Scripting Host script
Set IGuidGen = CreateObject("Membership.GuidGen")
GUIDVal = IGuidGen.GenerateGuid