
Thu Mar 2 17:44:32 1995 Alexandre Julliard (julliard@sunsite.unc.edu) * [loader/resource.c] [objects/oembitmap.c] Removed sysres bitmap code; you need libXpm to compile now. Implemented LoadIcon() for OEM icons. * [include/bitmaps/oic_*] Added OEM icons in XPM format. * [objects/dib.c] Bug fix in DrawIcon(). * [rc/sysresbm.rc] Removed; all bitmaps are stored in XPM format now. Tue Feb 28 18:54:28 1995 Tomi Leppikangas (tomilepp@paju.oulu.fi) * [controls/edit.c] Small patch to fix edit-control when it's created with text. Sun Feb 26 20:22:15 1995 Michael Veksler (e1678223@tochnapc2.technion.ac.il) * [tools/make_debug] The created macros won't have side effects anymore when used in an "if-else" structure. No more warnings from the compiler when compiled without defining DEBUG_RUNTIME. Sun Feb 26 20:20:49 1995 Michael Patra <micky@marie.physik.TU-Berlin.DE> * [controls/listbox.c] ListBoxDeleteString(): Fixed * [loader/selector.c] GetMemoryReference(): When special segments are referenced by pseudo-functions like __0040H, a reference to a "normal" segment will be returned preventing the program from crashing as soon as the referenced segment is actually accessed. Sun Feb 26 15:55:14 MET 1995 Martin von Loewis (loewis@informatik.hu-berlin.de) * [Configure] Ask for OLE stubs and malloc debugging * [Imakefile] link with libmcheck.a if necessary * [if1632/relay.c][include/dll.h][if1632/Imakefile] Add OLE stubs, increase number of builtins dll_name_table_entry_s: new field dll_is_used * [loader/library.c] GetModuleHandle,ModuleNext: Check dll_is_used * [loader/ne_image.c] Bark on unsupported NE_RADDR_LOWBYTE flag (what is it supposed to mean, anyway?) * [misc/olecli.c][misc/olesvr.c] New files. Add to misc/Imakefile * [misc/dos_fs.c] DOS_GetUnixFileName: make a copy of the input parameter to prevent overwriting * [misc/main.c] MAIN_ParseDLLOptions: new function MAIN_ParseOptions: treat -dll command line flag main: add support for malloc debugging Fri Feb 24 12:43:27 1995 Erik Svendsen <z3esv@kmd-ac.dk> * [loader/signal.c] Small patch for people using FreeBSD-2.1.0. Fri Feb 17 22:49:18 1995 Miguel de Icaza (miguel@roxanne.nuclecu.unam.mx) * [toolkit/sup.c] Added return values to the Call* routines * [toolkit/winmain.c] Load the resource file properly for WineLib applications.
113 lines
2.6 KiB
C
113 lines
2.6 KiB
C
#include <stdio.h>
|
|
#include "prototypes.h"
|
|
#include "windows.h"
|
|
#include "callback.h"
|
|
#include "wine.h"
|
|
#include "arch.h"
|
|
|
|
/* HANDLE hSysRes = 1; */
|
|
|
|
LONG CallWindowProc (WNDPROC func, HWND hwnd, WORD message,
|
|
WORD wParam, LONG lParam)
|
|
{
|
|
return (*func)(hwnd, message, wParam, lParam);
|
|
}
|
|
|
|
CallLineDDAProc (FARPROC back, int x, int y, long lParam)
|
|
{
|
|
return (*back)(x, y, lParam);
|
|
}
|
|
|
|
DWORD CallHookProc (HOOKPROC func, short code, WPARAM wParam, LPARAM lParam)
|
|
{
|
|
return (*func)(code, wParam, lParam);
|
|
}
|
|
|
|
BOOL CallGrayStringProc (FARPROC func, HDC hdc, LPARAM lParam, INT cch)
|
|
{
|
|
return (*func) (hdc, lParam, cch);
|
|
}
|
|
|
|
/*
|
|
* Header loading routines for WineLib.
|
|
*/
|
|
|
|
/* LOADSHORT Calls LOAD and swaps the high and the low bytes */
|
|
|
|
#define LOAD(x) read (fd, &TAB->x, sizeof (TAB->x))
|
|
#define LOADSHORT(x) LOAD(x); TAB->x = CONV_SHORT (TAB->x);
|
|
#define LOADLONG(x) LOAD(x); TAB->x = CONV_LONG (TAB->x);
|
|
|
|
void load_mz_header (int fd, struct mz_header_s *mz_header)
|
|
{
|
|
#define TAB mz_header
|
|
LOAD (dont_care1);
|
|
LOAD (must_be_0x40);
|
|
LOAD (dont_care2);
|
|
LOADSHORT (ne_offset);
|
|
}
|
|
|
|
void load_ne_header (int fd, struct ne_header_s *ne_header)
|
|
{
|
|
#undef TAB
|
|
#define TAB ne_header
|
|
LOAD (header_type);
|
|
LOADSHORT (linker_version);
|
|
LOADSHORT (linker_revision);
|
|
LOADSHORT (entry_tab_offset);
|
|
LOADSHORT (entry_tab_length);
|
|
LOAD (reserved1);
|
|
LOADSHORT (format_flags);
|
|
LOADSHORT (auto_data_seg);
|
|
LOADSHORT (local_heap_length);
|
|
LOADSHORT (stack_length);
|
|
LOADSHORT (ip);
|
|
LOADSHORT (cs);
|
|
LOADSHORT (sp);
|
|
LOADSHORT (ss);
|
|
LOADSHORT (n_segment_tab);
|
|
LOADSHORT (n_mod_ref_tab);
|
|
LOADSHORT (nrname_tab_length);
|
|
LOADSHORT (segment_tab_offset);
|
|
LOADSHORT (resource_tab_offset);
|
|
LOADSHORT (rname_tab_offset);
|
|
LOADSHORT (moduleref_tab_offset);
|
|
LOADSHORT (iname_tab_offset);
|
|
LOADLONG (nrname_tab_offset);
|
|
LOADSHORT (n_mov_entry_points);
|
|
LOADSHORT (align_shift_count);
|
|
LOADSHORT (n_resource_seg);
|
|
LOAD (operating_system);
|
|
LOAD (additional_flags);
|
|
LOADSHORT (fastload_offset);
|
|
LOADSHORT (fastload_length);
|
|
LOADSHORT (reserved2);
|
|
LOADSHORT (expect_version);
|
|
}
|
|
|
|
/*
|
|
* Typeinfo loading routines for non PC-architectures.
|
|
*/
|
|
|
|
int load_typeinfo (int fd, struct resource_typeinfo_s *typeinfo)
|
|
{
|
|
#undef TAB
|
|
#define TAB typeinfo
|
|
LOADSHORT (type_id);
|
|
LOADSHORT (count);
|
|
LOADLONG (reserved);
|
|
return 1;
|
|
}
|
|
|
|
int load_nameinfo (int fd, struct resource_nameinfo_s *nameinfo)
|
|
{
|
|
#undef TAB
|
|
#define TAB nameinfo
|
|
LOADSHORT (offset);
|
|
LOADSHORT (length);
|
|
LOADSHORT (flags);
|
|
LOADSHORT (id);
|
|
LOADSHORT (handle);
|
|
LOADSHORT (usage);
|
|
}
|