5 * Copyright (c) 1997 Andreas Mohr
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 #include "wine/winbase16.h"
26 #include "wine/debug.h"
28 WINE_DEFAULT_DEBUG_CHANNEL(dll
);
30 /***********************************************************************
31 * BootTask (WIN32S16.2)
33 void WINAPI
BootTask16()
35 MESSAGE("BootTask(): should only be used by WIN32S.EXE.\n");
38 /***********************************************************************
39 * StackLinearToSegmented (WIN32S16.43)
41 * Written without any docu.
43 SEGPTR WINAPI
StackLinearToSegmented16(WORD w1
, WORD w2
)
45 FIXME("(%d,%d):stub.\n",w1
,w2
);
50 /***********************************************************************
51 * UTSelectorOffsetToLinear (WIN32S16.48)
53 * rough guesswork, but seems to work (I had no "reasonable" docu)
55 LPVOID WINAPI
UTSelectorOffsetToLinear16(SEGPTR sptr
)
60 /***********************************************************************
61 * UTLinearToSelectorOffset (WIN32S16.49)
63 * FIXME: I don't know if that's the right way to do linear -> segmented
65 SEGPTR WINAPI
UTLinearToSelectorOffset16(LPVOID lptr
)
70 /***********************************************************************
71 * ContinueDebugEvent (WIN32S16.5)
73 BOOL WINAPI
ContinueDebugEvent16(DWORD pid
, DWORD tid
, DWORD status
)
75 return ContinueDebugEvent(pid
, tid
, status
);
78 /***********************************************************************
79 * ReadProcessMemory (WIN32S16.6)
81 BOOL WINAPI
ReadProcessMemory16(HANDLE process
, LPCVOID addr
, LPVOID buffer
,
82 DWORD size
, LPDWORD bytes_read
)
84 return ReadProcessMemory(process
, addr
, buffer
, size
, bytes_read
);
87 /***********************************************************************
88 * GetLastError (WIN32S16.10)
90 DWORD WINAPI
GetLastError16(void)
92 return GetLastError();
95 /***********************************************************************
96 * CloseHandle (WIN32S16.11)
98 BOOL WINAPI
CloseHandle16(HANDLE handle
)
100 return CloseHandle(handle
);
103 /***********************************************************************
104 * GetExitCodeThread (WIN32S16.13)
106 BOOL WINAPI
GetExitCodeThread16(HANDLE hthread
, LPDWORD exitcode
)
108 return GetExitCodeThread(hthread
, exitcode
);
111 /***********************************************************************
112 * VirtualQueryEx (WIN32S16.18)
114 DWORD WINAPI
VirtualQueryEx16(HANDLE handle
, LPCVOID addr
,
115 LPMEMORY_BASIC_INFORMATION info
, DWORD len
)
117 return VirtualQueryEx(handle
, addr
, info
, len
);
120 /***********************************************************************
121 * VirtualProtectEx (WIN32S16.19)
123 BOOL WINAPI
VirtualProtectEx16(HANDLE handle
, LPVOID addr
, DWORD size
,
124 DWORD new_prot
, LPDWORD old_prot
)
126 return VirtualProtectEx(handle
, addr
, size
, new_prot
, old_prot
);