blob: 70c253a017c019880b9e7c600559c167f88addb3 [file] [log] [blame]
/*
* Win32 kernel functions
*
* Copyright 1995 Martin von Loewis and Cameron Heide
*/
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "windows.h"
#include "winerror.h"
#include "module.h"
#include "task.h"
#include "debug.h"
#include "process.h" /* for PROCESS_Current() */
/***********************************************************************
* GetCommandLineA (KERNEL32.161)
*/
LPCSTR WINAPI GetCommandLine32A(void)
{
return PROCESS_Current()->env_db->cmd_line;
}
/***********************************************************************
* GetCommandLineW (KERNEL32.162)
*/
LPCWSTR WINAPI GetCommandLine32W(void)
{
static WCHAR buffer[1024];
lstrcpynAtoW(buffer,GetCommandLine32A(),1024);
return buffer;
}
/***********************************************************************
* GetSystemPowerStatus (KERNEL32.621)
*/
BOOL32 WINAPI GetSystemPowerStatus(LPSYSTEM_POWER_STATUS sps_ptr)
{
return FALSE; /* no power management support */
}
/***********************************************************************
* SetSystemPowerState (KERNEL32.630)
*/
BOOL32 WINAPI SetSystemPowerState(BOOL32 suspend_or_hibernate,
BOOL32 force_flag)
{
/* suspend_or_hibernate flag: w95 does not support
this feature anyway */
for ( ;0; )
{
if ( force_flag )
{
}
else
{
}
}
return TRUE;
}