The great thing about naming conventions is that not everybody will follow them
The naming convention for
HRESULT is «facility»
_«name», where the facility portion (and the underscore) is omitted if the facility is
Good luck finding anybody who follows this naming convention.
Okay, fine, if you look closely you might be able to find some people who do.
|Data and view||DV_||E_||TYMED|
Actually, I guess I was a bit too pessimistic when I said nobody follows it. It seems that the majority of Windows components do follow this convention, although there are some notable exceptions.
There are also some people who decided to confuse matters further by using the
HRESULT convention for error codes returned by
I apologize for the confusion this has caused.
Pre-emptive clarifying remark: The examples given in this article are merely illustrative and are not intended to be comprehensive.