setToastActivatorCLSID

Changes the Toast Activator CLSID to id. If one is not set via this method, it will be randomly generated for the app.

  • The value must be a valid GUID/CLSID in one of the following forms:

  • Canonical brace-wrapped: {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} (preferred)

  • Canonical without braces: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX (braces will be added automatically)

  • Hex digits are case-insensitive.

This method should be called early (before showing notifications) so the value is baked into the registration/shortcut. Supplying an empty string or an unparsable value throws and leaves the existing (or generated) CLSID unchanged. If this method is never called, a random CLSID is generated once per run and exposed via app.toastActivatorCLSID.