IExtensibilityApplications::LaunchUrl Method
Starts the application at the specified URL.
Note This method has been deprecated.
Syntax
HRESULT LaunchUrl(
BSTR strUrl,
int nCmdShow,
int Left,
int Top,
int Right,
int Bottom,
IExtensibilityHostControl** pHostControl
);
Parameters
strUrl
[in] URL of the application.
nCmdShow
[in] Initial state of the window, such as SW_MAXIMIZE. Equivalent to the nCmdShow parameter of the ShowWindow function.
Left
[in] Left coordinate of the window rectangle.
Top
[in] Top coordinate of the window rectangle.
Right
[in] Right coordinate of the window rectangle.
Bottom
[in] Bottom coordinate of the window rectangle.
pHostControl
[out] Address of a variable that receives a pointer to a host control interface. This interface can be used to control the window.
Return Value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table:
Value | Description |
S_OK | The method succeeded. |
EXT_E_APPLICATION_FAILED | The Adaptable Media Center Service was unable to start. |
EXT_E_MEDIACENTER_CANNOT_EXIT | An existing instance of Windows Media Center is running and cannot exit. |
EXT_E_MEDIACENTER_ALREADY_IN_HOST_MODE | An existing instance of the Adaptable Media Center Service is already running. |
Requirements
Assembly: Ehextcom.dll
Platform: Windows XP Media Center Edition 2005 and later
See Also