Was having hard time finding this but I know I've seen it before.
It's a macro you can call a HRESULT function from and if it returns an error during program execution it gives you good debug information.
I remember it being something like this
CHECK_FOR_SUCCESS(functionCall(...));
I remember having learned about it in a win32 api tutorial but I've forgoten it and can't rememebr what it was.