Solve the VS prompt C28251: "WinMain" annotations are inconsistent, this instance contains no annotations:

To _In_ detect, WinMainmodify as follows:

int WINAPI WinMain(
    _In_ HINSTANCE hInstance,      // handle to current instance
    _In_opt_ HINSTANCE hPrevInstance,  // handle to previous instance
    _In_ LPSTR lpCmdLine,          // command line
    _In_ int nCmdShow              // show state
)

The meaning of each parameter is as follows

  • _In_:Input parameters
  • _Out_:Output parameters
  • _In_opt_: optional input parameters

Guess you like

Origin blog.csdn.net/hfy1237/article/details/130574956