I was always curious what nCmdShow means in C programs in WinMain using the Windows API.
I looked at the formal explanation: "Controls how the window should be displayed. This parameter can be one of the following values."
I do not understand what this means, since a Windows program can contain more than one window or no windows at all. In addition, as the program starts, there is no window to show in order to start with it, which further forces me to ask this argument.
Also from what I read, it always remains 10, which is not even included in the list of options in the section http://msdn.microsoft.com/en-us/library/windows/desktop/ms633559%28v=vs.85% 29.aspx "...
Is it out of date? Can someone explain their purpose or provide any links explaining its use? I tried searching on the Internet but did not see anything.
Thanks!
REVISED :
When you right-click a shortcut and go to properties, you can launch the Minimized, Maximized, or Normal (ly) window.
Windows provides the nCmdShow program for your program if it wants to act in a special way if it was launched in any of these three ways. For example, it may be hiding inside the notification panel if it was suggested to start minimizing it.
For completeness:

https://msdn.microsoft.com/en-us/library/windows/desktop/ms633548(v=vs.85).aspx describes all the ways that can be transferred.
winapi
Dmitry
source share