Win32 programs have the unfortunate problem of being either GUI based or console based initially, one of the problem is that GUI programs cannot show console output by default, this shows how to re-enable console output and retrieve 'argc' and 'argv'.
It's always a good idea to handle Ctrl-C events with a custom function to perform any necessary cleanup, this shows handling Ctrl-C events in Win32 and POSIX console