1998-03-15 21:29:56 +01:00
|
|
|
/*
|
1999-05-02 11:23:51 +02:00
|
|
|
* Enhanced metafile functions
|
|
|
|
* Copyright 1998 Douglas Ridgway
|
|
|
|
* 1999 Huw D M Davies
|
1999-12-04 04:56:53 +01:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* The enhanced format consists of the following elements:
|
|
|
|
*
|
|
|
|
* A header
|
|
|
|
* A table of handles to GDI objects
|
|
|
|
* An array of metafile records
|
1999-12-12 00:18:10 +01:00
|
|
|
* A private palette
|
1999-12-04 04:56:53 +01:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* The standard format consists of a header and an array of metafile records.
|
|
|
|
*
|
1999-05-02 11:23:51 +02:00
|
|
|
*/
|
1998-03-15 21:29:56 +01:00
|
|
|
|
|
|
|
#include <string.h>
|
1999-01-20 15:11:07 +01:00
|
|
|
#include <assert.h>
|
1998-03-15 21:29:56 +01:00
|
|
|
#include "winbase.h"
|
1999-03-18 18:39:57 +01:00
|
|
|
#include "wingdi.h"
|
1999-02-22 11:16:00 +01:00
|
|
|
#include "wine/winestring.h"
|
1998-11-07 13:56:31 +01:00
|
|
|
#include "winerror.h"
|
1999-05-02 11:23:51 +02:00
|
|
|
#include "enhmetafile.h"
|
1999-05-23 12:25:25 +02:00
|
|
|
#include "debugtools.h"
|
1999-05-02 11:23:51 +02:00
|
|
|
#include "heap.h"
|
1999-12-04 04:56:53 +01:00
|
|
|
#include "metafile.h"
|
1998-03-15 21:29:56 +01:00
|
|
|
|
1999-05-02 11:23:51 +02:00
|
|
|
DEFAULT_DEBUG_CHANNEL(enhmetafile)
|
|
|
|
|
1999-12-04 04:56:53 +01:00
|
|
|
/* Prototypes */
|
|
|
|
BOOL WINAPI EnumEnhMetaFile( HDC hdc, HENHMETAFILE hmf, ENHMFENUMPROC callback,
|
|
|
|
LPVOID data, const RECT *rect );
|
|
|
|
|
|
|
|
|
1999-05-02 11:23:51 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* EMF_Create_HENHMETAFILE
|
|
|
|
*/
|
|
|
|
HENHMETAFILE EMF_Create_HENHMETAFILE(ENHMETAHEADER *emh, HFILE hFile, HANDLE
|
|
|
|
hMapping )
|
|
|
|
{
|
|
|
|
HENHMETAFILE hmf = GDI_AllocObject( sizeof(ENHMETAFILEOBJ),
|
|
|
|
ENHMETAFILE_MAGIC );
|
|
|
|
ENHMETAFILEOBJ *metaObj = (ENHMETAFILEOBJ *)GDI_HEAP_LOCK( hmf );
|
|
|
|
metaObj->emh = emh;
|
|
|
|
metaObj->hFile = hFile;
|
|
|
|
metaObj->hMapping = hMapping;
|
|
|
|
GDI_HEAP_UNLOCK( hmf );
|
|
|
|
return hmf;
|
|
|
|
}
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* EMF_Delete_HENHMETAFILE
|
|
|
|
*/
|
|
|
|
static BOOL EMF_Delete_HENHMETAFILE( HENHMETAFILE hmf )
|
|
|
|
{
|
|
|
|
ENHMETAFILEOBJ *metaObj = (ENHMETAFILEOBJ *)GDI_GetObjPtr( hmf,
|
|
|
|
ENHMETAFILE_MAGIC );
|
|
|
|
if(!metaObj) return FALSE;
|
|
|
|
if(metaObj->hMapping) {
|
|
|
|
UnmapViewOfFile( metaObj->emh );
|
|
|
|
CloseHandle( metaObj->hMapping );
|
|
|
|
CloseHandle( metaObj->hFile );
|
|
|
|
} else
|
|
|
|
HeapFree( SystemHeap, 0, metaObj->emh );
|
|
|
|
return GDI_FreeObject( hmf );
|
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************
|
|
|
|
* EMF_GetEnhMetaHeader
|
|
|
|
*
|
|
|
|
* Returns ptr to ENHMETAHEADER associated with HENHMETAFILE
|
|
|
|
* Should be followed by call to EMF_ReleaseEnhMetaHeader
|
|
|
|
*/
|
|
|
|
static ENHMETAHEADER *EMF_GetEnhMetaHeader( HENHMETAFILE hmf )
|
|
|
|
{
|
|
|
|
ENHMETAFILEOBJ *metaObj = (ENHMETAFILEOBJ *)GDI_GetObjPtr( hmf,
|
|
|
|
ENHMETAFILE_MAGIC );
|
1999-05-23 12:25:25 +02:00
|
|
|
TRACE("hmf %04x -> enhmetaObj %p\n", hmf, metaObj);
|
1999-06-12 08:49:52 +02:00
|
|
|
return metaObj ? metaObj->emh : NULL;
|
1999-05-02 11:23:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************
|
|
|
|
* EMF_ReleaseEnhMetaHeader
|
|
|
|
*
|
|
|
|
* Releases ENHMETAHEADER associated with HENHMETAFILE
|
|
|
|
*/
|
|
|
|
static BOOL EMF_ReleaseEnhMetaHeader( HENHMETAFILE hmf )
|
|
|
|
{
|
|
|
|
return GDI_HEAP_UNLOCK( hmf );
|
|
|
|
}
|
1999-04-19 16:56:29 +02:00
|
|
|
|
1998-03-15 21:29:56 +01:00
|
|
|
/*****************************************************************************
|
1999-05-02 11:23:51 +02:00
|
|
|
* EMF_GetEnhMetaFile
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
static HENHMETAFILE EMF_GetEnhMetaFile( HFILE hFile )
|
|
|
|
{
|
|
|
|
ENHMETAHEADER *emh;
|
|
|
|
HANDLE hMapping;
|
|
|
|
|
|
|
|
hMapping = CreateFileMappingA( hFile, NULL, PAGE_READONLY, 0, 0, NULL );
|
|
|
|
emh = MapViewOfFile( hMapping, FILE_MAP_READ, 0, 0, 0 );
|
|
|
|
|
|
|
|
if (emh->iType != EMR_HEADER || emh->dSignature != ENHMETA_SIGNATURE) {
|
1999-05-23 12:25:25 +02:00
|
|
|
WARN("Invalid emf header type 0x%08lx sig 0x%08lx.\n",
|
1999-05-02 11:23:51 +02:00
|
|
|
emh->iType, emh->dSignature);
|
|
|
|
UnmapViewOfFile( emh );
|
|
|
|
CloseHandle( hMapping );
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
return EMF_Create_HENHMETAFILE( emh, hFile, hMapping );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* GetEnhMetaFileA (GDI32.174)
|
1998-03-15 21:29:56 +01:00
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
HENHMETAFILE WINAPI GetEnhMetaFileA(
|
1998-03-15 21:29:56 +01:00
|
|
|
LPCSTR lpszMetaFile /* filename of enhanced metafile */
|
|
|
|
)
|
|
|
|
{
|
1999-05-02 11:23:51 +02:00
|
|
|
HENHMETAFILE hmf;
|
|
|
|
HFILE hFile;
|
|
|
|
|
1999-06-12 08:49:52 +02:00
|
|
|
hFile = CreateFileA(lpszMetaFile, GENERIC_READ, FILE_SHARE_READ, 0,
|
|
|
|
OPEN_EXISTING, 0, 0);
|
1999-05-02 11:23:51 +02:00
|
|
|
if (hFile == INVALID_HANDLE_VALUE) {
|
1999-05-23 12:25:25 +02:00
|
|
|
WARN("could not open %s\n", lpszMetaFile);
|
1999-05-02 11:23:51 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
hmf = EMF_GetEnhMetaFile( hFile );
|
|
|
|
if(!hmf)
|
|
|
|
CloseHandle( hFile );
|
|
|
|
return hmf;
|
1998-03-15 21:29:56 +01:00
|
|
|
}
|
|
|
|
|
1998-12-10 16:49:22 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* GetEnhMetaFile32W (GDI32.180)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
HENHMETAFILE WINAPI GetEnhMetaFileW(
|
1998-12-10 16:49:22 +01:00
|
|
|
LPCWSTR lpszMetaFile) /* filename of enhanced metafile */
|
|
|
|
{
|
1999-05-02 11:23:51 +02:00
|
|
|
HENHMETAFILE hmf;
|
|
|
|
HFILE hFile;
|
|
|
|
|
1999-06-12 08:49:52 +02:00
|
|
|
hFile = CreateFileW(lpszMetaFile, GENERIC_READ, FILE_SHARE_READ, 0,
|
|
|
|
OPEN_EXISTING, 0, 0);
|
1999-05-02 11:23:51 +02:00
|
|
|
if (hFile == INVALID_HANDLE_VALUE) {
|
1999-05-23 12:25:25 +02:00
|
|
|
WARN("could not open %s\n", debugstr_w(lpszMetaFile));
|
1999-05-02 11:23:51 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
hmf = EMF_GetEnhMetaFile( hFile );
|
|
|
|
if(!hmf)
|
|
|
|
CloseHandle( hFile );
|
|
|
|
return hmf;
|
1998-12-10 16:49:22 +01:00
|
|
|
}
|
|
|
|
|
1998-03-15 21:29:56 +01:00
|
|
|
/*****************************************************************************
|
1998-04-13 14:21:30 +02:00
|
|
|
* GetEnhMetaFileHeader (GDI32.178)
|
1998-03-15 21:29:56 +01:00
|
|
|
*
|
|
|
|
* If _buf_ is NULL, returns the size of buffer required.
|
|
|
|
* Otherwise, copy up to _bufsize_ bytes of enhanced metafile header into
|
|
|
|
* _buf.
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
UINT WINAPI GetEnhMetaFileHeader(
|
|
|
|
HENHMETAFILE hmf, /* enhanced metafile */
|
|
|
|
UINT bufsize, /* size of buffer */
|
1998-03-15 21:29:56 +01:00
|
|
|
LPENHMETAHEADER buf /* buffer */
|
|
|
|
)
|
|
|
|
{
|
1999-05-02 11:23:51 +02:00
|
|
|
LPENHMETAHEADER emh;
|
|
|
|
|
|
|
|
if (!buf) return sizeof(ENHMETAHEADER);
|
|
|
|
emh = EMF_GetEnhMetaHeader(hmf);
|
1999-06-12 08:49:52 +02:00
|
|
|
if(!emh) return FALSE;
|
1999-05-02 11:23:51 +02:00
|
|
|
memmove(buf, emh, MIN(sizeof(ENHMETAHEADER), bufsize));
|
|
|
|
EMF_ReleaseEnhMetaHeader(hmf);
|
|
|
|
return MIN(sizeof(ENHMETAHEADER), bufsize);
|
1998-03-15 21:29:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
* GetEnhMetaFileDescription32A (GDI32.176)
|
1998-04-13 14:21:30 +02:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
UINT WINAPI GetEnhMetaFileDescriptionA(
|
|
|
|
HENHMETAFILE hmf, /* enhanced metafile */
|
|
|
|
UINT size, /* size of buf */
|
1998-04-13 14:21:30 +02:00
|
|
|
LPSTR buf /* buffer to receive description */
|
|
|
|
)
|
|
|
|
{
|
1999-05-02 11:23:51 +02:00
|
|
|
LPENHMETAHEADER emh = EMF_GetEnhMetaHeader(hmf);
|
|
|
|
INT first;
|
|
|
|
|
1999-06-12 08:49:52 +02:00
|
|
|
if(!emh) return FALSE;
|
1999-05-02 11:23:51 +02:00
|
|
|
if(emh->nDescription == 0 || emh->offDescription == 0) {
|
|
|
|
EMF_ReleaseEnhMetaHeader(hmf);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
if (!buf || !size ) {
|
|
|
|
EMF_ReleaseEnhMetaHeader(hmf);
|
|
|
|
return emh->nDescription;
|
|
|
|
}
|
|
|
|
|
1999-05-08 14:50:36 +02:00
|
|
|
first = lstrlenW( (WCHAR *) ((char *) emh + emh->offDescription));
|
1999-05-02 11:23:51 +02:00
|
|
|
|
1999-05-08 14:50:36 +02:00
|
|
|
lstrcpynWtoA(buf, (WCHAR *) ((char *) emh + emh->offDescription), size);
|
1999-05-02 11:23:51 +02:00
|
|
|
buf += first + 1;
|
1999-05-08 14:50:36 +02:00
|
|
|
lstrcpynWtoA(buf, (WCHAR *) ((char *) emh + emh->offDescription+2*(first+1)),
|
1999-05-02 11:23:51 +02:00
|
|
|
size - first - 1);
|
|
|
|
|
|
|
|
EMF_ReleaseEnhMetaHeader(hmf);
|
|
|
|
return MIN(size, emh->nDescription);
|
1998-04-13 14:21:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************************************
|
Release 980712
Sun Jul 12 16:23:36 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [server/*] [scheduler/client.c] (new files)
[scheduler/sysdeps.c] [scheduler/thread.c] [scheduler/process.c]
Beginnings of client/server communication for inter-process
synchronisation.
Sat Jul 11 19:45:45 1998 Ulrich Weigand <weigand@informatik.uni-erlangen.de>
* [include/bitmap.h] [objects/bitmap.c] [objects/dib.c]
[objects/oembitmap.c]
Speed up DIB section handling by using pre-allocated colormap and
XImage. Moved DIB section data out of general BITMAPOBJ structure.
Bugfix: GetDIBits32 would overwrite one byte beyond bitmap data.
* [if1632/shell.spec] [if1632/kernel.spec] [win32/kernel32.c]
More verbose error message if ThunkConnect fails.
Implemented KERNEL_475.
* [files/profile.c] [ole/ole2nls.c]
Minor bugfixes.
* [if1632/builtin.c] [if1632/kernel.spec] [include/task.h]
[loader/ne/module.c] [loader/task.c]
Implemented KERNEL.THHOOK.
* [if1632/wprocs.spec] [include/process.h] [msdos/dpmi.c] [msdos/vxd.c]
Implemented Win32s VxD services (W32S.386).
Sat Jul 11 17:52:23 1998 Huw D M Davies <daviesh@abacus.physics.ox.ac.uk>
* [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
[include/x11font.h]
Improve handling of rotated X11 fonts. Metrics/extents should now be
correct. ExtTextOut should behave better (still doesn't handle lpDx).
* [graphics/painting.c]
DrawFocusRect32: Don't do anything if width or height are zero.
Sat Jul 11 15:21:35 1998 Andreas Mohr <100.30936@germany.net>
* [files/profile.c] [include/windows.h]
The length arguments of *Profile*() need to be treated
as UINTxx instead of INTxx.
* [graphics/env.c] [graphics/win16drv/init.c] [include/print.h]
[misc/printdrv.c]
Many printer driver fixes/changes (many thanks go to Huw !).
Most printers should work again ;)
* [memory/atom.c]
Fixed ATOM_AddAtom to store atoms exactly like Windows.
* [*/*]
Fixed misc compiler warnings.
Fri Jul 10 15:58:36 1998 Marcus Meissner <marcus@jet.franken.de>
* [files/drive.c]
Fixed GetDriveType16 to return DRIVE_REMOTE again.
* [loader/pe_image.c][loader/module.c]
Look for modules that have the same modulename or the same
filename (they sometimes differ).
Fixed up fixup_imports, removed one of the loops.
* [windows/winpos.c]
Added some NULL ptr checks. Needs more.
* [graphics/ddraw.c]
Some stubs added.
* [if1632/snoop.c]
Updated, made WINELIB compatible.
Fri Jul 10 04:39:56 1998 Douglas Ridgway <ridgway@winehq.com>
* [objects/enhmetafile.c] [relay32/gdi32.spec]
Small tweaks for documentation system.
Thu Jul 9 22:00:18 1998 Eric Kohl <ekohl@abo.rhein-zeitung.de>
* [controls/commctrl.c][include/commctrl.h][relay32/comctl32.spec]
Fixed GetEffectiveClientRect, CreateToolbarEx and CreateMappedBitmap.
Added stub for ShowHideMenuCtl. Added some documentation.
* [documentation/common_controls]
Added and updated some information.
* [controls/toolbar.c][include/toolbar.h]
Added string support.
* [misc/shell.c][misc/shellord.c][relay32/shell.spec]
Changed names of undocumented functions to their real names and
fixed the export table.
* [controls/imagelist.c][relay32/comctl32.spec]
Added stub for ImageList_SetFilter.
Fixed some minor bugs and typos.
* [objects/font.c][include/windows.h][relay32/gdi32.spec]
Added stubs for GetCharacterPlacement32[A/W].
* [objects/region.c][relay32/gdi32.spec]
Added stub for UNDOCUMENTED GetRandomRgn.
* [controls/commctrl.c][controls/*.c][include/*.h]
Added dummy listview, pager, rebar, tooltips, trackbar and
treeview control. This keeps some programs from complaining.
Thu Jul 9 11:23:58 1998 Rein Klazes <rklazes@casema.net>
* [graphics/painting.c] [graphics/*/init.c]
[graphics/x11drv/graphics.c] [relay32/gdi32.spec]
[if1632/gdi.spec] [include/gdi.h] [include/x11drv.h]
Implemented drawing bezier curves: PolyBezier16/32 and
PolyBezierTo16/32.
* [graphics/x11drv/graphics.c]
Improved accuracy of several graphic routines, especially the
drawing of pie's.
* [include/windows.h] [misc/spy.c]
Added 25 window messages related to programs based on MFC and/or OLE.
Wed Jul 8 22:00:00 1998 James Juran <jrj120@psu.edu>
* [documentation/wine.man]
Updated manpage.
* [wine.ini]
Added section for Win95Look=true (commented out by default).
Wed Jul 8 06:23:19 1998 Matthew Becker <mbecker@glasscity.net>
* [misc/registry.c]
Fixed a crash in RegEnumValue32A when the dwType parameter is
NULL.
* [programs/regtest/regtest.c]
Improved the printing of errors.
* [misc/ntdll.c]
Added stub for RtlFormatCurrentUserKeyPath.
* [win32/console.c]
Added stub for ScrollConsoleScreenBuffer.
Mon Jul 6 16:41:47 1998 Per Lindstrm <pelinstr@algonet.se>
* [include/windows.h] [relay32/kernel.spec] [win32/newfns.c]
Added stubs for SleepEx and TerminateProcess.
* [rc/README]
Corrected a grammatical error.
Mon Jul 3 12:00:00 1998 Juergen Schmied <juergen.schmied@metronet.de>
* [misc/shellord.c]
Put some TRACE in.
* [memory/string.c]
Deleted unused variable in lstrcmpi32A.
* [include/windows.h][memory/string.c]
Added functions WideCharToLocal32 LocalToWideChar32 for
OLE-strings
* [include/shlobj.h][include/winerror.h][misc/shell.c]
[ole/folders.c]
Added definition of internal class pidlmgr.
Changed definitions of EnumIDList, IShellFolder.
Added some OLE error constants.
Implemented EnumIDList, IShellFolder, IClassFactory,
PidlMgr, SHELL32_DllGetClassObject, SHGetDesktopFolder,
SHGetSpecialFolderLocation (half), SHGetPathFromIDList
(!!This stuff is not finished yet!!)
* [include/windows.h][misc/network][reley32/mpr.spec]
Added stubs for WNetConnectionDialog32[A|W|API].
Added struct LPCONNECTDLGSTRUCT32[A|W] and some constants.
Added some SetLastError(WN_NO_NETWORK) to the stubs.
Fixed bufferhandling in WNetCancelConnection
Added stub for MultinetGetErrorText[A|W]
* [ole/ole2nls.c]
Rewrote GetTimeFormat32A.
Fri Jul 3 10:27:30 1998 Michael Poole <poole+@andrew.cmu.edu>
* [graphics/ddraw.c] [tsx11/X11_calls]
Implement IDirectDrawPalette_GetEntries.
Use CopyColormapAndFree to avoid erasing previously-set
palette entries.
* [graphics/ddraw.c] [include/ddraw.h]
[tools/make_X11wrappers] [tsx11/X11_calls]
Provide a preliminary, not-yet-working framework for doing
DirectDraw via Xlib or XShm as well as DGA.
Tue Jun 30 00:16:09 1998 Marcel Baur <mbaur@g26.ethz.ch>
* [ole/nls/*.nls]
Added remaining 22 locales (including arabic locales).
1998-07-12 21:29:36 +02:00
|
|
|
* GetEnhMetaFileDescription32W (GDI32.177)
|
1998-03-15 21:29:56 +01:00
|
|
|
*
|
|
|
|
* Copies the description string of an enhanced metafile into a buffer
|
|
|
|
* _buf_.
|
|
|
|
*
|
1998-04-13 14:21:30 +02:00
|
|
|
* If _buf_ is NULL, returns size of _buf_ required. Otherwise, returns
|
|
|
|
* number of characters copied.
|
1998-03-15 21:29:56 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
UINT WINAPI GetEnhMetaFileDescriptionW(
|
|
|
|
HENHMETAFILE hmf, /* enhanced metafile */
|
|
|
|
UINT size, /* size of buf */
|
1998-04-13 14:21:30 +02:00
|
|
|
LPWSTR buf /* buffer to receive description */
|
1998-03-15 21:29:56 +01:00
|
|
|
)
|
|
|
|
{
|
1999-05-02 11:23:51 +02:00
|
|
|
LPENHMETAHEADER emh = EMF_GetEnhMetaHeader(hmf);
|
1999-06-12 08:49:52 +02:00
|
|
|
|
|
|
|
if(!emh) return FALSE;
|
1999-05-02 11:23:51 +02:00
|
|
|
if(emh->nDescription == 0 || emh->offDescription == 0) {
|
|
|
|
EMF_ReleaseEnhMetaHeader(hmf);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
if (!buf || !size ) {
|
|
|
|
EMF_ReleaseEnhMetaHeader(hmf);
|
|
|
|
return emh->nDescription;
|
|
|
|
}
|
|
|
|
|
1999-05-08 14:50:36 +02:00
|
|
|
memmove(buf, (char *) emh + emh->offDescription,
|
1999-05-02 11:23:51 +02:00
|
|
|
MIN(size,emh->nDescription));
|
|
|
|
EMF_ReleaseEnhMetaHeader(hmf);
|
|
|
|
return MIN(size, emh->nDescription);
|
1998-03-15 21:29:56 +01:00
|
|
|
}
|
|
|
|
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
/****************************************************************************
|
|
|
|
* SetEnhMetaFileBits (GDI32.315)
|
|
|
|
*
|
|
|
|
* Creates an enhanced metafile by copying _bufsize_ bytes from _buf_.
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
HENHMETAFILE WINAPI SetEnhMetaFileBits(UINT bufsize, const BYTE *buf)
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
{
|
1999-05-02 11:23:51 +02:00
|
|
|
ENHMETAHEADER *emh = HeapAlloc( SystemHeap, 0, bufsize );
|
|
|
|
memmove(emh, buf, bufsize);
|
|
|
|
return EMF_Create_HENHMETAFILE( emh, 0, 0 );
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
}
|
|
|
|
|
1999-12-04 04:56:53 +01:00
|
|
|
INT CALLBACK cbCountSizeOfEnhMetaFile( HDC a,
|
|
|
|
LPHANDLETABLE b,
|
|
|
|
LPENHMETARECORD lpEMR,
|
|
|
|
INT c,
|
|
|
|
LPVOID lpData )
|
|
|
|
{
|
|
|
|
LPUINT uSizeOfRecordData = (LPUINT)lpData;
|
|
|
|
|
|
|
|
uSizeOfRecordData += lpEMR->nSize;
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* GetEnhMetaFileBits (GDI32.175)
|
|
|
|
*
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
UINT WINAPI GetEnhMetaFileBits(
|
|
|
|
HENHMETAFILE hmf,
|
|
|
|
UINT bufsize,
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
LPBYTE buf
|
1999-12-04 04:56:53 +01:00
|
|
|
)
|
|
|
|
{
|
|
|
|
LPENHMETAHEADER lpEnhMetaFile;
|
|
|
|
UINT uEnhMetaFileSize = 0;
|
|
|
|
|
|
|
|
FIXME( "(%04x,%u,%p): untested\n", hmf, bufsize, buf );
|
|
|
|
|
|
|
|
/* Determine the required buffer size */
|
|
|
|
/* Enumerate all records and count their size */
|
|
|
|
if( !EnumEnhMetaFile( 0, hmf, cbCountSizeOfEnhMetaFile, &uEnhMetaFileSize, NULL ) )
|
|
|
|
{
|
|
|
|
ERR( "Unable to enumerate enhanced metafile!\n" );
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if( buf == NULL )
|
|
|
|
{
|
|
|
|
return uEnhMetaFileSize;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Copy the lesser of the two byte counts */
|
|
|
|
uEnhMetaFileSize = MIN( uEnhMetaFileSize, bufsize );
|
|
|
|
|
|
|
|
/* Copy everything */
|
|
|
|
lpEnhMetaFile = EMF_GetEnhMetaHeader( hmf );
|
|
|
|
|
|
|
|
if( lpEnhMetaFile == NULL )
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Use memmove just in case they overlap */
|
|
|
|
memmove(buf, lpEnhMetaFile, bufsize);
|
|
|
|
|
|
|
|
EMF_ReleaseEnhMetaHeader( hmf );
|
|
|
|
|
|
|
|
return bufsize;
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
}
|
|
|
|
|
1998-03-15 21:29:56 +01:00
|
|
|
/*****************************************************************************
|
1998-04-13 14:21:30 +02:00
|
|
|
* PlayEnhMetaFileRecord (GDI32.264)
|
1998-03-15 21:29:56 +01:00
|
|
|
*
|
|
|
|
* Render a single enhanced metafile record in the device context hdc.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* TRUE on success, FALSE on error.
|
|
|
|
* BUGS
|
1998-03-29 21:44:57 +02:00
|
|
|
* Many unimplemented records.
|
1998-03-15 21:29:56 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI PlayEnhMetaFileRecord(
|
|
|
|
HDC hdc, /* device context in which to render EMF record */
|
|
|
|
LPHANDLETABLE handletable, /* array of handles to be used in rendering record */
|
1998-03-29 21:44:57 +02:00
|
|
|
const ENHMETARECORD *mr, /* EMF record to render */
|
1999-02-26 12:11:13 +01:00
|
|
|
UINT handles /* size of handle array */
|
1998-03-15 21:29:56 +01:00
|
|
|
)
|
|
|
|
{
|
|
|
|
int type;
|
1999-05-23 12:25:25 +02:00
|
|
|
TRACE(
|
1998-03-29 21:44:57 +02:00
|
|
|
"hdc = %08x, handletable = %p, record = %p, numHandles = %d\n",
|
|
|
|
hdc, handletable, mr, handles);
|
|
|
|
if (!mr) return FALSE;
|
1998-03-15 21:29:56 +01:00
|
|
|
|
1998-03-29 21:44:57 +02:00
|
|
|
type = mr->iType;
|
1998-03-15 21:29:56 +01:00
|
|
|
|
1999-05-23 12:25:25 +02:00
|
|
|
TRACE(" type=%d\n", type);
|
1998-03-15 21:29:56 +01:00
|
|
|
switch(type)
|
|
|
|
{
|
|
|
|
case EMR_HEADER:
|
1998-03-29 21:44:57 +02:00
|
|
|
{
|
Release 980517
Sun May 17 16:23:56 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [file/profile.c]
Fix the return value of PROFILE_GetSection
* [misc/crtdll.c]
Do _getdrive, fix _chdrive.
* [misc/commdlg.c]
First cut at ChooseColor[WA].
* [misc/network.c]
Do something sensible for WNetGetDirectoryType16.
Sun May 17 10:21:35 1998 Andreas Mohr <100.30936@germany.net>
* [controls/menu.c]
Fixed disabled sub menus with MF_BYPOSITION that were not disabled.
* [misc/crtdll.c] [relay32/crtdll.spec] [include/winerror.h]
Implemented fscanf, fsetpos, _access, _fpreset (thanks to Uwe Bonnes),
and _ltoa.
* [loader/task.c]
MakeProcInstance: must use CURRENT_DS if hInst == NULL.
* [misc/shell.c]
SHELL_GetResourceTable, InternalExtractIcon: fixed broken .ICO handling
* [windows/winpos.c]
DeferWindowPos: removed "same parent" requirement.
Which doc states that this is required ?
Sat May 16 20:08:11 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [loader/module.c] [loader/ne/module.c]
More NE module cleanups.
* [loader/task.c]
Fixed SwitchStackBack().
Fri May 15 10:04:27 1998 Marcus Meissner <marcus@jet.franken.de>
* [configure.in][inlcude/acconfig.h]
Fixed broken OSS check, added check for working sigaltstack,
fixed broken statfs checks on some linux systems.
* [files/directory.c][loader/pe_image.c][relay32/builtin.c]
[loader/module.c]
Added handling of win32 module pathnames.
* [relay32/wnaspi32.spec]
New file.
* [misc/lzexpand.c]
LZCopy auto-decompresses LZ compressed files, even if they are not
specially flagged. Fixes some InstallShield problems.
* [misc/registry.c]
Some fixes for RegQueryInfoKey (reference program monkey.exe
from Win32 SDK works now better). Probably still has faults.
Fri May 15 08:58:58 1998 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [graphics/mapping.c] [include/dc.h] [include/gdi.h] [objects/dc.c]
Reworked the way world transformations and mapping modes are handled
so that both of these transformations can be computed in a single
step.
* [graphics/painting.c] [graphics/path.c] [include/path.h]
More GDI path support.
* [graphics/x11drv/graphics.c]
Fixed the return value of GRAPH_DrawArc for the zero height /
zero width case to reflect Windows' behaviour.
* [include/windows.h] [relay32/gdi32.spec] [objects/dc.c]
Implemented ModifyWorldTransform and CombineTransform.
Tue May 14 18:03:46 1998 Eric Kohl <ekohl@abo.rhein-zeitung.de>
* [controls/commctrl.c][relay32/comctl32.spec]
[controls/*.c][include/*.h]
Implemented InitCommonControlsEx (dll version 4.72 compatible).
InitCommonControls calls ImageCommonControlsEx.
Registering code of the common controls had to be changed
(see XXXX_Register functions).
* [controls/status.c][include/commctrl.h][include/status.h]
Implemented most new features and fixed the look and feel.
* [contols/commctrl.c][include/commctrl.h][relay32/comctl32.spec]
Implemented MenuHelp (incomplete).
* [controls/status.c][controls/progress.c]
Changed allocation strategy for control specific memory.
* [controls/header.c][include/header.h][include/commctrl.h]
First implementation of header control.
* [windows/defwnd.c][windows/syscolors.c]
Fixed default control colors for Win95 look.
* [windows/nonclient.c]
Fixed off by one error for Win95 look. Top border of child windows
should be visible.
* [misc/imagelist.h]
Improved documentation and fixed some bugs.
Thu May 14 15:42:21 1998 Robert Wilhelm <robert@physiol.med.tu-muenchen.de>
* [relay32/crtdll.spec]
Added hypot,j0,j1,jn and ceil.
Wed May 13 19:10:10 1998 Pascal Cuoq <pcuoq@ens-lyon.fr>
* [controls/listbox.c]
Item height is now exactly font height.
Wine listboxes now behave like Windows' when they are
created without WS_VSCROLL but the program subsequently
calls ShowScrollBar or SetScrollInfo.
Wed May 13 18:33:01 1998 Ulrich Weigand <weigand@informatik.uni-erlangen.de>
* [relay32/relay386.c]
Restore ES also in the non-debug case.
* [windows/event.c]
Bugfix: Blocking TSXNextEvent could deadlock Wine.
* [win32/process.c] [windows/message.c]
Silly stubs for MsgWaitForMultipleObjects / PostThreadMessage
that make some programs run better.
* [windows/winproc.c]
WINPROC_MapMsg32Ato16/16To32A: added WM_NOTIFY.
* [win32/kernel32.c]
Added 16->32 thunking and improved 32->16 thunking functions.
* [tools/build.c]
Added new variant of CallFrom16 stub for use with Win95 thunks.
* [if1632/kernel.spec] [if1632/builtin.c] [win32/kernel32.c]
Added a few undocumented KERNEL functions.
* [loader/ne/module.c] [loader/ne/segment.c]
Call DllEntryPoint for 16-bit DLLs with subsystem >= 4.0.
* [win32/kernel32.spec] [win32/wow32.spec] [win32/ordinals.c]
Use names from the Oct 94 beta release for undoc. functions.
Wed May 13 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [misc/registry.c]
Code cleanup.
* [misc/cpu.c]
Commented out the registry puts temporarily.
* [programs/regtest/*]
New registry testing program.
Tue May 12 22:54:03 1998 Michael Mess <michael@kawo2.rwth-aachen.de>
* [multimedia/audio.c]
ioctl's do not commute in /dev/dsp initialization.
Tue May 12 20:11:42 1998 Karl Garrison <karlos@eznet.net>
* [win32/console.c]
Implemented SetConsoleTextAttribute, FillConsoleOutputCharacter.
Improved cursor positioning.
This allows for text colors in an xterm, rxvt, or console.
Tue May 12 17:57:52 1998 Petter Reinholdtsen <pere@td.org.uit.no>
* [Makefile.in]
Create prefix/{bin|lib} directories if missing during install.
Sun May 10 19:37:51 1998 Jan Willamowius <jan@janhh.shnet.org>
* [multimedia/mmio.c]
Have mmioSetBuffer return success (0), so Corel Draw 4
keeps working. (IO is still unbuffered)
Wed May 6 16:57:55 1998 James Juran <jrj120@psu.edu>
* [Makefile.in] [Make.rules.in]
Changed "make clean" to remove `textedit` backup files (*%)
* [controls/menu.c][graphics/x11drv/xfont.c][include/libres.h]
[loader/main.c][loader/ne/module.c][scheduler/synchro.c]
[win32/time.c][windows/winpos.c][include/windows.h]
Fixed miscellaneous compilation warnings.
* [misc/main.c][miscemu/main.c][include/main.h]
Moved prototypes to new include file main.h, various cleanups.
Tue May 5 21:05:06 1998 Morten Welinder <terra@diku.dk>
* [misc/winsock.c]
Don't refer to __FreeBSD__ when HAVE_STRERROR is meant.
* [misc/debugstr.c]
For debug_dumpstrSend, send strings to stderr.
Tue May 5 21:47:40 1998 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [objects/region.c]
Fix for REGION_RegionOp() if newReg is one of the source regions.
Tue May 5 18:27:32 1998 Jim Peterson <jspeter@roanoke.infi.net>
* [misc/main.c]
Add '-h/-help' option and print WINE_RELEASE_INFO with usage message.
* [misc/spy.c]
Realign trace messages.
Tue May 5 15:46:47 1998 Donnie V. Savage <dsavage@cisco.com>
* [graphics/ddraw.c]
Fixed compile warnings
* [misc/winsock.c]
Warnings should not be errors.
Tue May 5 13:40:42 1998 Jim Peterson <jspeter@roanoke.infi.net>
* [*/*]
Remove many warnings through explicit casts, added #include's,
and corrected printf formats.
Tue May 5 05:18:12 1998 Insomnia (Stea Greene) <insomnia@core.binghamton.edu>
* [graphics/ddraw.c]
Kept unchanged portion of old palette when changing only a few
palette entries. Really should only deallocate the changed cells.
This make StarCraft work almost perfectly (sound overflows still
cause static).
Mon May 4 15:04:57 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage: terminate string on %0, undo linefeed strip.
1998-05-17 19:13:43 +02:00
|
|
|
/* ENHMETAHEADER *h = (LPENHMETAHEADER) mr; */
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
1998-03-15 21:29:56 +01:00
|
|
|
case EMR_EOF:
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
case EMR_GDICOMMENT:
|
1999-12-12 00:18:10 +01:00
|
|
|
{
|
|
|
|
PEMRGDICOMMENT lpGdiComment = (PEMRGDICOMMENT)mr;
|
|
|
|
/* In an enhanced metafile, there can be both public and private GDI comments */
|
|
|
|
GdiComment( hdc, lpGdiComment->cbData, lpGdiComment->Data );
|
|
|
|
break;
|
|
|
|
}
|
1998-03-29 21:44:57 +02:00
|
|
|
case EMR_SETMAPMODE:
|
|
|
|
{
|
|
|
|
DWORD mode = mr->dParm[0];
|
1999-02-26 12:11:13 +01:00
|
|
|
SetMapMode(hdc, mode);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_SETBKMODE:
|
|
|
|
{
|
|
|
|
DWORD mode = mr->dParm[0];
|
1999-02-26 12:11:13 +01:00
|
|
|
SetBkMode(hdc, mode);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_SETBKCOLOR:
|
|
|
|
{
|
|
|
|
DWORD mode = mr->dParm[0];
|
1999-02-26 12:11:13 +01:00
|
|
|
SetBkColor(hdc, mode);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_SETPOLYFILLMODE:
|
|
|
|
{
|
|
|
|
DWORD mode = mr->dParm[0];
|
1999-02-26 12:11:13 +01:00
|
|
|
SetPolyFillMode(hdc, mode);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_SETROP2:
|
|
|
|
{
|
|
|
|
DWORD mode = mr->dParm[0];
|
1999-02-26 12:11:13 +01:00
|
|
|
SetROP2(hdc, mode);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_SETSTRETCHBLTMODE:
|
|
|
|
{
|
|
|
|
DWORD mode = mr->dParm[0];
|
1999-02-26 12:11:13 +01:00
|
|
|
SetStretchBltMode(hdc, mode);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_SETTEXTALIGN:
|
|
|
|
{
|
|
|
|
DWORD align = mr->dParm[0];
|
1999-02-26 12:11:13 +01:00
|
|
|
SetTextAlign(hdc, align);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_SETTEXTCOLOR:
|
|
|
|
{
|
|
|
|
DWORD color = mr->dParm[0];
|
1999-02-26 12:11:13 +01:00
|
|
|
SetTextColor(hdc, color);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_SAVEDC:
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
SaveDC(hdc);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_RESTOREDC:
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
RestoreDC(hdc, mr->dParm[0]);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_INTERSECTCLIPRECT:
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
INT left = mr->dParm[0], top = mr->dParm[1], right = mr->dParm[2],
|
1998-03-29 21:44:57 +02:00
|
|
|
bottom = mr->dParm[3];
|
1999-02-26 12:11:13 +01:00
|
|
|
IntersectClipRect(hdc, left, top, right, bottom);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_SELECTOBJECT:
|
|
|
|
{
|
|
|
|
DWORD obj = mr->dParm[0];
|
1999-02-26 12:11:13 +01:00
|
|
|
SelectObject(hdc, (handletable->objectHandle)[obj]);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_DELETEOBJECT:
|
|
|
|
{
|
|
|
|
DWORD obj = mr->dParm[0];
|
1999-02-26 12:11:13 +01:00
|
|
|
DeleteObject( (handletable->objectHandle)[obj]);
|
1998-03-29 21:44:57 +02:00
|
|
|
(handletable->objectHandle)[obj] = 0;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_SETWINDOWORGEX:
|
|
|
|
{
|
|
|
|
DWORD x = mr->dParm[0], y = mr->dParm[1];
|
1999-02-26 12:11:13 +01:00
|
|
|
SetWindowOrgEx(hdc, x, y, NULL);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_SETWINDOWEXTEX:
|
|
|
|
{
|
|
|
|
DWORD x = mr->dParm[0], y = mr->dParm[1];
|
1999-02-26 12:11:13 +01:00
|
|
|
SetWindowExtEx(hdc, x, y, NULL);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_SETVIEWPORTORGEX:
|
|
|
|
{
|
|
|
|
DWORD x = mr->dParm[0], y = mr->dParm[1];
|
1999-02-26 12:11:13 +01:00
|
|
|
SetViewportOrgEx(hdc, x, y, NULL);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_SETVIEWPORTEXTEX:
|
|
|
|
{
|
|
|
|
DWORD x = mr->dParm[0], y = mr->dParm[1];
|
1999-02-26 12:11:13 +01:00
|
|
|
SetViewportExtEx(hdc, x, y, NULL);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_CREATEPEN:
|
|
|
|
{
|
|
|
|
DWORD obj = mr->dParm[0];
|
|
|
|
(handletable->objectHandle)[obj] =
|
1999-02-26 12:11:13 +01:00
|
|
|
CreatePenIndirect((LOGPEN *) &(mr->dParm[1]));
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_EXTCREATEPEN:
|
|
|
|
{
|
|
|
|
DWORD obj = mr->dParm[0];
|
|
|
|
DWORD style = mr->dParm[1], brush = mr->dParm[2];
|
1999-02-26 12:11:13 +01:00
|
|
|
LOGBRUSH *b = (LOGBRUSH *) &mr->dParm[3];
|
1999-05-23 12:25:25 +02:00
|
|
|
FIXME("Some ExtCreatePen args not handled\n");
|
1998-03-29 21:44:57 +02:00
|
|
|
(handletable->objectHandle)[obj] =
|
1999-02-26 12:11:13 +01:00
|
|
|
ExtCreatePen(style, brush, b, 0, NULL);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_CREATEBRUSHINDIRECT:
|
|
|
|
{
|
|
|
|
DWORD obj = mr->dParm[0];
|
|
|
|
(handletable->objectHandle)[obj] =
|
1999-02-26 12:11:13 +01:00
|
|
|
CreateBrushIndirect((LOGBRUSH *) &(mr->dParm[1]));
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_EXTCREATEFONTINDIRECTW:
|
|
|
|
{
|
|
|
|
DWORD obj = mr->dParm[0];
|
|
|
|
(handletable->objectHandle)[obj] =
|
1999-02-26 12:11:13 +01:00
|
|
|
CreateFontIndirectW((LOGFONTW *) &(mr->dParm[1]));
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_MOVETOEX:
|
|
|
|
{
|
|
|
|
DWORD x = mr->dParm[0], y = mr->dParm[1];
|
1999-02-26 12:11:13 +01:00
|
|
|
MoveToEx(hdc, x, y, NULL);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_LINETO:
|
|
|
|
{
|
|
|
|
DWORD x = mr->dParm[0], y = mr->dParm[1];
|
1999-02-26 12:11:13 +01:00
|
|
|
LineTo(hdc, x, y);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_RECTANGLE:
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
INT left = mr->dParm[0], top = mr->dParm[1], right = mr->dParm[2],
|
1998-03-29 21:44:57 +02:00
|
|
|
bottom = mr->dParm[3];
|
1999-02-26 12:11:13 +01:00
|
|
|
Rectangle(hdc, left, top, right, bottom);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_ELLIPSE:
|
|
|
|
{
|
1999-02-26 12:11:13 +01:00
|
|
|
INT left = mr->dParm[0], top = mr->dParm[1], right = mr->dParm[2],
|
1998-03-29 21:44:57 +02:00
|
|
|
bottom = mr->dParm[3];
|
1999-02-26 12:11:13 +01:00
|
|
|
Ellipse(hdc, left, top, right, bottom);
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_POLYGON16:
|
|
|
|
{
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
/* 0-3 : a bounding rectangle? */
|
1999-02-26 12:11:13 +01:00
|
|
|
INT count = mr->dParm[4];
|
1999-05-23 12:25:25 +02:00
|
|
|
FIXME("Some Polygon16 args not handled\n");
|
1998-03-29 21:44:57 +02:00
|
|
|
Polygon16(hdc, (POINT16 *)&mr->dParm[5], count);
|
|
|
|
break;
|
|
|
|
}
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
case EMR_POLYLINE16:
|
|
|
|
{
|
|
|
|
/* 0-3 : a bounding rectangle? */
|
1999-02-26 12:11:13 +01:00
|
|
|
INT count = mr->dParm[4];
|
1999-05-23 12:25:25 +02:00
|
|
|
FIXME("Some Polyline16 args not handled\n");
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
Polyline16(hdc, (POINT16 *)&mr->dParm[5], count);
|
|
|
|
break;
|
|
|
|
}
|
1998-03-29 21:44:57 +02:00
|
|
|
#if 0
|
|
|
|
case EMR_POLYPOLYGON16:
|
|
|
|
{
|
1999-12-12 00:18:10 +01:00
|
|
|
PEMRPOLYPOLYGON16 lpPolyPoly16 = (PEMRPOLYPOLYGON16)mr;
|
|
|
|
|
|
|
|
PolyPolygon16( hdc,
|
|
|
|
lpPolyPoly16->apts,
|
|
|
|
lpPolyPoly16->aPolyCounts,
|
|
|
|
lpPolyPoly16->nPolys );
|
|
|
|
|
1998-03-29 21:44:57 +02:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
#endif
|
1999-02-09 15:08:57 +01:00
|
|
|
case EMR_STRETCHDIBITS:
|
|
|
|
{
|
|
|
|
LONG xDest = mr->dParm[4];
|
|
|
|
LONG yDest = mr->dParm[5];
|
|
|
|
LONG xSrc = mr->dParm[6];
|
|
|
|
LONG ySrc = mr->dParm[7];
|
|
|
|
LONG cxSrc = mr->dParm[8];
|
|
|
|
LONG cySrc = mr->dParm[9];
|
|
|
|
DWORD offBmiSrc = mr->dParm[10];
|
|
|
|
DWORD offBitsSrc = mr->dParm[12];
|
|
|
|
DWORD iUsageSrc = mr->dParm[14];
|
|
|
|
DWORD dwRop = mr->dParm[15];
|
|
|
|
LONG cxDest = mr->dParm[16];
|
|
|
|
LONG cyDest = mr->dParm[17];
|
|
|
|
|
1999-02-26 12:11:13 +01:00
|
|
|
StretchDIBits(hdc,xDest,yDest,cxDest,cyDest,
|
1999-02-09 15:08:57 +01:00
|
|
|
xSrc,ySrc,cxSrc,cySrc,
|
|
|
|
((char *)mr)+offBitsSrc,
|
|
|
|
(const BITMAPINFO *)(((char *)mr)+offBmiSrc),
|
|
|
|
iUsageSrc,dwRop);
|
|
|
|
break;
|
1999-12-12 00:18:10 +01:00
|
|
|
}
|
1998-03-29 21:44:57 +02:00
|
|
|
case EMR_EXTTEXTOUTW:
|
|
|
|
{
|
|
|
|
/* 0-3: ??? */
|
|
|
|
DWORD flags = mr->dParm[4];
|
|
|
|
/* 5, 6: ??? */
|
|
|
|
DWORD x = mr->dParm[7], y = mr->dParm[8];
|
|
|
|
DWORD count = mr->dParm[9];
|
|
|
|
/* 10-16: ??? */
|
|
|
|
LPWSTR str = (LPWSTR)& mr->dParm[17];
|
|
|
|
/* trailing info: dx array? */
|
1999-05-23 12:25:25 +02:00
|
|
|
FIXME("Many ExtTextOut args not handled\n");
|
1999-02-26 12:11:13 +01:00
|
|
|
ExtTextOutW(hdc, x, y, flags, /* lpRect */ NULL,
|
1998-03-29 21:44:57 +02:00
|
|
|
str, count, /* lpDx */ NULL);
|
|
|
|
break;
|
|
|
|
}
|
1999-12-12 00:18:10 +01:00
|
|
|
|
|
|
|
case EMR_CREATEPALETTE:
|
|
|
|
{
|
|
|
|
PEMRCREATEPALETTE lpCreatePal = (PEMRCREATEPALETTE)mr;
|
|
|
|
|
|
|
|
(handletable->objectHandle)[ lpCreatePal->ihPal ] =
|
|
|
|
CreatePalette( &lpCreatePal->lgpl );
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case EMR_SELECTPALETTE:
|
|
|
|
{
|
|
|
|
PEMRSELECTPALETTE lpSelectPal = (PEMRSELECTPALETTE)mr;
|
|
|
|
|
|
|
|
/* FIXME: Should this be forcing background mode? */
|
|
|
|
(handletable->objectHandle)[ lpSelectPal->ihPal ] =
|
|
|
|
SelectPalette( hdc, lpSelectPal->ihPal, FALSE );
|
|
|
|
break;
|
|
|
|
}
|
1998-03-29 21:44:57 +02:00
|
|
|
|
1999-12-12 00:18:10 +01:00
|
|
|
case EMR_REALIZEPALETTE:
|
|
|
|
{
|
|
|
|
RealizePalette( hdc );
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
case EMR_EXTSELECTCLIPRGN:
|
|
|
|
{
|
|
|
|
PEMREXTSELECTCLIPRGN lpRgn = (PEMREXTSELECTCLIPRGN)mr;
|
|
|
|
|
|
|
|
/* Need to make a region out of the RGNDATA we have */
|
|
|
|
ExtSelectClipRgn( hdc, ..., (INT)(lpRgn->iMode) );
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
case EMR_SETMETARGN:
|
|
|
|
{
|
|
|
|
SetMetaRgn( hdc );
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_SETWORLDTRANSFORM:
|
|
|
|
{
|
|
|
|
PEMRSETWORLDTRANSFORM lpXfrm = (PEMRSETWORLDTRANSFORM)mr;
|
|
|
|
SetWorldTransform( hdc, &lpXfrm->xform );
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case EMR_POLYBEZIER:
|
|
|
|
case EMR_POLYGON:
|
|
|
|
case EMR_POLYLINE:
|
|
|
|
case EMR_POLYBEZIERTO:
|
|
|
|
case EMR_POLYLINETO:
|
|
|
|
case EMR_POLYPOLYLINE:
|
|
|
|
case EMR_POLYPOLYGON:
|
|
|
|
case EMR_SETBRUSHORGEX:
|
|
|
|
case EMR_SETPIXELV:
|
|
|
|
case EMR_SETMAPPERFLAGS:
|
|
|
|
case EMR_SETCOLORADJUSTMENT:
|
|
|
|
case EMR_OFFSETCLIPRGN:
|
|
|
|
case EMR_EXCLUDECLIPRECT:
|
|
|
|
case EMR_SCALEVIEWPORTEXTEX:
|
|
|
|
case EMR_SCALEWINDOWEXTEX:
|
|
|
|
case EMR_MODIFYWORLDTRANSFORM:
|
|
|
|
case EMR_ANGLEARC:
|
|
|
|
case EMR_ROUNDRECT:
|
|
|
|
case EMR_ARC:
|
|
|
|
case EMR_CHORD:
|
|
|
|
case EMR_PIE:
|
|
|
|
case EMR_SETPALETTEENTRIES:
|
|
|
|
case EMR_RESIZEPALETTE:
|
|
|
|
case EMR_EXTFLOODFILL:
|
|
|
|
case EMR_ARCTO:
|
|
|
|
case EMR_POLYDRAW:
|
|
|
|
case EMR_SETARCDIRECTION:
|
|
|
|
case EMR_SETMITERLIMIT:
|
|
|
|
case EMR_BEGINPATH:
|
|
|
|
case EMR_ENDPATH:
|
|
|
|
case EMR_CLOSEFIGURE:
|
|
|
|
case EMR_FILLPATH:
|
|
|
|
case EMR_STROKEANDFILLPATH:
|
|
|
|
case EMR_STROKEPATH:
|
|
|
|
case EMR_FLATTENPATH:
|
|
|
|
case EMR_WIDENPATH:
|
|
|
|
case EMR_SELECTCLIPPATH:
|
|
|
|
case EMR_ABORTPATH:
|
|
|
|
case EMR_FILLRGN:
|
|
|
|
case EMR_FRAMERGN:
|
|
|
|
case EMR_INVERTRGN:
|
|
|
|
case EMR_PAINTRGN:
|
|
|
|
case EMR_BITBLT:
|
|
|
|
case EMR_STRETCHBLT:
|
|
|
|
case EMR_MASKBLT:
|
|
|
|
case EMR_PLGBLT:
|
|
|
|
case EMR_SETDIBITSTODEVICE:
|
|
|
|
case EMR_EXTTEXTOUTA:
|
|
|
|
case EMR_POLYBEZIER16:
|
|
|
|
case EMR_POLYBEZIERTO16:
|
|
|
|
case EMR_POLYLINETO16:
|
|
|
|
case EMR_POLYPOLYLINE16:
|
|
|
|
case EMR_POLYPOLYGON16:
|
|
|
|
case EMR_POLYDRAW16:
|
|
|
|
case EMR_CREATEMONOBRUSH:
|
|
|
|
case EMR_CREATEDIBPATTERNBRUSHPT:
|
|
|
|
case EMR_POLYTEXTOUTA:
|
|
|
|
case EMR_POLYTEXTOUTW:
|
|
|
|
case EMR_SETICMMODE:
|
|
|
|
case EMR_CREATECOLORSPACE:
|
|
|
|
case EMR_SETCOLORSPACE:
|
|
|
|
case EMR_DELETECOLORSPACE:
|
|
|
|
case EMR_GLSRECORD:
|
|
|
|
case EMR_GLSBOUNDEDRECORD:
|
|
|
|
case EMR_PIXELFORMAT:
|
1998-03-29 21:44:57 +02:00
|
|
|
default:
|
1999-05-23 12:25:25 +02:00
|
|
|
FIXME("type %d is unimplemented\n", type);
|
1998-03-29 21:44:57 +02:00
|
|
|
/* SetLastError(E_NOTIMPL); */
|
1998-03-15 21:29:56 +01:00
|
|
|
break;
|
|
|
|
}
|
1998-03-29 21:44:57 +02:00
|
|
|
return TRUE;
|
1998-03-15 21:29:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
*
|
|
|
|
* EnumEnhMetaFile32 (GDI32.79)
|
|
|
|
*
|
|
|
|
* Walk an enhanced metafile, calling a user-specified function _EnhMetaFunc_
|
|
|
|
* for each
|
|
|
|
* record. Returns when either every record has been used or
|
|
|
|
* when _EnhMetaFunc_ returns FALSE.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* TRUE if every record is used, FALSE if any invocation of _EnhMetaFunc_
|
|
|
|
* returns FALSE.
|
|
|
|
*
|
|
|
|
* BUGS
|
1998-03-29 21:44:57 +02:00
|
|
|
* Ignores rect.
|
1998-03-15 21:29:56 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI EnumEnhMetaFile(
|
|
|
|
HDC hdc, /* device context to pass to _EnhMetaFunc_ */
|
|
|
|
HENHMETAFILE hmf, /* EMF to walk */
|
|
|
|
ENHMFENUMPROC callback, /* callback function */
|
1998-03-15 21:29:56 +01:00
|
|
|
LPVOID data, /* optional data for callback function */
|
1999-02-26 12:11:13 +01:00
|
|
|
const RECT *rect /* bounding rectangle for rendered metafile */
|
1998-03-15 21:29:56 +01:00
|
|
|
)
|
|
|
|
{
|
1999-05-02 11:23:51 +02:00
|
|
|
BOOL ret = TRUE;
|
|
|
|
LPENHMETARECORD p = (LPENHMETARECORD) EMF_GetEnhMetaHeader(hmf);
|
1999-06-12 08:49:52 +02:00
|
|
|
INT count;
|
|
|
|
HANDLETABLE *ht;
|
|
|
|
|
|
|
|
if(!p) return FALSE;
|
|
|
|
count = ((LPENHMETAHEADER) p)->nHandles;
|
|
|
|
ht = HeapAlloc( GetProcessHeap(), 0, sizeof(HANDLETABLE)*count);
|
1999-05-02 11:23:51 +02:00
|
|
|
ht->objectHandle[0] = hmf;
|
|
|
|
while (ret) {
|
|
|
|
ret = (*callback)(hdc, ht, p, count, data);
|
|
|
|
if (p->iType == EMR_EOF) break;
|
1999-05-08 14:50:36 +02:00
|
|
|
p = (LPENHMETARECORD) ((char *) p + p->nSize);
|
1999-05-02 11:23:51 +02:00
|
|
|
}
|
|
|
|
HeapFree( GetProcessHeap(), 0, ht);
|
|
|
|
EMF_ReleaseEnhMetaHeader(hmf);
|
|
|
|
return ret;
|
1998-03-15 21:29:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************************************
|
1998-04-13 14:21:30 +02:00
|
|
|
* PlayEnhMetaFile (GDI32.263)
|
1998-03-15 21:29:56 +01:00
|
|
|
*
|
|
|
|
* Renders an enhanced metafile into a specified rectangle *lpRect
|
|
|
|
* in device context hdc.
|
|
|
|
*
|
|
|
|
* BUGS
|
|
|
|
* Almost entirely unimplemented
|
|
|
|
*
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
BOOL WINAPI PlayEnhMetaFile(
|
|
|
|
HDC hdc, /* DC to render into */
|
|
|
|
HENHMETAFILE hmf, /* metafile to render */
|
|
|
|
const RECT *lpRect /* rectangle to place metafile inside */
|
1998-03-15 21:29:56 +01:00
|
|
|
)
|
|
|
|
{
|
1999-05-02 11:23:51 +02:00
|
|
|
LPENHMETARECORD p = (LPENHMETARECORD) EMF_GetEnhMetaHeader(hmf);
|
1999-06-12 08:49:52 +02:00
|
|
|
INT count;
|
|
|
|
HANDLETABLE *ht;
|
1999-05-02 11:23:51 +02:00
|
|
|
BOOL ret = FALSE;
|
|
|
|
INT savedMode = 0;
|
1999-06-12 08:49:52 +02:00
|
|
|
|
|
|
|
if(!p) return FALSE;
|
|
|
|
count = ((LPENHMETAHEADER) p)->nHandles;
|
|
|
|
ht = HeapAlloc( GetProcessHeap(), 0, sizeof(HANDLETABLE) * count);
|
1999-05-02 11:23:51 +02:00
|
|
|
if (lpRect) {
|
|
|
|
LPENHMETAHEADER h = (LPENHMETAHEADER) p;
|
|
|
|
FLOAT xscale = (h->rclBounds.right - h->rclBounds.left) /
|
|
|
|
(lpRect->right - lpRect->left);
|
|
|
|
FLOAT yscale = (h->rclBounds.bottom - h->rclBounds.top) /
|
|
|
|
(lpRect->bottom - lpRect->top);
|
1999-05-08 14:50:36 +02:00
|
|
|
XFORM xform;
|
|
|
|
xform.eM11 = xscale;
|
|
|
|
xform.eM12 = 0;
|
|
|
|
xform.eM21 = 0;
|
|
|
|
xform.eM22 = yscale;
|
1999-05-02 11:23:51 +02:00
|
|
|
xform.eDx = lpRect->left;
|
|
|
|
xform.eDy = lpRect->top;
|
1999-05-23 12:25:25 +02:00
|
|
|
FIXME("play into rect doesn't work\n");
|
1999-05-02 11:23:51 +02:00
|
|
|
savedMode = SetGraphicsMode(hdc, GM_ADVANCED);
|
|
|
|
if (!SetWorldTransform(hdc, &xform)) {
|
1999-05-23 12:25:25 +02:00
|
|
|
WARN("World transform failed!\n");
|
1999-05-02 11:23:51 +02:00
|
|
|
}
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
}
|
1999-05-02 11:23:51 +02:00
|
|
|
|
|
|
|
ht->objectHandle[0] = hmf;
|
|
|
|
while (1) {
|
|
|
|
PlayEnhMetaFileRecord(hdc, ht, p, count);
|
|
|
|
if (p->iType == EMR_EOF) break;
|
1999-05-08 14:50:36 +02:00
|
|
|
p = (LPENHMETARECORD) ((char *) p + p->nSize); /* casted so that arithmetic is in bytes */
|
1999-05-02 11:23:51 +02:00
|
|
|
}
|
|
|
|
HeapFree( GetProcessHeap(), 0, ht );
|
|
|
|
EMF_ReleaseEnhMetaHeader(hmf);
|
|
|
|
if (savedMode) SetGraphicsMode(hdc, savedMode);
|
|
|
|
ret = TRUE; /* FIXME: calculate a more accurate return value */
|
|
|
|
return ret;
|
1998-03-15 21:29:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************************************
|
1998-04-13 14:21:30 +02:00
|
|
|
* DeleteEnhMetaFile (GDI32.68)
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
*
|
|
|
|
* Deletes an enhanced metafile and frees the associated storage.
|
1998-03-15 21:29:56 +01:00
|
|
|
*/
|
1999-05-02 11:23:51 +02:00
|
|
|
BOOL WINAPI DeleteEnhMetaFile(HENHMETAFILE hmf)
|
|
|
|
{
|
|
|
|
return EMF_Delete_HENHMETAFILE( hmf );
|
1998-03-15 21:29:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/*****************************************************************************
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
* CopyEnhMetaFileA (GDI32.21) Duplicate an enhanced metafile
|
|
|
|
*
|
|
|
|
*
|
1998-03-15 21:29:56 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
HENHMETAFILE WINAPI CopyEnhMetaFileA(
|
1999-05-02 11:23:51 +02:00
|
|
|
HENHMETAFILE hmfSrc,
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
LPCSTR file)
|
|
|
|
{
|
1999-05-02 11:23:51 +02:00
|
|
|
ENHMETAHEADER *emrSrc = EMF_GetEnhMetaHeader( hmfSrc ), *emrDst;
|
|
|
|
HENHMETAFILE hmfDst;
|
|
|
|
|
1999-06-12 08:49:52 +02:00
|
|
|
if(!emrSrc) return FALSE;
|
1999-05-02 11:23:51 +02:00
|
|
|
if (!file) {
|
|
|
|
emrDst = HeapAlloc( SystemHeap, 0, emrSrc->nBytes );
|
|
|
|
memcpy( emrDst, emrSrc, emrSrc->nBytes );
|
|
|
|
hmfDst = EMF_Create_HENHMETAFILE( emrDst, 0, 0 );
|
|
|
|
} else {
|
|
|
|
HFILE hFile;
|
|
|
|
hFile = CreateFileA( file, GENERIC_WRITE | GENERIC_READ, 0, NULL,
|
|
|
|
CREATE_ALWAYS, 0, -1);
|
|
|
|
WriteFile( hFile, emrSrc, emrSrc->nBytes, 0, 0);
|
|
|
|
hmfDst = EMF_GetEnhMetaFile( hFile );
|
|
|
|
}
|
|
|
|
EMF_ReleaseEnhMetaHeader( hmfSrc );
|
|
|
|
return hmfDst;
|
1998-03-29 21:44:57 +02:00
|
|
|
}
|
|
|
|
|
1999-05-02 11:23:51 +02:00
|
|
|
|
1999-12-12 00:18:10 +01:00
|
|
|
/* Struct to be used to be passed in the LPVOID parameter for cbEnhPaletteCopy */
|
|
|
|
typedef struct tagEMF_PaletteCopy
|
|
|
|
{
|
|
|
|
UINT cEntries;
|
|
|
|
LPPALETTEENTRY lpPe;
|
|
|
|
} EMF_PaletteCopy;
|
|
|
|
|
|
|
|
/***************************************************************
|
|
|
|
* Find the EMR_EOF record and then use it to find the
|
|
|
|
* palette entries for this enhanced metafile.
|
|
|
|
* The lpData is actually a pointer to a EMF_PaletteCopy struct
|
|
|
|
* which contains the max number of elements to copy and where
|
|
|
|
* to copy them to.
|
|
|
|
*
|
|
|
|
* NOTE: To be used by GetEnhMetaFilePaletteEntries only!
|
|
|
|
*/
|
|
|
|
INT CALLBACK cbEnhPaletteCopy( HDC a,
|
|
|
|
LPHANDLETABLE b,
|
|
|
|
LPENHMETARECORD lpEMR,
|
|
|
|
INT c,
|
|
|
|
LPVOID lpData )
|
|
|
|
{
|
|
|
|
|
|
|
|
if ( lpEMR->iType == EMR_EOF )
|
|
|
|
{
|
|
|
|
PEMREOF lpEof = (PEMREOF)lpEMR;
|
|
|
|
EMF_PaletteCopy* info = (EMF_PaletteCopy*)lpData;
|
|
|
|
DWORD dwNumPalToCopy = MIN( lpEof->nPalEntries, info->cEntries );
|
|
|
|
|
|
|
|
TRACE( "copying 0x%08lx palettes\n", dwNumPalToCopy );
|
|
|
|
|
|
|
|
memcpy( (LPVOID)info->lpPe,
|
|
|
|
(LPVOID)(((LPSTR)lpEof) + lpEof->offPalEntries),
|
|
|
|
sizeof( *(info->lpPe) ) * dwNumPalToCopy );
|
|
|
|
|
|
|
|
/* Update the passed data as a return code */
|
|
|
|
info->lpPe = NULL; /* Palettes were copied! */
|
|
|
|
info->cEntries = (UINT)dwNumPalToCopy;
|
|
|
|
|
|
|
|
return FALSE; /* That's all we need */
|
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
1998-11-07 13:56:31 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* GetEnhMetaFilePaletteEntries (GDI32.179)
|
|
|
|
*
|
|
|
|
* Copy the palette and report size
|
1999-12-12 00:18:10 +01:00
|
|
|
*
|
|
|
|
* BUGS: Error codes (SetLastError) are not set on failures
|
1998-11-07 13:56:31 +01:00
|
|
|
*/
|
1999-12-12 00:18:10 +01:00
|
|
|
UINT WINAPI GetEnhMetaFilePaletteEntries( HENHMETAFILE hEmf,
|
|
|
|
UINT cEntries,
|
|
|
|
LPPALETTEENTRY lpPe )
|
1998-11-07 13:56:31 +01:00
|
|
|
{
|
1999-12-12 00:18:10 +01:00
|
|
|
ENHMETAHEADER* enhHeader = EMF_GetEnhMetaHeader( hEmf );
|
|
|
|
UINT uReturnValue = GDI_ERROR;
|
|
|
|
EMF_PaletteCopy infoForCallBack;
|
|
|
|
|
|
|
|
TRACE( "(%04x,%d,%p)\n", hEmf, cEntries, lpPe );
|
|
|
|
|
|
|
|
/* First check if there are any palettes associated with
|
|
|
|
this metafile. */
|
|
|
|
if ( enhHeader->nPalEntries == 0 )
|
|
|
|
{
|
|
|
|
/* No palette associated with this enhanced metafile */
|
|
|
|
uReturnValue = 0;
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Is the user requesting the number of palettes? */
|
|
|
|
if ( lpPe == NULL )
|
|
|
|
{
|
|
|
|
uReturnValue = (UINT)enhHeader->nPalEntries;
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Copy cEntries worth of PALETTEENTRY structs into the buffer */
|
|
|
|
infoForCallBack.cEntries = cEntries;
|
|
|
|
infoForCallBack.lpPe = lpPe;
|
|
|
|
|
|
|
|
if ( !EnumEnhMetaFile( 0, hEmf, cbEnhPaletteCopy,
|
|
|
|
&infoForCallBack, NULL ) )
|
|
|
|
{
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Verify that the callback executed correctly */
|
|
|
|
if ( infoForCallBack.lpPe != NULL )
|
|
|
|
{
|
|
|
|
/* Callback proc had error! */
|
|
|
|
ERR( "cbEnhPaletteCopy didn't execute correctly\n" );
|
|
|
|
goto done;
|
|
|
|
}
|
|
|
|
|
|
|
|
uReturnValue = infoForCallBack.cEntries;
|
|
|
|
|
|
|
|
done:
|
|
|
|
|
|
|
|
EMF_ReleaseEnhMetaHeader( hEmf );
|
|
|
|
|
|
|
|
return uReturnValue;
|
1998-11-07 13:56:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/******************************************************************
|
|
|
|
* SetWinMetaFileBits (GDI32.343)
|
|
|
|
*
|
|
|
|
* Translate from old style to new style.
|
1999-12-04 04:56:53 +01:00
|
|
|
*
|
|
|
|
* BUGS: - This doesn't take the DC and scaling into account
|
|
|
|
* - Most record conversions aren't implemented
|
|
|
|
* - Handle slot assignement is primative and most likely doesn't work
|
1998-11-07 13:56:31 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
HENHMETAFILE WINAPI SetWinMetaFileBits(UINT cbBuffer,
|
1998-11-07 13:56:31 +01:00
|
|
|
CONST BYTE *lpbBuffer,
|
1999-02-26 12:11:13 +01:00
|
|
|
HDC hdcRef,
|
|
|
|
CONST METAFILEPICT *lpmfp
|
1998-11-07 13:56:31 +01:00
|
|
|
)
|
|
|
|
{
|
1999-12-04 04:56:53 +01:00
|
|
|
HENHMETAFILE hMf;
|
|
|
|
LPVOID lpNewEnhMetaFileBuffer = NULL;
|
|
|
|
UINT uNewEnhMetaFileBufferSize = 0;
|
|
|
|
BOOL bFoundEOF = FALSE;
|
|
|
|
|
|
|
|
FIXME( "(%d,%p,%04x,%p):stub\n", cbBuffer, lpbBuffer, hdcRef, lpmfp );
|
|
|
|
|
|
|
|
/* 1. Get the header - skip over this and get straight to the records */
|
|
|
|
|
|
|
|
uNewEnhMetaFileBufferSize = sizeof( ENHMETAHEADER );
|
|
|
|
lpNewEnhMetaFileBuffer = HeapAlloc( SystemHeap, HEAP_ZERO_MEMORY,
|
|
|
|
uNewEnhMetaFileBufferSize );
|
|
|
|
|
|
|
|
if( lpNewEnhMetaFileBuffer == NULL )
|
|
|
|
{
|
|
|
|
goto error;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Fill in the header record */
|
|
|
|
{
|
|
|
|
LPENHMETAHEADER lpNewEnhMetaFileHeader = (LPENHMETAHEADER)lpNewEnhMetaFileBuffer;
|
|
|
|
|
|
|
|
lpNewEnhMetaFileHeader->iType = EMR_HEADER;
|
|
|
|
lpNewEnhMetaFileHeader->nSize = sizeof( ENHMETAHEADER );
|
|
|
|
|
|
|
|
/* FIXME: Not right. Must be able to get this from the DC */
|
|
|
|
lpNewEnhMetaFileHeader->rclBounds.left = 0;
|
|
|
|
lpNewEnhMetaFileHeader->rclBounds.right = 0;
|
|
|
|
lpNewEnhMetaFileHeader->rclBounds.top = 0;
|
|
|
|
lpNewEnhMetaFileHeader->rclBounds.bottom = 0;
|
|
|
|
|
|
|
|
/* FIXME: Not right. Must be able to get this from the DC */
|
|
|
|
lpNewEnhMetaFileHeader->rclFrame.left = 0;
|
|
|
|
lpNewEnhMetaFileHeader->rclFrame.right = 0;
|
|
|
|
lpNewEnhMetaFileHeader->rclFrame.top = 0;
|
|
|
|
lpNewEnhMetaFileHeader->rclFrame.bottom = 0;
|
|
|
|
|
|
|
|
lpNewEnhMetaFileHeader->nHandles = 0; /* No handles yet */
|
|
|
|
|
|
|
|
/* FIXME: Add in the rest of the fields to the header */
|
|
|
|
/* dSignature
|
|
|
|
nVersion
|
|
|
|
nRecords
|
|
|
|
sReserved
|
|
|
|
nDescription
|
|
|
|
offDescription
|
|
|
|
nPalEntries
|
|
|
|
szlDevice
|
|
|
|
szlMillimeters
|
|
|
|
cbPixelFormat
|
|
|
|
offPixelFormat,
|
|
|
|
bOpenGL */
|
|
|
|
}
|
|
|
|
|
|
|
|
(char*)lpbBuffer += ((METAHEADER*)lpbBuffer)->mtHeaderSize * 2; /* Point past the header - FIXME: metafile quirk? */
|
|
|
|
|
|
|
|
/* 2. Enum over individual records and convert them to the new type of records */
|
|
|
|
while( !bFoundEOF )
|
|
|
|
{
|
|
|
|
|
|
|
|
LPMETARECORD lpMetaRecord = (LPMETARECORD)lpbBuffer;
|
|
|
|
|
|
|
|
#define EMF_ReAllocAndAdjustPointers( a , b ) \
|
|
|
|
{ \
|
|
|
|
LPVOID lpTmp; \
|
|
|
|
lpTmp = HeapReAlloc( SystemHeap, 0, \
|
|
|
|
lpNewEnhMetaFileBuffer, \
|
|
|
|
uNewEnhMetaFileBufferSize + (b) ); \
|
|
|
|
if( lpTmp == NULL ) { ERR( "No memory!\n" ); goto error; } \
|
|
|
|
lpNewEnhMetaFileBuffer = lpTmp; \
|
|
|
|
lpRecord = (a)( (char*)lpNewEnhMetaFileBuffer + uNewEnhMetaFileBufferSize ); \
|
|
|
|
uNewEnhMetaFileBufferSize += (b); \
|
|
|
|
}
|
|
|
|
|
|
|
|
switch( lpMetaRecord->rdFunction )
|
|
|
|
{
|
|
|
|
case META_EOF:
|
|
|
|
{
|
|
|
|
PEMREOF lpRecord;
|
|
|
|
size_t uRecord = sizeof(*lpRecord);
|
|
|
|
|
|
|
|
EMF_ReAllocAndAdjustPointers(PEMREOF,uRecord);
|
|
|
|
|
|
|
|
/* Fill the new record - FIXME: This is not right */
|
|
|
|
lpRecord->emr.iType = EMR_EOF;
|
|
|
|
lpRecord->emr.nSize = sizeof( *lpRecord );
|
|
|
|
lpRecord->nPalEntries = 0; /* FIXME */
|
|
|
|
lpRecord->offPalEntries = 0; /* FIXME */
|
|
|
|
lpRecord->nSizeLast = 0; /* FIXME */
|
|
|
|
|
|
|
|
/* No more records after this one */
|
|
|
|
bFoundEOF = TRUE;
|
1998-11-07 13:56:31 +01:00
|
|
|
|
1999-12-04 04:56:53 +01:00
|
|
|
FIXME( "META_EOF conversion not correct\n" );
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case META_SETMAPMODE:
|
|
|
|
{
|
|
|
|
PEMRSETMAPMODE lpRecord;
|
|
|
|
size_t uRecord = sizeof(*lpRecord);
|
|
|
|
|
|
|
|
EMF_ReAllocAndAdjustPointers(PEMRSETMAPMODE,uRecord);
|
|
|
|
|
|
|
|
lpRecord->emr.iType = EMR_SETMAPMODE;
|
|
|
|
lpRecord->emr.nSize = sizeof( *lpRecord );
|
|
|
|
|
|
|
|
lpRecord->iMode = lpMetaRecord->rdParm[0];
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case META_DELETEOBJECT: /* Select and Delete structures are the same */
|
|
|
|
case META_SELECTOBJECT:
|
|
|
|
{
|
|
|
|
PEMRDELETEOBJECT lpRecord;
|
|
|
|
size_t uRecord = sizeof(*lpRecord);
|
|
|
|
|
|
|
|
EMF_ReAllocAndAdjustPointers(PEMRDELETEOBJECT,uRecord);
|
|
|
|
|
|
|
|
if( lpMetaRecord->rdFunction == META_DELETEOBJECT )
|
|
|
|
{
|
|
|
|
lpRecord->emr.iType = EMR_DELETEOBJECT;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
lpRecord->emr.iType = EMR_SELECTOBJECT;
|
|
|
|
}
|
|
|
|
lpRecord->emr.nSize = sizeof( *lpRecord );
|
|
|
|
|
|
|
|
lpRecord->ihObject = lpMetaRecord->rdParm[0]; /* FIXME: Handle */
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case META_POLYGON: /* This is just plain busted. I don't know what I'm doing */
|
|
|
|
{
|
|
|
|
PEMRPOLYGON16 lpRecord; /* FIXME: Should it be a poly or poly16? */
|
|
|
|
size_t uRecord = sizeof(*lpRecord);
|
|
|
|
|
|
|
|
EMF_ReAllocAndAdjustPointers(PEMRPOLYGON16,uRecord);
|
|
|
|
|
|
|
|
/* FIXME: This is mostly all wrong */
|
1999-12-12 00:18:10 +01:00
|
|
|
lpRecord->emr.iType = EMR_POLYGON16;
|
1999-12-04 04:56:53 +01:00
|
|
|
lpRecord->emr.nSize = sizeof( *lpRecord );
|
|
|
|
|
|
|
|
lpRecord->rclBounds.left = 0;
|
|
|
|
lpRecord->rclBounds.right = 0;
|
|
|
|
lpRecord->rclBounds.top = 0;
|
|
|
|
lpRecord->rclBounds.bottom = 0;
|
|
|
|
|
|
|
|
lpRecord->cpts = 0;
|
|
|
|
lpRecord->apts[0].x = 0;
|
|
|
|
lpRecord->apts[0].y = 0;
|
|
|
|
|
|
|
|
FIXME( "META_POLYGON conversion not correct\n" );
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case META_SETPOLYFILLMODE:
|
|
|
|
{
|
|
|
|
PEMRSETPOLYFILLMODE lpRecord;
|
|
|
|
size_t uRecord = sizeof(*lpRecord);
|
|
|
|
|
|
|
|
EMF_ReAllocAndAdjustPointers(PEMRSETPOLYFILLMODE,uRecord);
|
|
|
|
|
|
|
|
lpRecord->emr.iType = EMR_SETPOLYFILLMODE;
|
|
|
|
lpRecord->emr.nSize = sizeof( *lpRecord );
|
|
|
|
|
|
|
|
lpRecord->iMode = lpMetaRecord->rdParm[0];
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case META_SETWINDOWORG:
|
|
|
|
{
|
|
|
|
PEMRSETWINDOWORGEX lpRecord; /* Seems to be the closest thing */
|
|
|
|
size_t uRecord = sizeof(*lpRecord);
|
|
|
|
|
|
|
|
EMF_ReAllocAndAdjustPointers(PEMRSETWINDOWORGEX,uRecord);
|
|
|
|
|
|
|
|
lpRecord->emr.iType = EMR_SETWINDOWORGEX;
|
|
|
|
lpRecord->emr.nSize = sizeof( *lpRecord );
|
|
|
|
|
|
|
|
lpRecord->ptlOrigin.x = lpMetaRecord->rdParm[1];
|
|
|
|
lpRecord->ptlOrigin.y = lpMetaRecord->rdParm[0];
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case META_SETWINDOWEXT: /* Structure is the same for SETWINDOWEXT & SETVIEWPORTEXT */
|
|
|
|
case META_SETVIEWPORTEXT:
|
|
|
|
{
|
|
|
|
PEMRSETWINDOWEXTEX lpRecord;
|
|
|
|
size_t uRecord = sizeof(*lpRecord);
|
|
|
|
|
|
|
|
EMF_ReAllocAndAdjustPointers(PEMRSETWINDOWEXTEX,uRecord);
|
|
|
|
|
|
|
|
if ( lpMetaRecord->rdFunction == META_SETWINDOWEXT )
|
|
|
|
{
|
|
|
|
lpRecord->emr.iType = EMR_SETWINDOWORGEX;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
lpRecord->emr.iType = EMR_SETVIEWPORTEXTEX;
|
|
|
|
}
|
|
|
|
lpRecord->emr.nSize = sizeof( *lpRecord );
|
|
|
|
|
|
|
|
lpRecord->szlExtent.cx = lpMetaRecord->rdParm[1];
|
|
|
|
lpRecord->szlExtent.cy = lpMetaRecord->rdParm[0];
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case META_CREATEBRUSHINDIRECT:
|
|
|
|
{
|
|
|
|
PEMRCREATEBRUSHINDIRECT lpRecord;
|
|
|
|
size_t uRecord = sizeof(*lpRecord);
|
|
|
|
|
|
|
|
EMF_ReAllocAndAdjustPointers(PEMRCREATEBRUSHINDIRECT,uRecord);
|
|
|
|
|
|
|
|
lpRecord->emr.iType = EMR_CREATEBRUSHINDIRECT;
|
|
|
|
lpRecord->emr.nSize = sizeof( *lpRecord );
|
|
|
|
|
|
|
|
lpRecord->ihBrush = ((LPENHMETAHEADER)lpNewEnhMetaFileBuffer)->nHandles;
|
|
|
|
lpRecord->lb.lbStyle = ((LPLOGBRUSH16)lpMetaRecord->rdParm)->lbStyle;
|
|
|
|
lpRecord->lb.lbColor = ((LPLOGBRUSH16)lpMetaRecord->rdParm)->lbColor;
|
|
|
|
lpRecord->lb.lbHatch = ((LPLOGBRUSH16)lpMetaRecord->rdParm)->lbHatch;
|
|
|
|
|
|
|
|
((LPENHMETAHEADER)lpNewEnhMetaFileBuffer)->nHandles += 1; /* New handle */
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* These are all unimplemented and as such are intended to fall through to the default case */
|
|
|
|
case META_SETBKCOLOR:
|
|
|
|
case META_SETBKMODE:
|
|
|
|
case META_SETROP2:
|
|
|
|
case META_SETRELABS:
|
|
|
|
case META_SETSTRETCHBLTMODE:
|
|
|
|
case META_SETTEXTCOLOR:
|
|
|
|
case META_SETVIEWPORTORG:
|
|
|
|
case META_OFFSETWINDOWORG:
|
|
|
|
case META_SCALEWINDOWEXT:
|
|
|
|
case META_OFFSETVIEWPORTORG:
|
|
|
|
case META_SCALEVIEWPORTEXT:
|
|
|
|
case META_LINETO:
|
|
|
|
case META_MOVETO:
|
|
|
|
case META_EXCLUDECLIPRECT:
|
|
|
|
case META_INTERSECTCLIPRECT:
|
|
|
|
case META_ARC:
|
|
|
|
case META_ELLIPSE:
|
|
|
|
case META_FLOODFILL:
|
|
|
|
case META_PIE:
|
|
|
|
case META_RECTANGLE:
|
|
|
|
case META_ROUNDRECT:
|
|
|
|
case META_PATBLT:
|
|
|
|
case META_SAVEDC:
|
|
|
|
case META_SETPIXEL:
|
|
|
|
case META_OFFSETCLIPRGN:
|
|
|
|
case META_TEXTOUT:
|
|
|
|
case META_POLYPOLYGON:
|
|
|
|
case META_POLYLINE:
|
|
|
|
case META_RESTOREDC:
|
|
|
|
case META_CHORD:
|
|
|
|
case META_CREATEPATTERNBRUSH:
|
|
|
|
case META_CREATEPENINDIRECT:
|
|
|
|
case META_CREATEFONTINDIRECT:
|
|
|
|
case META_CREATEPALETTE:
|
|
|
|
case META_SETTEXTALIGN:
|
|
|
|
case META_SELECTPALETTE:
|
|
|
|
case META_SETMAPPERFLAGS:
|
|
|
|
case META_REALIZEPALETTE:
|
|
|
|
case META_ESCAPE:
|
|
|
|
case META_EXTTEXTOUT:
|
|
|
|
case META_STRETCHDIB:
|
|
|
|
case META_DIBSTRETCHBLT:
|
|
|
|
case META_STRETCHBLT:
|
|
|
|
case META_BITBLT:
|
|
|
|
case META_CREATEREGION:
|
|
|
|
case META_FILLREGION:
|
|
|
|
case META_FRAMEREGION:
|
|
|
|
case META_INVERTREGION:
|
|
|
|
case META_PAINTREGION:
|
|
|
|
case META_SELECTCLIPREGION:
|
|
|
|
case META_DIBCREATEPATTERNBRUSH:
|
|
|
|
case META_DIBBITBLT:
|
|
|
|
case META_SETTEXTCHAREXTRA:
|
|
|
|
case META_SETTEXTJUSTIFICATION:
|
|
|
|
case META_EXTFLOODFILL:
|
|
|
|
case META_SETDIBTODEV:
|
|
|
|
case META_DRAWTEXT:
|
|
|
|
case META_ANIMATEPALETTE:
|
|
|
|
case META_SETPALENTRIES:
|
|
|
|
case META_RESIZEPALETTE:
|
|
|
|
case META_RESETDC:
|
|
|
|
case META_STARTDOC:
|
|
|
|
case META_STARTPAGE:
|
|
|
|
case META_ENDPAGE:
|
|
|
|
case META_ABORTDOC:
|
|
|
|
case META_ENDDOC:
|
|
|
|
case META_CREATEBRUSH:
|
|
|
|
case META_CREATEBITMAPINDIRECT:
|
|
|
|
case META_CREATEBITMAP:
|
|
|
|
/* Fall through to unimplemented */
|
|
|
|
default:
|
|
|
|
{
|
|
|
|
/* Not implemented yet */
|
|
|
|
FIXME( "Conversion of record type 0x%x not implemented.\n", lpMetaRecord->rdFunction );
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Move to the next record */
|
|
|
|
(char*)lpbBuffer += ((LPMETARECORD)lpbBuffer)->rdSize * 2; /* FIXME: Seem to be doing this in metafile.c */
|
|
|
|
|
|
|
|
#undef ReAllocAndAdjustPointers
|
|
|
|
}
|
|
|
|
|
|
|
|
/* We know the last of the header information now */
|
|
|
|
((LPENHMETAHEADER)lpNewEnhMetaFileBuffer)->nBytes = uNewEnhMetaFileBufferSize;
|
|
|
|
|
|
|
|
/* Create the enhanced metafile */
|
|
|
|
hMf = SetEnhMetaFileBits( uNewEnhMetaFileBufferSize, (const BYTE*)lpNewEnhMetaFileBuffer );
|
|
|
|
|
|
|
|
if( !hMf )
|
|
|
|
ERR( "Problem creating metafile. Did the conversion fail somewhere?\n" );
|
|
|
|
|
|
|
|
return hMf;
|
|
|
|
|
|
|
|
error:
|
|
|
|
/* Free the data associated with our copy since it's been copied */
|
|
|
|
HeapFree( SystemHeap, 0, lpNewEnhMetaFileBuffer );
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
1998-11-07 13:56:31 +01:00
|
|
|
|
|
|
|
|
1998-03-15 21:29:56 +01:00
|
|
|
|