changeset 2069:b4b49d29b940

Win: Windows 10 requires a GUID for Toast activation, so add that to dw_app_id_set().
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 14 May 2020 23:40:34 +0000
parents ade83a05a7d8
children 370baf78abdc
files dw.h os2/dw.c win/dw.c
diffstat 3 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/dw.h	Thu May 14 23:27:56 2020 +0000
+++ b/dw.h	Thu May 14 23:40:34 2020 +0000
@@ -1790,7 +1790,7 @@
 char * API dw_file_browse(const char *title, const char *defpath, const char *ext, int flags);
 char * API dw_user_dir(void);
 char * API dw_app_dir(void);
-int API dw_app_id_set(const char *appid);
+int API dw_app_id_set(const char *appid, const char *appguid);
 DWDialog * API dw_dialog_new(void *data);
 int API dw_dialog_dismiss(DWDialog *dialog, void *result);
 void * API dw_dialog_wait(DWDialog *dialog);
--- a/os2/dw.c	Thu May 14 23:27:56 2020 +0000
+++ b/os2/dw.c	Thu May 14 23:40:34 2020 +0000
@@ -13310,6 +13310,7 @@
  * Sets the application ID used by this Dynamic Windows application instance.
  * Parameters:
  *         appid: A string typically in the form: com.company.division.application
+ *         appguid: A globally unique identifier required on Windows or NULL.
  * Returns:
  *         DW_ERROR_NONE after successfully setting the application ID.
  *         DW_ERROR_UNKNOWN if unsupported on this system.
@@ -13318,8 +13319,9 @@
  *          This must be called before dw_init().  If dw_init() is called first
  *          it will create a unique ID in the form: org.dbsoft.dwindows.application
  *          or if the application name cannot be detected: org.dbsoft.dwindows.pid.#
- */
-int dw_app_id_set(const char *appid)
+ *          The GUID is only required on Windows, NULL can be passed on other platforms.
+ */
+int dw_app_id_set(const char *appid, const char *appguid)
 {
     return DW_ERROR_UNKNOWN;
 }
--- a/win/dw.c	Thu May 14 23:27:56 2020 +0000
+++ b/win/dw.c	Thu May 14 23:40:34 2020 +0000
@@ -12819,6 +12819,7 @@
  * Sets the application ID used by this Dynamic Windows application instance.
  * Parameters:
  *         appid: A string typically in the form: com.company.division.application
+ *         appguid: A globally unique identifier required on Windows or NULL.
  * Returns:
  *         DW_ERROR_NONE after successfully setting the application ID.
  *         DW_ERROR_UNKNOWN if unsupported on this system.
@@ -12827,8 +12828,9 @@
  *          This must be called before dw_init().  If dw_init() is called first
  *          it will create a unique ID in the form: org.dbsoft.dwindows.application
  *          or if the application name cannot be detected: org.dbsoft.dwindows.pid.#
- */
-int dw_app_id_set(const char *appid)
+ *          The GUID is only required on Windows, NULL can be passed on other platforms.
+ */
+int dw_app_id_set(const char *appid, const char *appguid)
 {
     return DW_ERROR_UNKNOWN;
 }