5 * Copyright (c) 1997 Andreas Mohr
11 #include "wine/winbase16.h"
12 #include "debugtools.h"
14 DEFAULT_DEBUG_CHANNEL(dll
);
16 /***********************************************************************
17 * BootTask (WIN32S16.2)
19 void WINAPI
BootTask16()
21 MESSAGE("BootTask(): should only be used by WIN32S.EXE.\n");
24 /***********************************************************************
25 * StackLinearToSegmented (WIN32S16.43)
27 * Written without any docu.
29 SEGPTR WINAPI
StackLinearToSegmented16(WORD w1
, WORD w2
)
31 FIXME("(%d,%d):stub.\n",w1
,w2
);
36 /***********************************************************************
37 * UTSelectorOffsetToLinear (WIN32S16.48)
39 * rough guesswork, but seems to work (I had no "reasonable" docu)
41 LPVOID WINAPI
UTSelectorOffsetToLinear16(SEGPTR sptr
)
46 /***********************************************************************
47 * UTLinearToSelectorOffset (WIN32S16.49)
49 * FIXME: I don't know if that's the right way to do linear -> segmented
51 SEGPTR WINAPI
UTLinearToSelectorOffset16(LPVOID lptr
)
56 /***********************************************************************
57 * ContinueDebugEvent (WIN32S16.5)
59 BOOL WINAPI
ContinueDebugEvent16(DWORD pid
, DWORD tid
, DWORD status
)
61 return ContinueDebugEvent(pid
, tid
, status
);
64 /***********************************************************************
65 * ReadProcessMemory (WIN32S16.6)
67 BOOL WINAPI
ReadProcessMemory16(HANDLE process
, LPCVOID addr
, LPVOID buffer
,
68 DWORD size
, LPDWORD bytes_read
)
70 return ReadProcessMemory(process
, addr
, buffer
, size
, bytes_read
);
73 /***********************************************************************
74 * GetLastError (WIN32S16.10)
76 DWORD WINAPI
GetLastError16(void)
78 return GetLastError();
81 /***********************************************************************
82 * CloseHandle (WIN32S16.11)
84 BOOL WINAPI
CloseHandle16(HANDLE handle
)
86 return CloseHandle(handle
);
89 /***********************************************************************
90 * GetExitCodeThread (WIN32S16.13)
92 BOOL WINAPI
GetExitCodeThread16(HANDLE hthread
, LPDWORD exitcode
)
94 return GetExitCodeThread(hthread
, exitcode
);
97 /***********************************************************************
98 * VirtualQueryEx (WIN32S16.18)
100 DWORD WINAPI
VirtualQueryEx16(HANDLE handle
, LPCVOID addr
,
101 LPMEMORY_BASIC_INFORMATION info
, DWORD len
)
103 return VirtualQueryEx(handle
, addr
, info
, len
);
106 /***********************************************************************
107 * VirtualProtectEx (WIN32S16.19)
109 BOOL WINAPI
VirtualProtectEx16(HANDLE handle
, LPVOID addr
, DWORD size
,
110 DWORD new_prot
, LPDWORD old_prot
)
112 return VirtualProtectEx(handle
, addr
, size
, new_prot
, old_prot
);