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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("Ole32.dll", ExactSpelling := true>]
Public Shared Function CLSIDFromProgIDEx (
progId As String,
<OutAttribute> ByRef refClsid As Guid
) As HResult
Dim progId As String
Dim refClsid As Guid
Dim returnValue As HResult
returnValue = Ole32.CLSIDFromProgIDEx(progId,
refClsid)
public:
[DllImportAttribute(L"Ole32.dll", ExactSpelling = true)]
static HResult CLSIDFromProgIDEx(
String^ progId,
[OutAttribute] Guid% refClsid
)
[<DllImportAttribute("Ole32.dll", ExactSpelling = true)>]
static member CLSIDFromProgIDEx :
progId : string *
refClsid : Guid byref -> HResult
No code example is currently available or this language may not be supported.
- progId String
-
A pointer to the ProgID whose CLSID is requested.
- refClsid Guid
-
Receives a pointer to the retrieved CLSID on return.
HResult
Returns
S_OK on success, or other
HResult if an error occurs.