In <windows.h> ERROR is defined as 0. So unless you were to undefine ERROR before your enum you would be writing
enum ERR_CODE { SUCCESS, 0 };
because the preprocessor just does a "find-replace" for ERROR and swaps it with 0.
A quick solution would be to just define SUCCESS as 1 so then ERROR is 0 and SUCCESS is 1. This is backwards to how you wanted it but unless you undefine ERROR or come up with a different name you cant do anything else.