Removed a few dependencies on kernel32 functions.
[wine] / dlls / win32s / w32sys.c
1 /*
2  * W32SYS
3  * helper DLL for Win32s
4  *
5  * Copyright (c) 1996 Anand Kumria
6  */
7
8 #include "windef.h"
9 #include "wine/windef16.h"
10 #include "debugtools.h"
11
12 DEFAULT_DEBUG_CHANNEL(dll);
13
14 typedef struct
15 {
16     BYTE   bMajor;
17     BYTE   bMinor;
18     WORD   wBuildNumber;
19     BOOL16 fDebug;
20 } WIN32SINFO, *LPWIN32SINFO;
21
22 /***********************************************************************
23  *           GetWin32sInfo   (W32SYS.12)
24  * RETURNS
25  *  0 on success, 1 on failure
26  */
27 WORD WINAPI GetWin32sInfo16(
28         LPWIN32SINFO lpInfo     /* [out] Win32S special information */
29 ) {
30     lpInfo->bMajor = 1;
31     lpInfo->bMinor = 3;
32     lpInfo->wBuildNumber = 0;
33     lpInfo->fDebug = FALSE;
34
35     return 0;
36 }
37
38 /***********************************************************************
39  *            GetW32SysVersion16  (W32SYS.5)
40  */
41 WORD WINAPI GetW32SysVersion16(void)
42 {
43     return 0x100;
44 }
45
46 /***********************************************************************
47  *           GetPEResourceTable   (W32SYS.7)
48  * retrieves the resourcetable from the passed filedescriptor
49  * RETURNS
50  *      dunno what.
51  */
52 WORD WINAPI GetPEResourceTable16(
53         HFILE16 hf              /* [in] filedescriptor to opened executeable */
54 ) {
55         return 0;
56 }
57
58 /***********************************************************************
59  *           LoadPeResource
60  */
61 DWORD WINAPI LoadPeResource16(WORD x,SEGPTR y) {
62         FIXME("(0x%04x,0x%08lx),stub!\n",x,y);
63         return 0;
64 }