{"id":28853,"date":"2006-12-04T10:00:01","date_gmt":"2006-12-04T10:00:01","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2006\/12\/04\/the-name-winmain-is-just-a-convention\/"},"modified":"2006-12-04T10:00:01","modified_gmt":"2006-12-04T10:00:01","slug":"the-name-winmain-is-just-a-convention","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20061204-01\/?p=28853","title":{"rendered":"The name WinMain is just a convention"},"content":{"rendered":"<p> Although the function <code>WinMain<\/code> is documented in the Platform SDK, it&#8217;s not really part of the platform. Rather, <code>WinMain<\/code> is the conventional name for the user-provided entry point to a Windows program. <\/p>\n<p> The real entry point is in the C&nbsp;runtime library, which initializes the runtime, runs global constructors, and then calls your <code>WinMain<\/code> function (or <code>wWinMain<\/code> if you prefer a Unicode entry point). <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Although the function WinMain is documented in the Platform SDK, it&#8217;s not really part of the platform. Rather, WinMain is the conventional name for the user-provided entry point to a Windows program. The real entry point is in the C&nbsp;runtime library, which initializes the runtime, runs global constructors, and then calls your WinMain function (or [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25],"class_list":["post-28853","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>Although the function WinMain is documented in the Platform SDK, it&#8217;s not really part of the platform. Rather, WinMain is the conventional name for the user-provided entry point to a Windows program. The real entry point is in the C&nbsp;runtime library, which initializes the runtime, runs global constructors, and then calls your WinMain function (or [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/28853","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=28853"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/28853\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=28853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=28853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=28853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}