Release 950727
[wine] / misc / kernel32.c
1 /*
2  * Win32 kernel functions
3  *
4  * Copyright 1995 Martin von Loewis
5  */
6
7 /* This file contains only wrappers to existing Wine functions or trivial
8    stubs. 'Real' implementations go into context specific files */
9
10 #include "windows.h"
11 #include "winerror.h"
12 #include <unistd.h>
13
14 int WIN32_LastError;
15
16 /***********************************************************************
17  *           GetCommandLineA      (KERNEL32.161)
18  */
19 LPSTR GetCommandLineA(void)
20 {
21         return 0;
22 }
23
24 /***********************************************************************
25  *           GetCurrentThreadId   (KERNEL32.200)
26  */
27
28 int GetCurrentThreadId(void)
29 {
30         return getpid();
31 }
32
33
34 /***********************************************************************
35  *           GetEnvironmentStrings    (KERNEL32.210)
36  */
37 LPSTR GetEnvironmentStrings(void)
38 {
39         return 0;
40 }
41
42 /***********************************************************************
43  *           GetStdHandle             (KERNEL32.276)
44  */
45 HANDLE GetStdHandle(DWORD nStdHandle)
46 {
47         switch(nStdHandle)
48         {
49                 case -10/*STD_INPUT_HANDLE*/:return 0;
50                 case -11/*STD_OUTPUT_HANDLE*/:return 1;
51                 case -12/*STD_ERROR_HANDLE*/:return 2;
52         }
53         return -1;
54 }
55
56 /***********************************************************************
57  *           GetThreadContext         (KERNEL32.294)
58  */
59 BOOL GetThreadContext(HANDLE hThread, void *lpContext)
60 {
61         return FALSE;
62 }