WinMain Issue

Just updated my Visual Studio To 2019 version.
Getting an error message "Inconsistent annotation for WinMain".
What does this mean and what setting in the environment will fix this?
You can either ignore the message -- it should be a warning, not an error.

Or use SAL.

https://docs.microsoft.com/en-us/cpp/code-quality/using-sal-annotations-to-reduce-c-cpp-code-defects?view=msvc-160

Here's what VS 2019 uses for WinMain with a Desktop application:
1
2
3
4
int APIENTRY wWinMain(_In_     HINSTANCE hInstance,
                      _In_opt_ HINSTANCE hPrevInstance,
                      _In_     LPWSTR    lpCmdLine,
                      _In_     int       nCmdShow)
Topic archived. No new replies allowed.