Changeset 131


Ignore:
Timestamp:
Oct 11, 2012, 1:21:24 PM (11 years ago)
Author:
roman
Message:

Win32 facility priority for well known codes (might be reused in other "families" of codes

Location:
trunk/Utilities/ShowHresult
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/ShowHresult/NotifyIconWindow.h

    r129 r131  
    525525                        sTitle = _T("Media Foundation");
    526526                }
    527                 ////////////////////////////////////////////////////
     527                #pragma region Obsolete?
    528528                // NOTE: These are perhaps useless in Windows 7, but I am under impression they are helpful in earlier systems
    529529                else if(IsWs2Result(nResult, &sMessage))
     
    533533                else if(IsWinInetResult(nResult, &sMessage))
    534534                        sTitle = _T("WinInet");
    535                 ////////////////////////////////////////////////////
     535                #pragma endregion
     536                #pragma region Win32 Priority
     537                else if(HRESULT_SEVERITY(nResult) == SEVERITY_ERROR && HRESULT_FACILITY(nResult) == FACILITY_WIN32 && (UINT) HRESULT_CODE(nResult) < 300)
     538                {
     539                        sMessage = AtlFormatSystemMessage(nResult);
     540                        if(!LookupSystemIdentifier(nResult, sIdentifier))
     541                                 LookupHresultSystemIdentifier(nResult, sIdentifier);
     542                        if(!sMessage.IsEmpty() || !sIdentifier.IsEmpty())
     543                                sTitle = _T("System");
     544                }
     545                #pragma endregion
    536546                else if(IsD3dResult(nResult, &sMessage, &sIdentifier) || LookupD3dIdentifier(nResult, sIdentifier))
    537547                        sTitle = _T("DirectDraw/Direct3D");
  • trunk/Utilities/ShowHresult/ShowHresult_i.c

    r128 r131  
    77
    88 /* File created by MIDL compiler version 7.00.0555 */
    9 /* at Thu Oct 04 11:56:46 2012
     9/* at Thu Oct 11 23:19:07 2012
    1010 */
    1111/* Compiler settings for ShowHresult.idl:
  • trunk/Utilities/ShowHresult/ShowHresult_i.h

    r128 r131  
    55
    66 /* File created by MIDL compiler version 7.00.0555 */
    7 /* at Thu Oct 04 11:56:46 2012
     7/* at Thu Oct 11 23:19:07 2012
    88 */
    99/* Compiler settings for ShowHresult.idl:
Note: See TracChangeset for help on using the changeset viewer.