2 * Win32 kernel functions
4 * Copyright 1995 Martin von Loewis and Cameron Heide
18 /***********************************************************************
19 * GetCommandLineA (KERNEL32.161)
21 LPCSTR
GetCommandLine32A(void)
23 static char buffer
[256];
25 PDB
*pdb
= (PDB
*)GlobalLock16( GetCurrentPDB() );
27 lstrcpyn32A( buffer
, MODULE_GetModuleName( GetExePtr(GetCurrentTask()) ),
29 cp
= buffer
+ strlen(buffer
);
33 memcpy( cp
, &pdb
->cmdLine
[1], pdb
->cmdLine
[0] );
35 dprintf_win32(stddeb
,"CommandLine = %s\n", buffer
);
39 /***********************************************************************
40 * GetCommandLineW (KERNEL32.162)
42 LPCWSTR
GetCommandLine32W(void)
44 static WCHAR buffer
[256];
46 lstrcpynAtoW(buffer
,GetCommandLine32A(),256);
51 /***********************************************************************
52 * GetSystemPowerStatus (KERNEL32.621)
54 BOOL
GetSystemPowerStatus(LPSYSTEM_POWER_STATUS sps_ptr
)
56 return FALSE
; /* no power management support */
60 /***********************************************************************
61 * SetSystemPowerState (KERNEL32.630)
63 BOOL
SetSystemPowerState(BOOL suspend_or_hibernate
, BOOL force_flag
)
65 /* suspend_or_hibernate flag: w95 does not support
66 this feature anyway */