Gets the program name.
If the program is running as a Win32 service, the return value is the service name. Otherwise the return value is the executable name (i.e., argv[0]).