Corrected operand sizes for the "enter" instruction.
[wine.git] / win32 / ordinals.c
blob3f8cf854b9eb5833b6f5916912e2ddf2eaed1f15
1 /*
2 * Win32 ordinal only exported functions that can't be stuffed somehwere else.
4 * Copyright 1997 Marcus Meissner
5 */
7 #include "thread.h"
8 #include "winerror.h"
9 #include "heap.h"
10 #include "selectors.h"
11 #include "miscemu.h"
12 #include "winnt.h"
13 #include "process.h"
14 #include "module.h"
15 #include "task.h"
16 #include "callback.h"
17 #include "stackframe.h"
18 #include "debugtools.h"
20 DECLARE_DEBUG_CHANNEL(dosmem)
21 DECLARE_DEBUG_CHANNEL(thread)
22 DECLARE_DEBUG_CHANNEL(win)
23 DECLARE_DEBUG_CHANNEL(win32)
26 /***********************************************************************
27 * GetWin16DOSEnv (KERNEL32.34)
28 * Returns some internal value.... probably the default environment database?
30 DWORD WINAPI GetWin16DOSEnv()
32 FIXME_(dosmem)("stub, returning 0\n");
33 return 0;
36 /**********************************************************************
37 * GetPK16SysVar (KERNEL32.92)
39 LPVOID WINAPI GetPK16SysVar(void)
41 static BYTE PK16SysVar[128];
43 FIXME_(win32)("()\n");
44 return PK16SysVar;
47 /**********************************************************************
48 * CommonUnimpStub (KERNEL32.17)
50 void WINAPI REGS_FUNC(CommonUnimpStub)( CONTEXT *context )
52 #ifdef __i386__
53 if (EAX_reg(context))
54 MESSAGE( "*** Unimplemented Win32 API: %s\n", (LPSTR)EAX_reg(context) );
56 switch ((ECX_reg(context) >> 4) & 0x0f)
58 case 15: EAX_reg(context) = -1; break;
59 case 14: EAX_reg(context) = 0x78; break;
60 case 13: EAX_reg(context) = 0x32; break;
61 case 1: EAX_reg(context) = 1; break;
62 default: EAX_reg(context) = 0; break;
65 ESP_reg(context) += (ECX_reg(context) & 0x0f) * 4;
66 #endif
69 /**********************************************************************
70 * HouseCleanLogicallyDeadHandles (KERNEL32.33)
72 void WINAPI HouseCleanLogicallyDeadHandles(void)
74 /* Whatever this is supposed to do, our handles probably
75 don't need it :-) */
79 BOOL WINAPI _KERNEL32_100(HANDLE threadid,DWORD exitcode,DWORD x) {
80 FIXME_(thread)("(%d,%ld,0x%08lx): stub\n",threadid,exitcode,x);
81 return TRUE;
84 DWORD WINAPI _KERNEL32_99(DWORD x) {
85 FIXME_(win32)("(0x%08lx): stub\n",x);
86 return 1;
88 /***********************************************************************
89 * PrivateExtractIconExA [USER32.442]
91 HRESULT WINAPI PrivateExtractIconExA ( DWORD u, DWORD v, DWORD w, DWORD x ,DWORD y )
92 { FIXME_(win)("0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx stub\n",u,v,w,x,y);
93 return 0;
96 /***********************************************************************
97 * PrivateExtractIconExW [USER32.443]
99 HRESULT WINAPI PrivateExtractIconExW ( DWORD u, DWORD v, DWORD w, DWORD x ,DWORD y )
100 { FIXME_(win)("0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx stub\n",u,v,w,x,y);
101 return 0;
104 /***********************************************************************
105 * PrivateExtractIconsW [USER32.445]
107 HRESULT WINAPI PrivateExtractIconsW ( DWORD r, DWORD s, DWORD t, DWORD u, DWORD v, DWORD w, DWORD x, DWORD y )
108 { FIXME_(win)("0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx stub\n",r,s,t,u,v,w,x,y );
109 return 0;
112 /***********************************************************************
113 * RegisterShellHookWindow [USER32.459]
115 HRESULT WINAPI RegisterShellHookWindow ( DWORD u )
116 { FIXME_(win)("0x%08lx stub\n",u);
117 return 0;
120 /***********************************************************************
121 * DeregisterShellHookWindow [USER32.132]
123 HRESULT WINAPI DeregisterShellHookWindow ( DWORD u )
124 { FIXME_(win)("0x%08lx stub\n",u);
125 return 0;
128 /***********************************************************************
129 * RegisterTaskList32 [USER23.436]
131 DWORD WINAPI RegisterTaskList (DWORD x)
132 { FIXME_(win)("0x%08lx\n",x);
133 return TRUE;