Added an unknown VxD error code.
[wine] / dlls / win32s / win32s16.c
1 /*
2  * WIN32S16
3  * DLL for Win32s
4  *
5  * Copyright (c) 1997 Andreas Mohr
6  */
7
8 #include <string.h>
9 #include <stdlib.h>
10 #include "windef.h"
11 #include "wine/winbase16.h"
12 #include "debugtools.h"
13
14 DEFAULT_DEBUG_CHANNEL(dll);
15
16 /***********************************************************************
17  *              BootTask16
18  */
19 void WINAPI BootTask16()
20 {
21         MESSAGE("BootTask(): should only be used by WIN32S.EXE.\n");
22 }
23
24 /***********************************************************************
25  *           StackLinearToSegmented       (WIN32S16.43)
26  *
27  * Written without any docu.
28  */
29 SEGPTR WINAPI StackLinearToSegmented16(WORD w1, WORD w2)
30 {
31         FIXME("(%d,%d):stub.\n",w1,w2);
32         return (SEGPTR)NULL;
33 }
34
35
36 /***********************************************************************
37  *           UTSelectorOffsetToLinear16       (WIN32S16.48)
38  *
39  * rough guesswork, but seems to work (I had no "reasonable" docu)
40  */
41 LPVOID WINAPI UTSelectorOffsetToLinear16(SEGPTR sptr)
42 {
43         return MapSL(sptr);
44 }
45
46 /***********************************************************************
47  *           UTLinearToSelectorOffset16       (WIN32S16.49)
48  *
49  * FIXME: I don't know if that's the right way to do linear -> segmented
50  */
51 SEGPTR WINAPI UTLinearToSelectorOffset16(LPVOID lptr)
52 {
53     return (SEGPTR)lptr;
54 }