Hi Support,
Can you provide some detailed info on IAUX_Inst::IsUserBreak?
Seems like it will return true when, for example, user is:
- trying to open a password protected document and clicks Cancel
- opening a Word (any conversion) document and during conversion Cancel clicked
- doing any IOperation displaying Progress dialog - and clicking "Cancel"
Any other ?
-žarko
Confirmation / more info for IAUX_Inst::IsUserBreak SOLVED
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
- User
- Posts: 1372
- Joined: Thu Sep 05, 2019 12:35 pm
-
- Site Admin
- Posts: 2353
- Joined: Thu Jun 30, 2005 4:11 pm
- Location: Canada
Re: Confirmation / more info for IAUX_Inst::IsUserBreak
This function checks some different variations of HRESULT-codes that mean the same 'user-break' case. Briefly it is:
Code: Select all
HRESULT x = ...
if (x < 0)
{
int facility = (((DWORD)(x) >> 16) & 0x1ff);
int ecode = ((x) & 0x0ffff);
if (ecode == ERROR_CANCELLED)
{
if ((facility == 511) && (x & 0x02000000) // sdk's 'System' facility
||
(facility == FACILITY_WIN32)) // OS facility
return true;
}
}
Vasyl Yaremyn
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tracker Software Products
Project Developer
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 1372
- Joined: Thu Sep 05, 2019 12:35 pm
Re: Confirmation / more info for IAUX_Inst::IsUserBreak SOLVED
Hi Vasyl,
Great, thanks.
-ž
Great, thanks.
-ž
-
- Site Admin
- Posts: 17960
- Joined: Mon Jan 12, 2009 8:07 am
- Location: London