Code analysis says Inconsistent annotation for ‘wWinMain’ : this instance has no annotations
The declaration of wWinMain in winbase.h (mentioned in the error) is: wWinMain( _In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine, _In_ int nShowCmd ); Your implementation of wWinMain in main.cpp is missing the SAL annotations and Code Analysis is warning you about the mismatch.