Ole32CLSIDFromProgID Method
Looks up a CLSID in the registry, given a ProgID.
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")]
public static HResult CLSIDFromProgID(
string progId,
out Guid refClsid
)
<DllImportAttribute("Ole32.dll">]
Public Shared Function CLSIDFromProgID (
progId As String,
<OutAttribute> ByRef refClsid As Guid
) As HResult
Dim progId As String
Dim refClsid As Guid
Dim returnValue As HResult
returnValue = Ole32.CLSIDFromProgID(progId,
refClsid)
public:
[DllImportAttribute(L"Ole32.dll")]
static HResult CLSIDFromProgID(
String^ progId,
[OutAttribute] Guid% refClsid
)
[<DllImportAttribute("Ole32.dll")>]
static member CLSIDFromProgID :
progId : string *
refClsid : Guid byref -> HResult
No code example is currently available or this language may not be supported.
- progId String
-
The ProgID whose CLSID is requested.
- refClsid Guid
-
Receives the retrieved CLSID on return.
HResult
Returns
S_OK on success, or other
HResult if an error occurs.