GetLaunchActivationArgs

Returns the protocol activation arguments for use in static initialization and other development purposes. Not available for retail scenarios.

Syntax

HRESULT GetLaunchActivationArgs(
         HSTRING* args
)  

Parameters

args
Type: HSTRING* 

[out] On success, will return a string containing the activation arguments that were used to launch the application. Otherwise, this will be an empty string.

Return value

Type: HRESULT 

Returns S_OK if successful; otherwise, an error code.

See also

Passing Arguments to an App or Game

Requirements

Header: Declared in DevkitExtensions.h.

Library: Use DevkitExtensions.lib.

DevkitExtensions is available under “%XboxOneExtensionSDKLatest%\ExtensionSDKs"