Home > Computers and Internet > Why are error codes pre appended with 0x8007 ?

Why are error codes pre appended with 0x8007 ?

In Windows the error code 5 and 0x80070005 are the same error, ERROR_ACCESS_DENIED. Since they are the same why are error codes preappended with 0x8007? I found the answer at Structure of COM Error Codes. The 8 means FAILURE and the 7 means FACILITY_WIN32. I think that was introduced as part of the transition from 16 bit to 32 bit. One might expect that the 7 would be replaced with something else as part of the transition to 64 bit, but that hasn’t happened.
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: