Release 951003
[wine/hacks.git] / win32 / environment.c
bloba37c57fd3aad1b70c828b858e32fbe30f16ded51
1 /*
2 * Win32 kernel functions
4 * Copyright 1995 Martin von Loewis and Cameron Heide
5 */
7 #include <stdio.h>
8 #include <string.h>
9 #include "windows.h"
10 #include "winerror.h"
11 #include "kernel32.h"
12 #include "task.h"
15 /***********************************************************************
16 * GetCommandLineA (KERNEL32.161)
18 LPSTR GetCommandLineA(void)
20 static char buffer[256];
21 PDB *pdb = (PDB *)GlobalLock( GetCurrentPDB() );
22 memcpy( buffer, &pdb->cmdLine[1], pdb->cmdLine[0] );
23 printf("CommandLine = %s\n", buffer );
24 return buffer;