2 * Win32 kernel functions
4 * Copyright 1995 Martin von Loewis and Cameron Heide
19 /***********************************************************************
20 * GetCommandLineA (KERNEL32.161)
22 LPSTR
GetCommandLineA(void)
24 static char buffer
[256];
26 PDB
*pdb
= (PDB
*)GlobalLock( GetCurrentPDB() );
29 strcpy(buffer
, MODULE_GetModuleName( GetExePtr(GetCurrentTask()) ) );
30 cp
= buffer
+strlen(buffer
);
35 memcpy( cp
, &pdb
->cmdLine
[1], pdb
->cmdLine
[0] );
36 dprintf_win32(stddeb
,"CommandLine = %s\n", buffer
);