2 * Win32 ordinal only exported functions that can't be stuffed somehwere else.
4 * Copyright 1997 Marcus Meissner
10 #include "selectors.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)
25 /**********************************************************************
26 * WOWGetDescriptor (KERNEL32.88) (WOW32.1)
28 BOOL WINAPI WOWGetDescriptor(SEGPTR segptr,LPLDT_ENTRY ldtent)
30 return GetThreadSelectorEntry(GetCurrentThreadId(),segptr>>16,ldtent);
33 /***********************************************************************
34 * GetWin16DOSEnv (KERNEL32.34)
35 * Returns some internal value.... probably the default environment database?
37 DWORD WINAPI GetWin16DOSEnv()
39 FIXME_(dosmem)("stub, returning 0\n");
43 /**********************************************************************
44 * GetPK16SysVar (KERNEL32.92)
46 LPVOID WINAPI GetPK16SysVar(void)
48 static BYTE PK16SysVar[128];
50 FIXME_(win32)("()\n");
54 /**********************************************************************
55 * CommonUnimpStub (KERNEL32.17)
57 void WINAPI REGS_FUNC(CommonUnimpStub)( CONTEXT *context )
61 MESSAGE( "*** Unimplemented Win32 API: %s\n", (LPSTR)EAX_reg(context) );
63 switch ((ECX_reg(context) >> 4) & 0x0f)
65 case 15: EAX_reg(context) = -1; break;
66 case 14: EAX_reg(context) = 0x78; break;
67 case 13: EAX_reg(context) = 0x32; break;
68 case 1: EAX_reg(context) = 1; break;
69 default: EAX_reg(context) = 0; break;
72 ESP_reg(context) += (ECX_reg(context) & 0x0f) * 4;
76 /**********************************************************************
77 * HouseCleanLogicallyDeadHandles (KERNEL32.33)
79 void WINAPI HouseCleanLogicallyDeadHandles(void)
81 /* Whatever this is supposed to do, our handles probably
86 BOOL WINAPI _KERNEL32_100(HANDLE threadid,DWORD exitcode,DWORD x) {
87 FIXME_(thread)("(%d,%ld,0x%08lx): stub\n",threadid,exitcode,x);
91 DWORD WINAPI _KERNEL32_99(DWORD x) {
92 FIXME_(win32)("(0x%08lx): stub\n",x);
95 /***********************************************************************
96 * PrivateExtractIconExA [USER32.442]
98 HRESULT WINAPI PrivateExtractIconExA ( DWORD u, DWORD v, DWORD w, DWORD x ,DWORD y )
99 { FIXME_(win)("0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx stub\n",u,v,w,x,y);
103 /***********************************************************************
104 * PrivateExtractIconExW [USER32.443]
106 HRESULT WINAPI PrivateExtractIconExW ( DWORD u, DWORD v, DWORD w, DWORD x ,DWORD y )
107 { FIXME_(win)("0x%08lx 0x%08lx 0x%08lx 0x%08lx 0x%08lx stub\n",u,v,w,x,y);
111 /***********************************************************************
112 * PrivateExtractIconsW [USER32.445]
114 HRESULT WINAPI PrivateExtractIconsW ( DWORD r, DWORD s, DWORD t, DWORD u, DWORD v, DWORD w, DWORD x, DWORD y )
115 { 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 );
119 /***********************************************************************
120 * RegisterShellHookWindow [USER32.459]
122 HRESULT WINAPI RegisterShellHookWindow ( DWORD u )
123 { FIXME_(win)("0x%08lx stub\n",u);
127 /***********************************************************************
128 * DeregisterShellHookWindow [USER32.132]
130 HRESULT WINAPI DeregisterShellHookWindow ( DWORD u )
131 { FIXME_(win)("0x%08lx stub\n",u);
135 /***********************************************************************
136 * RegisterTaskList32 [USER23.436]
138 DWORD WINAPI RegisterTaskList (DWORD x)
139 { FIXME_(win)("0x%08lx\n",x);