StrToGUID
f90VB Modules
f90VBDefs, f90VBAutomation
Summary
Converts a string containing a GUID into its equivalent GUID structure.
Syntax
| subroutine StrToGUID | (GUIDStr, TGUID, iRet) |
| character(len=*),intent(in):: | GUIDStr |
| type(GUID),intent(out):: | TGUID |
| integer(HRESULT_KIND),intent(out),optional:: | iRet |
Arguments
GUIDStr [Input]
A string containing the character-style representation of a GUID.
TGUID [Output]
A Global Unique Identifier (GUID) structure.
iRet [Output/Optional]
Upon return, iRet contains S_OK or a negative error code. See comments for more information.
Comments
Subroutine StrToGUID does not check that the GUID passed in argument GUIDStr is registered in your system.
Argument iRet
Indicates success or failure of the subroutine. If the subroutine is successful, S_OK is returned in argument iRet. If the subroutine fails, iRet contains E_UNEXPECTED or another negative value indicating the nature of the error.
Examples
See examples for GUIDToStr.
Related Topics
| For information about: | See: | |
| Obtaining a string representation of a GUID | GUIDToStr | |
| Obtaining a Class ID of a ProgID | ProgIDToCLSID | |