需要 _In_ 检测,将 WinMain 修改如下:

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
)

各参数的含义如下

  • _In_:输入参数
  • _Out_:输出参数
  • _In_opt_:可选的输入参数
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐