
Sun Aug 11 13:00:20 1996 Alexandre Julliard <julliard@lrc.epfl.ch> * [configure.in] [include/acconfig.h] [tools/build.c] Added check for underscore on external symbols. * [memory/selector.c] [memory/global.c] Fixed FreeSelector() to free only one selector. Added SELECTOR_FreeBlock() to free an array of selectors. * [objects/color.c] Fixed a bug in COLOR_ToLogical() that caused GetPixel() to fail on hi-color displays. * [tools/build.c] [if1632/crtdll.spec] Added 'extern' type, used for external variables or functions. * [windows/winpos.c] Allow de-activating a window in WINPOS_ChangeActiveWindow(). * [windows/winproc.c] Added 32-to-16 translation for button messages. Fixed WINPROC_GetPtr() to avoid crashes on 32-bit procedures that happen to be valid SEGPTRs. Sat Aug 10 18:22:25 1996 Albrecht Kleine <kleine@ak.sax.de> * [windows/message.c] Removed a FIXME in MSG_PeekHardwareMsg(): produces correct data for the JOURNALRECORD-hook (using EVENTMSG16 structure). * [if1632/gdi.spec] [include/windows.h] [objects/metafile.c] Introduced undocumented API function IsValidMetaFile(), plus a minor fix in last patch of CopyMetaFile(). * [objects/gdiobj.c] Removed a FIXME in IsGDIObject(): added magic word check. Sun Aug 10 18:10:10 1996 Bruce Milner <Bruce.Milner@genetics.utah.edu> * [controls/statuswin.c] First pass at implementing the StatusWindow class. * [include/commctrl.h] Header file for common controls. * [controls/widgets.c] Added InitCommonControls(). * [if1632/comctl32.spec] Add DrawStatusTextA, CreateStatusWindowA, InitCommonControls. * [win32/findfile.c] [if1632/kernel32.spec] Add FindNextFile32A, FindClose. Modified FindFirstFile32A so it works with FindNextFile32A. * [include/winbase.h] Fixed WIN32_FIND_DATA structure member names. Sat Aug 10 09:00:00 1996 Alex Korobka <alex@phm30.pharm.sunysb.edu> * [windows/scroll.c] Changed scrolling routines to benefit from DCE code update. Thu Aug 8 18:05:09 1996 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de> * [files/file.c] SearchPath* could get NULL for lastpart argument. * [if1632/build-spec.txt] [documentation/debugging] Varargs documentation added, debugging hints updated. * [if1632/crtdll.spec][misc/crtdll.c][misc/Makefile.in] Started to implement CRTDLL. * [if1632/wsock32.spec] Some thunks to standard libc functions (structures have the same elements, but perhaps wrong offset due to packing). * [include/kernel32.h][include/windows.h][win32/*.c][loader/main.c] Merged kernel32.h into windows.h. * [misc/lstr.c] Enhanced FormatMessage(). * [misc/main.c] [if1632/kernel.spec] [include/windows.h] GetVersion() updated to new naming standard. Changed language handling to support language ids. * [misc/shell.c] Enhanced FindExecutable, so it finds files in the search path too. * [win32/environment.c] GetCommandLine* updated. * [loader/resource.c] [loader/pe_resource.c] FindResourceEx32* added. Loading of messagetables added. Language handling now uses Wine default language id.
118 lines
2.4 KiB
C
118 lines
2.4 KiB
C
#include <stdlib.h>
|
|
#include "dde.h"
|
|
#include <wintypes.h>
|
|
#include "global.h"
|
|
#include <win.h>
|
|
#define DEBUG_DEFINE_VARIABLES
|
|
#define DEBUG_ALL
|
|
#include <stddebug.h>
|
|
#include <debug.h>
|
|
|
|
#define DDE_PROC2WIN(proc_idx) ( (HWND) ~( (proc_idx)+1) )
|
|
#define DDE_WIN2PROC(win) ( (int) ~(short) ((win)+1) )
|
|
#define DDE_IsRemoteWindow(win) ( (win)<0xffff && (win)>=(0xffff-DDE_PROCS))
|
|
|
|
|
|
char *MessageTypeNames[0x400]={NULL};
|
|
char *dummy_store_for_debug_msg_name;
|
|
|
|
ldt_copy_entry ldt_copy[LDT_SIZE];
|
|
|
|
int LDT_GetEntry( int entry, ldt_entry *content )
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int LDT_SetEntry( int entry, ldt_entry const *content )
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
void dummy_usage_of_debug_msg_name()
|
|
{
|
|
dummy_store_for_debug_msg_name=debug_msg_name[0];
|
|
}
|
|
|
|
/* stub */
|
|
HWND GetDesktopWindow()
|
|
{
|
|
printf("GetDesktopWindow\n");
|
|
return 0;
|
|
}
|
|
/* stub */
|
|
/* smart stub */
|
|
LONG SendMessage(HWND a,WORD b,WORD c,LONG d)
|
|
{
|
|
MSG msg;
|
|
printf("SendMessage(%04x,%04x,%04x,%04lx)\n",a,b,c,d);
|
|
if (DDE_IsRemoteWindow(a) || a==(HWND)-1)
|
|
return 0;
|
|
if (b!=WM_DDE_INITIATE)
|
|
return 0;
|
|
msg.hwnd=c;
|
|
msg.message= WM_DDE_ACK;
|
|
msg.lParam= 0;
|
|
msg.wParam= 0;
|
|
return DDE_SendMessage(&msg);
|
|
}
|
|
/* stub */
|
|
BOOL PostMessage(HWND a,WORD b,WORD c,LONG d)
|
|
{
|
|
printf("PostMessage(%04x,%04x,%04x,%04lx)\n",a,b,c,d);
|
|
return 0;
|
|
}
|
|
/* stub */
|
|
HWND GetTopWindow(HWND a)
|
|
{
|
|
printf("GetTopWindow(%04x)\n",a);
|
|
return 1;
|
|
}
|
|
/* stub */
|
|
WORD FreeSelector(WORD a)
|
|
{
|
|
printf("FreeSelector(%04x)\n",a);
|
|
return 0;
|
|
}
|
|
|
|
/* stub that partially emulates the true GLOBAL_CreateBlock function */
|
|
HGLOBAL16 GLOBAL_CreateBlock( WORD flags, void *ptr, DWORD size,
|
|
HGLOBAL16 hOwner, BOOL isCode,
|
|
BOOL is32Bit, BOOL isReadOnly,
|
|
SHMDATA *shmdata )
|
|
{
|
|
|
|
printf("GLOBAL_CreateBlock(flags=0x%x,ptr=0x%08lx, size=0x%x,hOwner=0x%x\n",
|
|
(int)flags, (long)ptr, (int)size, (int)hOwner);
|
|
printf("isCode=%d, is32Bit=%d, isReadOnly=%d, \n", isCode, is32Bit,
|
|
isReadOnly);
|
|
printf("*shmdata={handle=0x%x,sel=0x%x, shmid=%d})\n",
|
|
shmdata->handle, shmdata->sel, shmdata->shmid);
|
|
return 1;
|
|
}
|
|
|
|
/* stub */
|
|
WND *WIN_FindWndPtr(HWND hwnd)
|
|
{
|
|
static WND win;
|
|
printf("WIN_FindWndPtr(%d)\n",hwnd);
|
|
if (hwnd==0)
|
|
return NULL;
|
|
win.next=NULL;
|
|
win.dwStyle=WS_POPUP;
|
|
|
|
return &win;
|
|
}
|
|
|
|
/* stub */
|
|
WORD GetCurrentPDB(void)
|
|
{
|
|
printf("GetCurrentPDB()\n");
|
|
|
|
return 0;
|
|
}
|
|
|
|
/* stub */
|
|
void Yield(void)
|
|
{
|
|
}
|