SDL2 Wiki
[ front page | index | search | recent changes | git repo | offline html ]

SDL_WinRTGetProtocolActivationURI

Get the protocol activation URI if the app was launched via protocol activation.

Header File

Defined in SDL_system.h

Syntax

char * SDL_WinRTGetProtocolActivationURI(void);

Return Value

(char *) Returns the protocol activation URI as a UTF-8 string that must be freed with SDL_free(), or NULL if the app was not activated via protocol or the URI was already retrieved.

Remarks

When a UWP/WinRT app is launched via a custom URI scheme (e.g., myapp://action?param=value), this function retrieves the full activation URI string.

The URI is only available once per activation - after the first successful call, subsequent calls will return NULL. This ensures the URI is processed only once.

Version

This function is available since SDL 2.33.0.


CategoryAPI, CategoryAPIFunction, CategorySystem


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.