comparison win/wintoast.cpp @ 2098:665d87a50eac

Win: Test that the OS is compatible for WinToast before returning supported.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 11 Jun 2020 22:21:53 +0000
parents bcc7877dcdac
children 6e55c6f8d816
comparison
equal deleted inserted replaced
2097:6608fc7f6465 2098:665d87a50eac
86 if(templ && WinToast::instance()->showToast(*templ, new DWHandler()) >= 0) 86 if(templ && WinToast::instance()->showToast(*templ, new DWHandler()) >= 0)
87 return 0; // DW_ERROR_NONE 87 return 0; // DW_ERROR_NONE
88 } 88 }
89 return -1; // DW_ERROR_UNKNOWN 89 return -1; // DW_ERROR_UNKNOWN
90 } 90 }
91
92 BOOL _dw_toast_is_compatible(void)
93 {
94 return WinToast::isCompatible();
95 }
91 } 96 }