Release 950522
[wine.git] / misc / kernel32.c
blob0be2b097325c5cf54991766177ce051a2117aae1
1 /*
2 * Win32 kernel functions
4 * Copyright 1995 Martin von Loewis
5 */
7 /* This file contains only wrappers to existing Wine functions or trivial
8 stubs. 'Real' implementations go into context specific files */
10 #include "windows.h"
11 #include "winerror.h"
13 int WIN32_LastError;
15 /***********************************************************************
16 * GetCommandLineA (KERNEL32.161)
18 LPSTR GetCommandLineA(void)
20 return 0;
23 /***********************************************************************
24 * GetCurrentThreadId (KERNEL32.200)
27 int GetCurrentThreadId(void)
29 return getpid();
33 /***********************************************************************
34 * GetEnvironmentStrings (KERNEL32.210)
36 LPSTR GetEnvironmentStrings(void)
38 return 0;
41 /***********************************************************************
42 * GetStdHandle (KERNEL32.276)
44 HANDLE GetStdHandle(DWORD nStdHandle)
46 switch(nStdHandle)
48 case -10/*STD_INPUT_HANDLE*/:return 0;
49 case -11/*STD_OUTPUT_HANDLE*/:return 1;
50 case -12/*STD_ERROR_HANDLE*/:return 2;
52 return -1;
55 /***********************************************************************
56 * GetThreadContext (KERNEL32.294)
58 BOOL GetThreadContext(HANDLE hThread, void *lpContext)
60 return FALSE;