mirror of
https://github.com/reactos/wine.git
synced 2025-02-01 17:53:25 +00:00
bf9130af10
Sun Oct 13 15:32:32 1996 Alexandre Julliard <julliard@lrc.epfl.ch> * [Make.rules.in] [*/Makefile.in] Made it possible to compile from a directory other than the source directory. * [graphics/metafiledrv/init.c] [include/metafiledrv.h] [objects/metafile.c] [objects/dc.c] New graphics driver for metafiles. * [if1632/thunk.c] Added thunks for SetWindowsHook and SetDCHook. * [windows/dialog.c] Fixed GetNextDlgGroupItem and GetNextDlgTabItem to skip disabled items. * [*/*] Removed non Win32-clean types HANDLE, HBITMAP, HBRUSH, HFONT, HINSTANCE, HMENU, HRGN and HTASK. Wed Oct 9 14:59:45 1996 Frans van Dorsselaer <dorssel@rulhm1.LeidenUniv.nl> * [controls/edit.c] Fixed EditWndProc() to fall back to DefWndProc() when the edit state structure is not available. Wed Oct 2 14:00:34 1996 Huw D. M. Davies <h.davies1@physics.oxford.ac.uk> * [windows/nonclient.c] [windows/mdi.c] AdjustWindowRectEx16() should only take notice of the styles WS_DLGFRAME, WS_BORDER, WS_THICKFRAME and WS_EX_DLGMODALFRAME. Thanks to Alex Korobka. * [controls/scroll.c] Fixed typo in ShowScrollBar32(). Sun Aug 25 20:18:56 1996 Jukka Iivonen <iivonen@cc.helsinki.fi> * [if1632/user32.spec] [if1632/winmm.spec] Added SetParent and sndPlaySoundA.
80 lines
1.8 KiB
C
80 lines
1.8 KiB
C
/*
|
|
* 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 "stddebug.h"
|
|
#include "debug.h"
|
|
|
|
|
|
/***********************************************************************
|
|
* GetCommandLineA (KERNEL32.161)
|
|
*/
|
|
LPCSTR GetCommandLine32A(void)
|
|
{
|
|
static char buffer[256];
|
|
char *cp;
|
|
PDB *pdb = (PDB *)GlobalLock16( GetCurrentPDB() );
|
|
|
|
lstrcpyn32A( buffer, MODULE_GetModuleName( GetExePtr(GetCurrentTask()) ),
|
|
sizeof(buffer) - 1 );
|
|
cp = buffer + strlen(buffer);
|
|
if (pdb->cmdLine[0])
|
|
{
|
|
*cp++ = ' ';
|
|
memcpy( cp, &pdb->cmdLine[1], pdb->cmdLine[0] );
|
|
}
|
|
dprintf_win32(stddeb,"CommandLine = %s\n", buffer );
|
|
return buffer;
|
|
}
|
|
|
|
/***********************************************************************
|
|
* GetCommandLineW (KERNEL32.162)
|
|
*/
|
|
LPCWSTR GetCommandLine32W(void)
|
|
{
|
|
static WCHAR buffer[256];
|
|
|
|
lstrcpynAtoW(buffer,GetCommandLine32A(),256);
|
|
return buffer;
|
|
}
|
|
|
|
|
|
/***********************************************************************
|
|
* GetSystemPowerStatus (KERNEL32.621)
|
|
*/
|
|
BOOL32 GetSystemPowerStatus(LPSYSTEM_POWER_STATUS sps_ptr)
|
|
{
|
|
return FALSE; /* no power management support */
|
|
}
|
|
|
|
|
|
/***********************************************************************
|
|
* SetSystemPowerState (KERNEL32.630)
|
|
*/
|
|
BOOL32 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;
|
|
}
|
|
|