It may amuse you to learn that Microsoft appears to have an error code even if the operation completes successfully!

Check what it says for 0x00000000 : The operation completed successfully!

I am sure it may be required at times by developers who want to be notified of successful completion of tasks - but just found it funny!

More Error Codes.