2 * Win32 kernel functions
4 * Copyright 1995 Martin von Loewis and Cameron Heide
18 /***********************************************************************
19 * GetCommandLineA (KERNEL32.161)
21 LPCSTR WINAPI GetCommandLine32A(void)
23 static char buffer[256];
25 PDB *pdb = (PDB *)GlobalLock16( GetCurrentPDB() );
27 /* FIXME: should use pCurrentProcess->env_db->cmd_line here */
28 lstrcpyn32A( buffer, MODULE_GetModuleName(GetCurrentTask()),
30 cp = buffer + strlen(buffer);
34 memcpy( cp, &pdb->cmdLine[1], pdb->cmdLine[0] );
36 dprintf_win32(stddeb,"CommandLine = %s\n", buffer );
40 /***********************************************************************
41 * GetCommandLineW (KERNEL32.162)
43 LPCWSTR WINAPI GetCommandLine32W(void)
45 static WCHAR buffer[256];
47 lstrcpynAtoW(buffer,GetCommandLine32A(),256);
52 /***********************************************************************
53 * GetSystemPowerStatus (KERNEL32.621)
55 BOOL32 WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS sps_ptr)
57 return FALSE; /* no power management support */
61 /***********************************************************************
62 * SetSystemPowerState (KERNEL32.630)
64 BOOL32 WINAPI SetSystemPowerState(BOOL32 suspend_or_hibernate,
67 /* suspend_or_hibernate flag: w95 does not support
68 this feature anyway */