Just like you, I wonder why there is no CommandLineToArgvA() function. Anyway, normally there should be an ANSI version for each wchart version. At last, I found the answer on Microsoft website. https://learn.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-getcommandlinea
"The command line returned by GetCommandLineA is a conversion of the Unicode command line to the 8-bit process code page.
For most code pages this conversion is lossy and the converted command line can differ from the Unicode command line, creating possible security issues like the following:
The conversion may alter strings intended for use as file names. For example, if the ANSI code page is Windows-1252, the Unicode character U+0100 (Latin capital letter A with macron: Ā) converts to 0x41 (the Latin capital letter A). If a user passes a file name containing the character Ā, a program that uses GetCommandLineA will receive it with the character A and operate on the wrong file. The conversion may alter how the command line is parsed. For example, if the ANSI code page is Windows-1252, the Unicode character U+FF02 (Fullwidth quotation mark: ") converts to 0x22 (the ASCII quotation mark) and the Unicode character U+2010 (Hyphen: ‐) converts to 0x2D (the ASCII minus sign). Both of these can result in command line file arguments being misinterpreted as command line options. To avoid this problem, use the GetCommandLineW function to receive the Unicode command line, or use an application manifest (on Windows Version 1903 or later) to set UTF-8 as the process code page."
The string from GetCommandLineA is a conversion of the Unicode command line to the 8-bit process code page. If we use it in CommandLineToArgvA() function, there might be a security problem. Hence, Microsoft don't want us to have CommandLineToArgvA() function. In fact, all ANSI version functions would convert ANSI strings into wchart strings under the hood of windows. When I use GetCommandLineA to get an ANSI command line, I just do it myself to reinvent the wheels to build my own function to handle it.