# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1589499634 0 # Node ID b4b49d29b940ea448180f088fb43068ebb4ba4b0 # Parent ade83a05a7d8d74db5ed5d6ac1c037e82bf9bc3b Win: Windows 10 requires a GUID for Toast activation, so add that to dw_app_id_set(). diff -r ade83a05a7d8 -r b4b49d29b940 dw.h --- 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); diff -r ade83a05a7d8 -r b4b49d29b940 os2/dw.c --- 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; } diff -r ade83a05a7d8 -r b4b49d29b940 win/dw.c --- 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; }