- Added debugging.
[wine/testsucceed.git] / dlls / win32s / w32skernel.c
blob0bca7ac7471b5314873767697d8f0a9824ca833d
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 * _kGetWin32sDirectory@0 (W32SKRNL.14)
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;