Prevent multiple definitions caused by MSVCRT headers.
[wine.git] / dlls / win32s / w32skernel.c
blob75b0101c9977c127f4cac32c547302d9645f7fe1
1 /*
2 * W32SKRNL
3 * DLL for Win32s
5 * Copyright (c) 1997 Andreas Mohr
6 */
8 #include <string.h>
10 #include "winbase.h"
11 #include "wine/windef16.h"
12 #include "thread.h"
14 /***********************************************************************
15 * GetWin32sDirectory
17 LPSTR WINAPI GetWin32sDirectory(void)
19 static char sysdir[0x80];
20 LPSTR text;
22 GetEnvironmentVariableA("winsysdir", sysdir, 0x80);
23 if (!sysdir) return NULL;
24 strcat(sysdir, "\\WIN32S");
25 text = HeapAlloc(GetProcessHeap(), 0, strlen(sysdir)+1);
26 strcpy(text, sysdir);
27 return text;
30 /***********************************************************************
31 * _GetThunkBuff
32 * FIXME: ???
34 SEGPTR WINAPI _GetThunkBuff(void)
36 return (SEGPTR)NULL;
40 /***********************************************************************
41 * GetCurrentTask32 (W32SKRNL.3)
43 HTASK16 WINAPI GetCurrentTask32(void)
45 return NtCurrentTeb()->htask16;