ANSI console processes written in C can use the argc and argv arguments of the main function to access the command-line arguments.ANSI GUI applications can use the lpCmdLine parameter of the WinMain function to access the command-line string, excluding the program name.
类似于 main参数中的argv
::GetModuleFileName(NULL, szModule, MAX_PATH);
int nPos=strcspn(lpComm, szModule);
if (nPos<0)
return FALSE;请问上面的代码有什么作用?
都是程序的完整路径