Ole32ProgIDFromCLSID Method
Retrieves the ProgID for a given CLSID.
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", CharSet = CharSet.Unicode, ExactSpelling = true)]
public static HResult ProgIDFromCLSID(
in Guid refClsid,
ref string refProgId
)
<DllImportAttribute("Ole32.dll", CharSet := CharSet.Unicode, ExactSpelling := true>]
Public Shared Function ProgIDFromCLSID (
ByRef refClsid As Guid,
ByRef refProgId As String
) As HResult
Dim refClsid As Guid
Dim refProgId As String
Dim returnValue As HResult
returnValue = Ole32.ProgIDFromCLSID(refClsid,
refProgId)
public:
[DllImportAttribute(L"Ole32.dll", CharSet = CharSet::Unicode, ExactSpelling = true)]
static HResult ProgIDFromCLSID(
[InAttribute] Guid% refClsid,
String^% refProgId
)
[<DllImportAttribute("Ole32.dll", CharSet = CharSet.Unicode, ExactSpelling = true)>]
static member ProgIDFromCLSID :
refClsid : Guid byref *
refProgId : string byref -> HResult
No code example is currently available or this language may not be supported.
- refClsid Guid
-
The CLSID for which the ProgID is to be requested.
- refProgId String
-
The address of a pointer variable that receives the ProgID string.
The string that represents clsid includes enclosing braces.
HResult
Returns
S_OK on success, or other
HResult if an error occurs.