Compartir a través de


IInputPersonalizationManager::CreateNewComponentInstance method

Gets a new instance of the IInputPersonalizationDataSink object.

Syntax

HRESULT CreateNewComponentInstance(
  [in]  LPCWSTR                       pwszProjectName,
  [in]  LPCWSTR                       pwszProjectDirectory,
  [in]  long                          lCreationFlags,
  [out] IInputPersonalizationDataSink **ppInputPersonalizationDataSink
);

Parameters

  • pwszProjectName [in]
    The name of the component instance.

  • pwszProjectDirectory [in]
    The path to the project directory.

  • lCreationFlags [in]
    The options to configure the component with. Always be 0.

  • ppInputPersonalizationDataSink [out]
    A reference to the pointer of the IInputPersonalizationDataSink to be returned.

Return value

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

See also

IInputPersonalizationManager