Activates the specified Windows Store app for the generic launch contract (Windows.Launch) in the current session.
HRESULT ActivateApplication( LPCWSTR appUserModelId, LPCWSTR arguments, ACTIVATEOPTIONS options, DWORD *processId );
The application user model ID of the Windows Store app.
A pointer to an optional, app-specific, argument string.
One or more of the following flags used to support design mode, debugging, and testing scenarios.
No flags are set.
The app is being activated for design mode, so it can't create its normal window. The creation of the app's window must be done by design tools that load the necessary components by communicating with a designer-specified service on the site chain established through the activation manager. Note that this means that the splash screen seen during regular activations won't be seen.
Note that you must enable debug mode on the app's package to succesfully use design mode.
Do not display an error dialog if the app fails to activate.
Do not display the app's splash screen when the app is activated. You must enable debug mode on the app's package when you use this flag; otherwise, the PLM will terminate the app after a few seconds.
The application is being activated in prelaunch mode. This value is supported starting in Windows 10.
A pointer to a value that, when this method returns successfully, receives the process ID of the app instance that fulfils this contract.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
|Minimum supported client||Windows 8 [desktop apps only]|
|Minimum supported server||Windows Server 2012 [desktop apps only]|
|Header||shobjidl_core.h (include Shobjidl.h)|