Ole32CLSIDFromProgIDEx Method

Looks up a CLSID in the registry, given a ProgID, and triggers automatic installation if the COMClassStore policy is enabled.

This is analogous to the behavior of CoCreateInstance when neither CLSCTX_ENABLE_CODE_DOWNLOAD nor CLSCTX_NO_CODE_DOWNLOAD are specified.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Ole32.dll", ExactSpelling = true)]
public static HResult CLSIDFromProgIDEx(
	string progId,
	out Guid refClsid
)

Parameters

progId  String
A pointer to the ProgID whose CLSID is requested.
refClsid  Guid
Receives a pointer to the retrieved CLSID on return.

Return Value

HResult
Returns S_OK on success, or other HResult if an error occurs.

Remarks

See Also