Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.18 KB

CLSIDFromString.md

File metadata and controls

63 lines (43 loc) · 1.18 KB

Home

Function name : CLSIDFromString

Group: COM - Library: ole32


Converts a string generated by the StringFromCLSID function back into the original CLSID.


Code examples:

Custom GDI+ class
How to generate GUID values
Enumerating devices installed on the local machine

Declaration:

HRESULT CLSIDFromString(
  LPOLESTR lpsz,
  LPCLSID pclsid
);  

FoxPro declaration:

DECLARE INTEGER CLSIDFromString IN ole32;
	STRING   lpsz,;
	STRING @ pclsid
  

Parameters:

lpsz [in] Pointer to the string representation of the CLSID.

pclsid [out] Pointer to the CLSID on return.


Return value:

Returns NOERROR (0) if the CLSID was obtained successfully.


Comments:

LOCAL cBuffer, iidImageList

cBuffer = REPLICATE(CHR(0), 16)
iidImageList = "{46EB5926-582E-4017-9FDF-E8998DAA0950}"

= CLSIDFromString(STRCONV(iidImageList,5), @cBuffer)
? cBuffer

See also: StringFromGUID2