Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

Launches the specified widget. A prompt is presented to the user during this operation.

Syntax

HRESULT LaunchWidget(
	UINT 
nInstalledId
);

Parameters

nInstalledId

[in] An integer specifying the identifier of the widget to be launched. The identifier is device-specific and is assigned to the widget during installation. The identifier for all widgets installed on a device can be retrieved using the GetInstalledWidgetsListfunction.

Return Value

This function can return one of the following values.

Value Description

S_OK

The widget was successfully launched.

E_FAIL

The widget was not launched.

E_INVALIDARG

The widget detail data was not valid.

Remarks

None.