9 void debug_printf(char* fmt, ...)
15 vsprintf(buffer,fmt,args);
16 WriteConsoleA(OutputHandle, buffer, strlen(buffer), NULL, NULL);
21 int main(int argc, char* argv[])
26 InputHandle = GetStdHandle(STD_INPUT_HANDLE);
27 OutputHandle = GetStdHandle(STD_OUTPUT_HANDLE);
29 printf("GetCommandLineA() %s\n",GetCommandLineA());
30 debug_printf("GetCommandLineA() %s\n",GetCommandLineA());
31 debug_printf("argc %d\n", argc);
32 for (i=0; i<argc; i++)
34 debug_printf("Argv[%d]: %x\n",i,argv[i]);
35 debug_printf("Argv[%d]: '%s'\n",i,argv[i]);