blob: 7204884566c394515bd6647612b55dd0fee19083 [file] [log] [blame]
/*
* Win32 kernel functions
*
* Copyright 1995 Martin von Loewis and Cameron Heide
*/
#include <stdio.h>
#include "windows.h"
#include "winerror.h"
#include "kernel32.h"
#include "stddebug.h"
#include "debug.h"
static int WIN32_LastError;
/**********************************************************************
* GetLastError (KERNEL32.227)
*/
DWORD GetLastError(void)
{
return WIN32_LastError;
}
/**********************************************************************
* SetLastError (KERNEL32.497)
*
* This is probably not used by apps too much, but it's useful for
* our own internal use.
*/
void SetLastError(DWORD error)
{
WIN32_LastError = error;
}
DWORD ErrnoToLastError(int errno_num)
{
return errno_num; /* Obviously not finished yet. :-) */
}