IRoSimpleMetaDataBuilder::SetRuntimeClassSimpleDefault method

Assigns a run-time class to the metadata builder.

Syntax

HRESULT SetRuntimeClassSimpleDefault(
                       PCWSTR name,
                       PCWSTR defaultInterfaceName,
  [in, optional] const GUID   defaultInterfaceIID
);

Parameters

  • name
    Type: PCWSTR

    The fully qualified name of the specified run-time class type.

  • defaultInterfaceName
    Type: PCWSTR

    The fully qualified name of the default interface (must be a non-parametric type).

  • defaultInterfaceIID [in, optional]
    Type: const GUID

    Optional. If null, a separate call will be made to resolve the default interface type. If not null, pointer to a GUID that contains the IID for the default interface named by defaultInterfaceName.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Roparameterizediid.h

See also

IRoSimpleMetaDataBuilder