Fix: Does not run on Win8.1 build 17041 and later
Fix: Error messages do not appear
Fix: Using unnecessary macros
Fix: Implementation in header files
Fix: Inefficient RAII (switched to using N3949)