1998-01-18 18:01:49 +00:00
|
|
|
/* DirectSound
|
2002-05-31 23:06:46 +00:00
|
|
|
*
|
1998-01-18 18:01:49 +00:00
|
|
|
* Copyright 1998 Marcus Meissner
|
1998-11-22 15:08:48 +00:00
|
|
|
* Copyright 1998 Rob Riggs
|
2002-06-13 19:15:06 +00:00
|
|
|
* Copyright 2000-2002 TransGaming Technologies, Inc.
|
2002-03-09 23:29:33 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1998-01-18 18:01:49 +00:00
|
|
|
*/
|
|
|
|
/*
|
1999-01-23 12:19:34 +00:00
|
|
|
* Most thread locking is complete. There may be a few race
|
|
|
|
* conditions still lurking.
|
1998-01-18 18:01:49 +00:00
|
|
|
*
|
1999-01-23 12:19:34 +00:00
|
|
|
* Tested with a Soundblaster clone, a Gravis UltraSound Classic,
|
|
|
|
* and a Turtle Beach Tropez+.
|
|
|
|
*
|
|
|
|
* TODO:
|
|
|
|
* Implement SetCooperativeLevel properly (need to address focus issues)
|
|
|
|
* Implement DirectSound3DBuffers (stubs in place)
|
2000-06-23 15:45:05 +00:00
|
|
|
* Use hardware 3D support if available
|
2000-05-30 20:49:37 +00:00
|
|
|
* Add critical section locking inside Release and AddRef methods
|
2000-06-23 15:45:05 +00:00
|
|
|
* Handle static buffers - put those in hardware, non-static not in hardware
|
|
|
|
* Hardware DuplicateSoundBuffer
|
|
|
|
* Proper volume calculation, and setting volume in HEL primary buffer
|
|
|
|
* Optimize WINMM and negotiate fragment size, decrease DS_HEL_MARGIN
|
Release 980104
Sat Jan 3 17:15:56 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/db_disasm.c]
Added cpuid and cmpxchg instructions.
* [if1632/builtin.c] [relay32/builtin32.c]
Fixed broken -dll option with Win32 DLLs.
* [include/heap.h]
Added SYSTEM_LOCK/SYSTEM_UNLOCK macros.
* [configure.in] [misc/lstr.c]
Added check for wctype.h.
Commented out --enable-ipc option (IPC code has been broken for a
long time anyway).
* [scheduler/critsection.c] [scheduler/event.c]
[scheduler/mutex.c] [scheduler/semaphore.c]
Implemented Win32 synchronization objects.
* [scheduler/synchro.c]
Implemented WaitForMultipleObjects and related functions.
* [scheduler/thread.c]
If possible, use clone() in CreateThread().
* [scheduler/thread.c] [scheduler/process.c]
Made thread and process waitable objects.
Thread and process id values are now different from the pointers
they represent.
* [win32/k32obj.c]
Moved to scheduler directory.
Added function table for waiting operations on objects.
* [files/file.c] [memory/virtual.c]
Added new K32OBJ function table.
Sun Jan 1 16:48:23 1997 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed my patch for GetTempFileName16() as needed.
It was ...Name32A() that didn't work properly, not ...Name16().
* [graphics/x11drv/brush.c]
Fixed a BadMatch error.
* [msdos/int21.c]
Fixed INT21_FindNextFCB() to get correct volume labels e.g.
in "file open" dialog.
* [multimedia/joystick.c] [relay32/winmm.spec]
Stub JoyGetPosEx().
* [scheduler/process.c] [relay32/kernel32.spec]
Implemented RegisterServiceProcess().
Wed Dec 31 11:14:43 1997 Lawson Whitney <lawson_whitney@juno.com>
* [if1632/kernel.spec] [if1632/relay.c]
Define CallProcEx32w - Thanks to Marcus Meissner for his excellent
CallProc32W.
* [loader/module.c]
Take a shot at defining FreeLibrary32W.
Sun Dec 28 12:44:04 1997 Kai Morich <kai.morich@rhein-neckar.netsurf.de>
* [controls/menu.c]
Menu modification from WM_INITMENUPOPUP message fixed.
Menu items now can have different wID and hSubMenu (Win95 behavior).
* [misc/cpu.c]
Improved IsProcessorFeaturePresent.
Sun Dec 28 03:21:08 1997 Ove Kaaven <ovek@main.arcticnet.no>
* [include/winsock.h] [misc/winsock.c]
Fixed WS_SOL_SOCKET for setsockopt(), and made select() return
empty fd_sets if timeout.
* [objects/palette.c]
AnimatePalette() bailed out if entire palette is animated. Fixed.
* [objects/dib.c]
Added some code to SetDIBitsToDevice() and its helpers to fix
some offseting problems.
* [objects/cursoricon.c]
Made CreateCursor32() convert the instance handle properly. Made
DestroyCursor() return correct success status.
Wed Dec 24 17:56:34 1997 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [windows/syscolor.c]
Added definition of GetSysColorPen16/32. This function does not
exist in the Win32 API but is a very close (and natural) relative
to GetSysColorBrush function. Moreover, it is *very* much used
within Wine since there are a lot of places where we need to draw
lines with the standard colors.
* [controls/button.c] [controls/combo.c] [controls/icontitle.c]
[controls/menu.c] [controls/progress.c] [controls/scroll.c]
[controls/updown.c] [graphics/painting.c] [misc/tweak.c]
[windows/defwnd.c] [windows/graphics.c] [windows/nonclient.c]
Replaced references to sysColorObjects with the appropriate
call to GetSysColorBrush32/GetSysColorPen32. There is no need to
expose the implementation of these functions, even within Wine.
This makes the code easier to understand, debug, maintain.
* [controls/uitools.c]
Modified most of the functions in this file to use the now
standard pens (i.e. GetSysColorPen32). These functions made
*heavy* use of standard pens so I expect a lot less
CreatePen/DeleteObject calls can do only good...:)
Plus some minor modifications (*no* functional changes though).
* [controls/updown.c]
Used the new DrawFrameControl32 function to paint the control.
I also deleted UDDOWN_DrawArrow since it was no longer required.
Tue Dec 23 00:03:33 1997 Steinar Hamre <steinarh@stud.fim.ntnu.no>
* [configure.in]
Added check for -lw.
* [include/wintypes.h] [tools/build.c]
Changes to make the assembly understandable for even sun as.
".ascii" -> ".string", "call %foo" -> "call *%foo",
"pushw/popw %[cdes]s" written out to ".byte 0x66\npushl/popl %[cdes]s".
* [memory/ldt.c]
#ifdef added so <sys/seg.h> will not be included on Solaris.
Mon Dec 22 18:55:19 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [configure.in]
Added XF86DGA check.
* [multimedia/dsound.c][relay32/dsound.spec][include/dsound.h]
Started DirectSound. Only stubs for now.
* [graphics/ddraw.c][include/ddraw.h][relay32/ddraw.spec]
Started to implement DirectDraw. Mostly stubs, some
testcases work. Requires the XF86DGA extension to XFree86.
(check demo/blizdemo.exe from the Diablo CD-ROM).
* [files/drive.c]
Return correct "CDFS" fsname so Diablo is a bit happier.
Sun Dec 21 21:45:48 1997 Kevin Cozens <kcozens@interlog.com>
* [misc/registry.c]
Fixed bugs in the routines which read the Windows '95 registry
files. Added extra information regarding the format of the Windows
'95 registry files.
1998-01-04 17:49:09 +00:00
|
|
|
*/
|
|
|
|
|
1998-04-13 12:21:30 +00:00
|
|
|
#include "config.h"
|
2002-04-26 19:05:15 +00:00
|
|
|
#include "wine/port.h"
|
|
|
|
|
1998-01-18 18:01:49 +00:00
|
|
|
#include <assert.h>
|
2003-09-05 23:08:26 +00:00
|
|
|
#include <stdarg.h>
|
2000-02-10 22:15:21 +00:00
|
|
|
#include <stdio.h>
|
1998-01-18 18:01:49 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/fcntl.h>
|
2002-08-17 00:43:16 +00:00
|
|
|
#ifdef HAVE_UNISTD_H
|
|
|
|
# include <unistd.h>
|
|
|
|
#endif
|
1998-01-18 18:01:49 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2003-06-27 22:22:15 +00:00
|
|
|
#include <math.h>
|
2000-08-03 04:22:35 +00:00
|
|
|
|
2003-06-27 22:22:15 +00:00
|
|
|
#define NONAMELESSSTRUCT
|
|
|
|
#define NONAMELESSUNION
|
2000-02-10 19:03:02 +00:00
|
|
|
#include "windef.h"
|
2000-12-19 04:53:20 +00:00
|
|
|
#include "winbase.h"
|
2002-05-11 22:53:00 +00:00
|
|
|
#include "winreg.h"
|
|
|
|
#include "winuser.h"
|
2000-02-10 19:03:02 +00:00
|
|
|
#include "wingdi.h"
|
1999-02-28 11:23:44 +00:00
|
|
|
#include "winuser.h"
|
1998-01-18 18:01:49 +00:00
|
|
|
#include "winerror.h"
|
2000-06-23 15:45:05 +00:00
|
|
|
#include "mmsystem.h"
|
2002-09-12 22:07:02 +00:00
|
|
|
#include "winternl.h"
|
2001-01-04 19:53:51 +00:00
|
|
|
#include "mmddk.h"
|
2000-09-26 22:20:14 +00:00
|
|
|
#include "wine/windef16.h"
|
2002-05-11 22:53:00 +00:00
|
|
|
#include "wine/winbase16.h"
|
2002-03-09 23:29:33 +00:00
|
|
|
#include "wine/debug.h"
|
2000-08-03 04:22:35 +00:00
|
|
|
#include "dsound.h"
|
|
|
|
#include "dsdriver.h"
|
2002-06-13 19:15:06 +00:00
|
|
|
#include "dsound_private.h"
|
2003-08-06 22:57:24 +00:00
|
|
|
#include "dsconf.h"
|
2000-08-03 04:22:35 +00:00
|
|
|
|
2002-03-09 23:29:33 +00:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(dsound);
|
1999-04-19 14:56:29 +00:00
|
|
|
|
2000-06-23 15:45:05 +00:00
|
|
|
/* these are eligible for tuning... they must be high on slow machines... */
|
2002-01-02 21:46:54 +00:00
|
|
|
/* some stuff may get more responsive with lower values though... */
|
2002-06-13 19:15:06 +00:00
|
|
|
#define DS_EMULDRIVER 0 /* some games (Quake 2, UT) refuse to accept
|
2002-05-31 23:06:46 +00:00
|
|
|
emulated dsound devices. set to 0 ! */
|
2002-01-02 21:46:54 +00:00
|
|
|
#define DS_HEL_MARGIN 5 /* HEL only: number of waveOut fragments ahead to mix in new buffers
|
|
|
|
* (keep this close or equal to DS_HEL_QUEUE for best results) */
|
|
|
|
#define DS_HEL_QUEUE 5 /* HEL only: number of waveOut fragments ahead to queue to driver
|
|
|
|
* (this will affect HEL sound reliability and latency) */
|
2000-06-23 15:45:05 +00:00
|
|
|
|
2002-01-02 21:46:54 +00:00
|
|
|
#define DS_SND_QUEUE_MAX 28 /* max number of fragments to prebuffer */
|
|
|
|
#define DS_SND_QUEUE_MIN 12 /* min number of fragments to prebuffer */
|
2000-06-24 12:54:49 +00:00
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
IDirectSoundImpl* dsound = NULL;
|
2000-06-01 22:47:35 +00:00
|
|
|
|
2003-02-15 00:01:17 +00:00
|
|
|
HRESULT mmErr(UINT err)
|
2000-06-23 15:45:05 +00:00
|
|
|
{
|
|
|
|
switch(err) {
|
|
|
|
case MMSYSERR_NOERROR:
|
|
|
|
return DS_OK;
|
|
|
|
case MMSYSERR_ALLOCATED:
|
|
|
|
return DSERR_ALLOCATED;
|
2003-03-04 02:12:34 +00:00
|
|
|
case MMSYSERR_ERROR:
|
2000-06-23 15:45:05 +00:00
|
|
|
case MMSYSERR_INVALHANDLE:
|
2003-02-15 00:01:17 +00:00
|
|
|
case WAVERR_STILLPLAYING:
|
2000-06-23 15:45:05 +00:00
|
|
|
return DSERR_GENERIC; /* FIXME */
|
|
|
|
case MMSYSERR_NODRIVER:
|
|
|
|
return DSERR_NODRIVER;
|
|
|
|
case MMSYSERR_NOMEM:
|
|
|
|
return DSERR_OUTOFMEMORY;
|
|
|
|
case MMSYSERR_INVALPARAM:
|
2003-02-15 00:01:17 +00:00
|
|
|
case WAVERR_BADFORMAT:
|
|
|
|
case WAVERR_UNPREPARED:
|
2000-06-23 15:45:05 +00:00
|
|
|
return DSERR_INVALIDPARAM;
|
2003-02-15 00:01:17 +00:00
|
|
|
case MMSYSERR_NOTSUPPORTED:
|
|
|
|
return DSERR_UNSUPPORTED;
|
2000-06-23 15:45:05 +00:00
|
|
|
default:
|
|
|
|
FIXME("Unknown MMSYS error %d\n",err);
|
|
|
|
return DSERR_GENERIC;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
int ds_emuldriver = DS_EMULDRIVER;
|
|
|
|
int ds_hel_margin = DS_HEL_MARGIN;
|
|
|
|
int ds_hel_queue = DS_HEL_QUEUE;
|
|
|
|
int ds_snd_queue_max = DS_SND_QUEUE_MAX;
|
|
|
|
int ds_snd_queue_min = DS_SND_QUEUE_MIN;
|
2003-03-06 22:46:34 +00:00
|
|
|
int ds_hw_accel = DS_HW_ACCEL_FULL;
|
2003-03-15 00:54:11 +00:00
|
|
|
int ds_default_playback = 0;
|
|
|
|
int ds_default_capture = 0;
|
2002-05-28 22:45:58 +00:00
|
|
|
|
2002-05-11 22:53:00 +00:00
|
|
|
/*
|
|
|
|
* Get a config key from either the app-specific or the default config
|
|
|
|
*/
|
|
|
|
|
|
|
|
inline static DWORD get_config_key( HKEY defkey, HKEY appkey, const char *name,
|
|
|
|
char *buffer, DWORD size )
|
|
|
|
{
|
|
|
|
if (appkey && !RegQueryValueExA( appkey, name, 0, NULL, buffer, &size )) return 0;
|
|
|
|
return RegQueryValueExA( defkey, name, 0, NULL, buffer, &size );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Setup the dsound options.
|
|
|
|
*/
|
|
|
|
|
2003-03-04 02:12:34 +00:00
|
|
|
void setup_dsound_options(void)
|
2002-05-11 22:53:00 +00:00
|
|
|
{
|
|
|
|
char buffer[MAX_PATH+1];
|
|
|
|
HKEY hkey, appkey = 0;
|
2002-05-31 23:06:46 +00:00
|
|
|
|
2002-05-11 22:53:00 +00:00
|
|
|
buffer[MAX_PATH]='\0';
|
2002-05-31 23:06:46 +00:00
|
|
|
|
2002-05-11 22:53:00 +00:00
|
|
|
if (RegCreateKeyExA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\dsound", 0, NULL,
|
|
|
|
REG_OPTION_VOLATILE, KEY_ALL_ACCESS, NULL, &hkey, NULL ))
|
|
|
|
{
|
|
|
|
ERR("Cannot create config registry key\n" );
|
|
|
|
ExitProcess(1);
|
|
|
|
}
|
|
|
|
|
2002-07-05 01:28:10 +00:00
|
|
|
if (GetModuleFileNameA( 0, buffer, MAX_PATH ))
|
2002-05-11 22:53:00 +00:00
|
|
|
{
|
|
|
|
HKEY tmpkey;
|
|
|
|
|
|
|
|
if (!RegOpenKeyA( HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\AppDefaults", &tmpkey ))
|
|
|
|
{
|
2002-06-13 19:15:06 +00:00
|
|
|
char appname[MAX_PATH+16];
|
|
|
|
char *p = strrchr( buffer, '\\' );
|
|
|
|
if (p!=NULL) {
|
|
|
|
appname[MAX_PATH]='\0';
|
|
|
|
strncpy(appname,p+1,MAX_PATH);
|
|
|
|
strcat(appname,"\\dsound");
|
|
|
|
TRACE("appname = [%s] \n",appname);
|
|
|
|
if (RegOpenKeyA( tmpkey, appname, &appkey )) appkey = 0;
|
|
|
|
RegCloseKey( tmpkey );
|
|
|
|
}
|
2002-05-11 22:53:00 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* get options */
|
|
|
|
|
2002-05-31 23:06:46 +00:00
|
|
|
if (!get_config_key( hkey, appkey, "EmulDriver", buffer, MAX_PATH ))
|
2002-05-28 22:45:58 +00:00
|
|
|
ds_emuldriver = strcmp(buffer, "N");
|
|
|
|
|
2002-05-31 23:06:46 +00:00
|
|
|
if (!get_config_key( hkey, appkey, "HELmargin", buffer, MAX_PATH ))
|
2002-05-11 22:53:00 +00:00
|
|
|
ds_hel_margin = atoi(buffer);
|
|
|
|
|
|
|
|
if (!get_config_key( hkey, appkey, "HELqueue", buffer, MAX_PATH ))
|
|
|
|
ds_hel_queue = atoi(buffer);
|
|
|
|
|
|
|
|
if (!get_config_key( hkey, appkey, "SndQueueMax", buffer, MAX_PATH ))
|
|
|
|
ds_snd_queue_max = atoi(buffer);
|
|
|
|
|
|
|
|
if (!get_config_key( hkey, appkey, "SndQueueMin", buffer, MAX_PATH ))
|
|
|
|
ds_snd_queue_min = atoi(buffer);
|
|
|
|
|
2003-03-06 22:46:34 +00:00
|
|
|
if (!get_config_key( hkey, appkey, "HardwareAcceleration", buffer, MAX_PATH )) {
|
|
|
|
if (strcmp(buffer, "Full") == 0)
|
|
|
|
ds_hw_accel = DS_HW_ACCEL_FULL;
|
|
|
|
else if (strcmp(buffer, "Standard") == 0)
|
|
|
|
ds_hw_accel = DS_HW_ACCEL_STANDARD;
|
|
|
|
else if (strcmp(buffer, "Basic") == 0)
|
|
|
|
ds_hw_accel = DS_HW_ACCEL_BASIC;
|
|
|
|
else if (strcmp(buffer, "Emulation") == 0)
|
|
|
|
ds_hw_accel = DS_HW_ACCEL_EMULATION;
|
|
|
|
}
|
|
|
|
|
2003-03-15 00:54:11 +00:00
|
|
|
if (!get_config_key( hkey, appkey, "DefaultPlayback", buffer, MAX_PATH ))
|
|
|
|
ds_default_playback = atoi(buffer);
|
|
|
|
|
|
|
|
if (!get_config_key( hkey, appkey, "DefaultCapture", buffer, MAX_PATH ))
|
|
|
|
ds_default_capture = atoi(buffer);
|
|
|
|
|
2002-05-11 22:53:00 +00:00
|
|
|
if (appkey) RegCloseKey( appkey );
|
|
|
|
RegCloseKey( hkey );
|
|
|
|
|
|
|
|
if (ds_emuldriver != DS_EMULDRIVER )
|
2002-06-13 19:15:06 +00:00
|
|
|
WARN("ds_emuldriver = %d (default=%d)\n",ds_emuldriver, DS_EMULDRIVER);
|
2002-05-31 23:06:46 +00:00
|
|
|
if (ds_hel_margin != DS_HEL_MARGIN )
|
2002-06-13 19:15:06 +00:00
|
|
|
WARN("ds_hel_margin = %d (default=%d)\n",ds_hel_margin, DS_HEL_MARGIN );
|
2002-05-11 22:53:00 +00:00
|
|
|
if (ds_hel_queue != DS_HEL_QUEUE )
|
2002-06-13 19:15:06 +00:00
|
|
|
WARN("ds_hel_queue = %d (default=%d)\n",ds_hel_queue, DS_HEL_QUEUE );
|
2002-05-11 22:53:00 +00:00
|
|
|
if (ds_snd_queue_max != DS_SND_QUEUE_MAX)
|
2002-06-13 19:15:06 +00:00
|
|
|
WARN("ds_snd_queue_max = %d (default=%d)\n",ds_snd_queue_max ,DS_SND_QUEUE_MAX);
|
2002-05-11 22:53:00 +00:00
|
|
|
if (ds_snd_queue_min != DS_SND_QUEUE_MIN)
|
2002-06-13 19:15:06 +00:00
|
|
|
WARN("ds_snd_queue_min = %d (default=%d)\n",ds_snd_queue_min ,DS_SND_QUEUE_MIN);
|
2003-03-06 22:46:34 +00:00
|
|
|
if (ds_hw_accel != DS_HW_ACCEL_FULL)
|
|
|
|
WARN("ds_hw_accel = %s (default=Full)\n",
|
|
|
|
ds_hw_accel==DS_HW_ACCEL_FULL ? "Full" :
|
|
|
|
ds_hw_accel==DS_HW_ACCEL_STANDARD ? "Standard" :
|
|
|
|
ds_hw_accel==DS_HW_ACCEL_BASIC ? "Basic" :
|
|
|
|
ds_hw_accel==DS_HW_ACCEL_EMULATION ? "Emulation" :
|
|
|
|
"Unknown");
|
2003-03-15 00:54:11 +00:00
|
|
|
if (ds_default_playback != 0)
|
|
|
|
WARN("ds_default_playback = %d (default=0)\n",ds_default_playback);
|
|
|
|
if (ds_default_capture != 0)
|
|
|
|
WARN("ds_default_capture = %d (default=0)\n",ds_default_playback);
|
2002-05-11 22:53:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-03-15 00:54:11 +00:00
|
|
|
/***************************************************************************
|
2003-05-02 20:16:48 +00:00
|
|
|
* GetDeviceID [DSOUND.9]
|
2003-03-15 00:54:11 +00:00
|
|
|
*
|
|
|
|
* Retrieves unique identifier of default device specified
|
|
|
|
*
|
2003-05-02 20:16:48 +00:00
|
|
|
* PARAMS
|
|
|
|
* pGuidSrc [I] Address of device GUID.
|
|
|
|
* pGuidDest [O] Address to receive unique device GUID.
|
|
|
|
*
|
2003-03-15 00:54:11 +00:00
|
|
|
* RETURNS
|
|
|
|
* Success: DS_OK
|
|
|
|
* Failure: DSERR_INVALIDPARAM
|
2003-05-02 20:16:48 +00:00
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* pGuidSrc is a valid device GUID or DSDEVID_DefaultPlayback,
|
|
|
|
* DSDEVID_DefaultCapture, DSDEVID_DefaultVoicePlayback, or
|
|
|
|
* DSDEVID_DefaultVoiceCapture.
|
|
|
|
* Returns pGuidSrc if pGuidSrc is a valid device or the device
|
|
|
|
* GUID for the specified constants.
|
2003-03-15 00:54:11 +00:00
|
|
|
*/
|
|
|
|
HRESULT WINAPI GetDeviceID(LPCGUID pGuidSrc, LPGUID pGuidDest)
|
|
|
|
{
|
2003-05-22 03:39:13 +00:00
|
|
|
TRACE("(%p,%p)\n",pGuidSrc,pGuidDest);
|
|
|
|
|
|
|
|
if ( pGuidSrc == NULL) {
|
|
|
|
WARN("invalid parameter: pGuidSrc == NULL\n");
|
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( pGuidDest == NULL ) {
|
|
|
|
WARN("invalid parameter: pGuidDest == NULL\n");
|
2003-03-15 00:54:11 +00:00
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( IsEqualGUID( &DSDEVID_DefaultPlayback, pGuidSrc ) ||
|
|
|
|
IsEqualGUID( &DSDEVID_DefaultVoicePlayback, pGuidSrc ) ) {
|
|
|
|
GUID guid;
|
|
|
|
int err = mmErr(waveOutMessage((HWAVEOUT)ds_default_playback,DRV_QUERYDSOUNDGUID,(DWORD)&guid,0));
|
|
|
|
if (err == DS_OK) {
|
|
|
|
memcpy(pGuidDest, &guid, sizeof(GUID));
|
|
|
|
return DS_OK;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( IsEqualGUID( &DSDEVID_DefaultCapture, pGuidSrc ) ||
|
|
|
|
IsEqualGUID( &DSDEVID_DefaultVoiceCapture, pGuidSrc ) ) {
|
|
|
|
GUID guid;
|
|
|
|
int err = mmErr(waveInMessage((HWAVEIN)ds_default_capture,DRV_QUERYDSOUNDGUID,(DWORD)&guid,0));
|
|
|
|
if (err == DS_OK) {
|
|
|
|
memcpy(pGuidDest, &guid, sizeof(GUID));
|
|
|
|
return DS_OK;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
memcpy(pGuidDest, pGuidSrc, sizeof(GUID));
|
|
|
|
|
|
|
|
return DS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-05-30 20:07:31 +00:00
|
|
|
/***************************************************************************
|
2002-05-31 23:06:46 +00:00
|
|
|
* DirectSoundEnumerateA [DSOUND.2]
|
2000-05-30 20:07:31 +00:00
|
|
|
*
|
|
|
|
* Enumerate all DirectSound drivers installed in the system
|
|
|
|
*
|
2003-05-02 20:16:48 +00:00
|
|
|
* PARAMS
|
|
|
|
* lpDSEnumCallback [I] Address of callback function.
|
|
|
|
* lpContext [I] Address of user defined context passed to callback function.
|
|
|
|
*
|
2000-05-30 20:07:31 +00:00
|
|
|
* RETURNS
|
|
|
|
* Success: DS_OK
|
|
|
|
* Failure: DSERR_INVALIDPARAM
|
2000-03-24 20:46:04 +00:00
|
|
|
*/
|
1999-02-26 11:11:13 +00:00
|
|
|
HRESULT WINAPI DirectSoundEnumerateA(
|
2003-03-15 00:54:11 +00:00
|
|
|
LPDSENUMCALLBACKA lpDSEnumCallback,
|
|
|
|
LPVOID lpContext)
|
1999-01-23 12:19:34 +00:00
|
|
|
{
|
2003-03-15 00:54:11 +00:00
|
|
|
unsigned devs, wod;
|
|
|
|
DSDRIVERDESC desc;
|
|
|
|
GUID guid;
|
|
|
|
int err;
|
|
|
|
|
|
|
|
TRACE("lpDSEnumCallback = %p, lpContext = %p\n",
|
|
|
|
lpDSEnumCallback, lpContext);
|
|
|
|
|
|
|
|
if (lpDSEnumCallback == NULL) {
|
2003-05-02 20:16:48 +00:00
|
|
|
WARN("invalid parameter: lpDSEnumCallback == NULL\n");
|
2003-03-15 00:54:11 +00:00
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
|
|
|
|
|
|
|
devs = waveOutGetNumDevs();
|
|
|
|
if (devs > 0) {
|
|
|
|
if (GetDeviceID(&DSDEVID_DefaultPlayback, &guid) == DS_OK) {
|
|
|
|
GUID temp;
|
|
|
|
for (wod = 0; wod < devs; ++wod) {
|
|
|
|
err = mmErr(waveOutMessage((HWAVEOUT)wod,DRV_QUERYDSOUNDGUID,(DWORD)&temp,0));
|
|
|
|
if (err == DS_OK) {
|
|
|
|
if (IsEqualGUID( &guid, &temp ) ) {
|
|
|
|
err = mmErr(waveOutMessage((HWAVEOUT)wod,DRV_QUERYDSOUNDDESC,(DWORD)&desc,0));
|
|
|
|
if (err == DS_OK) {
|
2003-10-01 03:05:25 +00:00
|
|
|
TRACE("calling lpDSEnumCallback(NULL,\"%s\",\"%s\",%p)\n",
|
|
|
|
"Primary Sound Driver",desc.szDrvName,lpContext);
|
2003-09-15 20:08:05 +00:00
|
|
|
if (lpDSEnumCallback(NULL, "Primary Sound Driver", desc.szDrvName, lpContext) == FALSE)
|
2003-03-15 00:54:11 +00:00
|
|
|
return DS_OK;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
for (wod = 0; wod < devs; ++wod) {
|
|
|
|
err = mmErr(waveOutMessage((HWAVEOUT)wod,DRV_QUERYDSOUNDDESC,(DWORD)&desc,0));
|
|
|
|
if (err == DS_OK) {
|
|
|
|
err = mmErr(waveOutMessage((HWAVEOUT)wod,DRV_QUERYDSOUNDGUID,(DWORD)&guid,0));
|
|
|
|
if (err == DS_OK) {
|
|
|
|
TRACE("calling lpDSEnumCallback(%s,\"%s\",\"%s\",%p)\n",
|
|
|
|
debugstr_guid(&guid),desc.szDesc,desc.szDrvName,lpContext);
|
|
|
|
if (lpDSEnumCallback(&guid, desc.szDesc, desc.szDrvName, lpContext) == FALSE)
|
|
|
|
return DS_OK;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return DS_OK;
|
Release 980104
Sat Jan 3 17:15:56 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/db_disasm.c]
Added cpuid and cmpxchg instructions.
* [if1632/builtin.c] [relay32/builtin32.c]
Fixed broken -dll option with Win32 DLLs.
* [include/heap.h]
Added SYSTEM_LOCK/SYSTEM_UNLOCK macros.
* [configure.in] [misc/lstr.c]
Added check for wctype.h.
Commented out --enable-ipc option (IPC code has been broken for a
long time anyway).
* [scheduler/critsection.c] [scheduler/event.c]
[scheduler/mutex.c] [scheduler/semaphore.c]
Implemented Win32 synchronization objects.
* [scheduler/synchro.c]
Implemented WaitForMultipleObjects and related functions.
* [scheduler/thread.c]
If possible, use clone() in CreateThread().
* [scheduler/thread.c] [scheduler/process.c]
Made thread and process waitable objects.
Thread and process id values are now different from the pointers
they represent.
* [win32/k32obj.c]
Moved to scheduler directory.
Added function table for waiting operations on objects.
* [files/file.c] [memory/virtual.c]
Added new K32OBJ function table.
Sun Jan 1 16:48:23 1997 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed my patch for GetTempFileName16() as needed.
It was ...Name32A() that didn't work properly, not ...Name16().
* [graphics/x11drv/brush.c]
Fixed a BadMatch error.
* [msdos/int21.c]
Fixed INT21_FindNextFCB() to get correct volume labels e.g.
in "file open" dialog.
* [multimedia/joystick.c] [relay32/winmm.spec]
Stub JoyGetPosEx().
* [scheduler/process.c] [relay32/kernel32.spec]
Implemented RegisterServiceProcess().
Wed Dec 31 11:14:43 1997 Lawson Whitney <lawson_whitney@juno.com>
* [if1632/kernel.spec] [if1632/relay.c]
Define CallProcEx32w - Thanks to Marcus Meissner for his excellent
CallProc32W.
* [loader/module.c]
Take a shot at defining FreeLibrary32W.
Sun Dec 28 12:44:04 1997 Kai Morich <kai.morich@rhein-neckar.netsurf.de>
* [controls/menu.c]
Menu modification from WM_INITMENUPOPUP message fixed.
Menu items now can have different wID and hSubMenu (Win95 behavior).
* [misc/cpu.c]
Improved IsProcessorFeaturePresent.
Sun Dec 28 03:21:08 1997 Ove Kaaven <ovek@main.arcticnet.no>
* [include/winsock.h] [misc/winsock.c]
Fixed WS_SOL_SOCKET for setsockopt(), and made select() return
empty fd_sets if timeout.
* [objects/palette.c]
AnimatePalette() bailed out if entire palette is animated. Fixed.
* [objects/dib.c]
Added some code to SetDIBitsToDevice() and its helpers to fix
some offseting problems.
* [objects/cursoricon.c]
Made CreateCursor32() convert the instance handle properly. Made
DestroyCursor() return correct success status.
Wed Dec 24 17:56:34 1997 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [windows/syscolor.c]
Added definition of GetSysColorPen16/32. This function does not
exist in the Win32 API but is a very close (and natural) relative
to GetSysColorBrush function. Moreover, it is *very* much used
within Wine since there are a lot of places where we need to draw
lines with the standard colors.
* [controls/button.c] [controls/combo.c] [controls/icontitle.c]
[controls/menu.c] [controls/progress.c] [controls/scroll.c]
[controls/updown.c] [graphics/painting.c] [misc/tweak.c]
[windows/defwnd.c] [windows/graphics.c] [windows/nonclient.c]
Replaced references to sysColorObjects with the appropriate
call to GetSysColorBrush32/GetSysColorPen32. There is no need to
expose the implementation of these functions, even within Wine.
This makes the code easier to understand, debug, maintain.
* [controls/uitools.c]
Modified most of the functions in this file to use the now
standard pens (i.e. GetSysColorPen32). These functions made
*heavy* use of standard pens so I expect a lot less
CreatePen/DeleteObject calls can do only good...:)
Plus some minor modifications (*no* functional changes though).
* [controls/updown.c]
Used the new DrawFrameControl32 function to paint the control.
I also deleted UDDOWN_DrawArrow since it was no longer required.
Tue Dec 23 00:03:33 1997 Steinar Hamre <steinarh@stud.fim.ntnu.no>
* [configure.in]
Added check for -lw.
* [include/wintypes.h] [tools/build.c]
Changes to make the assembly understandable for even sun as.
".ascii" -> ".string", "call %foo" -> "call *%foo",
"pushw/popw %[cdes]s" written out to ".byte 0x66\npushl/popl %[cdes]s".
* [memory/ldt.c]
#ifdef added so <sys/seg.h> will not be included on Solaris.
Mon Dec 22 18:55:19 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [configure.in]
Added XF86DGA check.
* [multimedia/dsound.c][relay32/dsound.spec][include/dsound.h]
Started DirectSound. Only stubs for now.
* [graphics/ddraw.c][include/ddraw.h][relay32/ddraw.spec]
Started to implement DirectDraw. Mostly stubs, some
testcases work. Requires the XF86DGA extension to XFree86.
(check demo/blizdemo.exe from the Diablo CD-ROM).
* [files/drive.c]
Return correct "CDFS" fsname so Diablo is a bit happier.
Sun Dec 21 21:45:48 1997 Kevin Cozens <kcozens@interlog.com>
* [misc/registry.c]
Fixed bugs in the routines which read the Windows '95 registry
files. Added extra information regarding the format of the Windows
'95 registry files.
1998-01-04 17:49:09 +00:00
|
|
|
}
|
|
|
|
|
2000-05-30 20:07:31 +00:00
|
|
|
/***************************************************************************
|
2002-05-31 23:06:46 +00:00
|
|
|
* DirectSoundEnumerateW [DSOUND.3]
|
2000-05-30 20:07:31 +00:00
|
|
|
*
|
|
|
|
* Enumerate all DirectSound drivers installed in the system
|
|
|
|
*
|
2003-05-02 20:16:48 +00:00
|
|
|
* PARAMS
|
|
|
|
* lpDSEnumCallback [I] Address of callback function.
|
|
|
|
* lpContext [I] Address of user defined context passed to callback function.
|
|
|
|
*
|
2000-05-30 20:07:31 +00:00
|
|
|
* RETURNS
|
|
|
|
* Success: DS_OK
|
|
|
|
* Failure: DSERR_INVALIDPARAM
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI DirectSoundEnumerateW(
|
2002-05-31 23:06:46 +00:00
|
|
|
LPDSENUMCALLBACKW lpDSEnumCallback,
|
2000-05-30 20:07:31 +00:00
|
|
|
LPVOID lpContext )
|
|
|
|
{
|
2003-04-03 18:03:01 +00:00
|
|
|
unsigned devs, wod;
|
|
|
|
DSDRIVERDESC desc;
|
|
|
|
GUID guid;
|
|
|
|
int err;
|
|
|
|
WCHAR wDesc[MAXPNAMELEN];
|
|
|
|
WCHAR wName[MAXPNAMELEN];
|
|
|
|
|
|
|
|
TRACE("lpDSEnumCallback = %p, lpContext = %p\n",
|
|
|
|
lpDSEnumCallback, lpContext);
|
|
|
|
|
|
|
|
if (lpDSEnumCallback == NULL) {
|
2003-05-02 20:16:48 +00:00
|
|
|
WARN("invalid parameter: lpDSEnumCallback == NULL\n");
|
2003-04-03 18:03:01 +00:00
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
|
|
|
|
|
|
|
devs = waveOutGetNumDevs();
|
|
|
|
if (devs > 0) {
|
|
|
|
if (GetDeviceID(&DSDEVID_DefaultPlayback, &guid) == DS_OK) {
|
|
|
|
GUID temp;
|
|
|
|
for (wod = 0; wod < devs; ++wod) {
|
|
|
|
err = mmErr(waveOutMessage((HWAVEOUT)wod,DRV_QUERYDSOUNDGUID,(DWORD)&temp,0));
|
|
|
|
if (err == DS_OK) {
|
|
|
|
if (IsEqualGUID( &guid, &temp ) ) {
|
|
|
|
err = mmErr(waveOutMessage((HWAVEOUT)wod,DRV_QUERYDSOUNDDESC,(DWORD)&desc,0));
|
|
|
|
if (err == DS_OK) {
|
2003-10-01 03:05:25 +00:00
|
|
|
TRACE("calling lpDSEnumCallback(NULL,\"%s\",\"%s\",%p)\n",
|
|
|
|
"Primary Sound Driver",desc.szDrvName,lpContext);
|
2003-04-03 18:03:01 +00:00
|
|
|
MultiByteToWideChar( CP_ACP, 0, "Primary Sound Driver", -1,
|
|
|
|
wDesc, sizeof(wDesc)/sizeof(WCHAR) );
|
|
|
|
MultiByteToWideChar( CP_ACP, 0, desc.szDrvName, -1,
|
|
|
|
wName, sizeof(wName)/sizeof(WCHAR) );
|
2003-09-15 20:08:05 +00:00
|
|
|
if (lpDSEnumCallback(NULL, wDesc, wName, lpContext) == FALSE)
|
2003-04-03 18:03:01 +00:00
|
|
|
return DS_OK;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2000-05-30 20:07:31 +00:00
|
|
|
|
2003-04-03 18:03:01 +00:00
|
|
|
for (wod = 0; wod < devs; ++wod) {
|
|
|
|
err = mmErr(waveOutMessage((HWAVEOUT)wod,DRV_QUERYDSOUNDDESC,(DWORD)&desc,0));
|
|
|
|
if (err == DS_OK) {
|
|
|
|
err = mmErr(waveOutMessage((HWAVEOUT)wod,DRV_QUERYDSOUNDGUID,(DWORD)&guid,0));
|
|
|
|
if (err == DS_OK) {
|
|
|
|
TRACE("calling lpDSEnumCallback(%s,\"%s\",\"%s\",%p)\n",
|
|
|
|
debugstr_guid(&guid),desc.szDesc,desc.szDrvName,lpContext);
|
|
|
|
MultiByteToWideChar( CP_ACP, 0, desc.szDesc, -1,
|
|
|
|
wDesc, sizeof(wDesc)/sizeof(WCHAR) );
|
|
|
|
MultiByteToWideChar( CP_ACP, 0, desc.szDrvName, -1,
|
|
|
|
wName, sizeof(wName)/sizeof(WCHAR) );
|
|
|
|
if (lpDSEnumCallback(&guid, wDesc, wName, lpContext) == FALSE)
|
|
|
|
return DS_OK;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return DS_OK;
|
2000-05-30 20:07:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
1998-01-18 18:01:49 +00:00
|
|
|
static void _dump_DSBCAPS(DWORD xmask) {
|
|
|
|
struct {
|
|
|
|
DWORD mask;
|
|
|
|
char *name;
|
|
|
|
} flags[] = {
|
|
|
|
#define FE(x) { x, #x },
|
|
|
|
FE(DSBCAPS_PRIMARYBUFFER)
|
|
|
|
FE(DSBCAPS_STATIC)
|
|
|
|
FE(DSBCAPS_LOCHARDWARE)
|
|
|
|
FE(DSBCAPS_LOCSOFTWARE)
|
2000-06-11 19:59:10 +00:00
|
|
|
FE(DSBCAPS_CTRL3D)
|
1998-01-18 18:01:49 +00:00
|
|
|
FE(DSBCAPS_CTRLFREQUENCY)
|
|
|
|
FE(DSBCAPS_CTRLPAN)
|
|
|
|
FE(DSBCAPS_CTRLVOLUME)
|
2000-06-11 19:59:10 +00:00
|
|
|
FE(DSBCAPS_CTRLPOSITIONNOTIFY)
|
1998-01-18 18:01:49 +00:00
|
|
|
FE(DSBCAPS_CTRLDEFAULT)
|
|
|
|
FE(DSBCAPS_CTRLALL)
|
|
|
|
FE(DSBCAPS_STICKYFOCUS)
|
2000-06-11 19:59:10 +00:00
|
|
|
FE(DSBCAPS_GLOBALFOCUS)
|
1998-01-18 18:01:49 +00:00
|
|
|
FE(DSBCAPS_GETCURRENTPOSITION2)
|
2000-06-11 19:59:10 +00:00
|
|
|
FE(DSBCAPS_MUTE3DATMAXDISTANCE)
|
|
|
|
#undef FE
|
1998-01-18 18:01:49 +00:00
|
|
|
};
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i=0;i<sizeof(flags)/sizeof(flags[0]);i++)
|
2000-03-26 18:18:26 +00:00
|
|
|
if ((flags[i].mask & xmask) == flags[i].mask)
|
2000-02-10 19:03:02 +00:00
|
|
|
DPRINTF("%s ",flags[i].name);
|
1998-01-18 18:01:49 +00:00
|
|
|
}
|
|
|
|
|
2001-06-13 19:36:10 +00:00
|
|
|
/*******************************************************************************
|
2002-06-13 19:15:06 +00:00
|
|
|
* IDirectSound
|
2001-06-13 19:36:10 +00:00
|
|
|
*/
|
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
static HRESULT WINAPI IDirectSoundImpl_SetCooperativeLevel(
|
|
|
|
LPDIRECTSOUND8 iface,HWND hwnd,DWORD level
|
2001-06-13 19:36:10 +00:00
|
|
|
) {
|
2002-06-13 19:15:06 +00:00
|
|
|
ICOM_THIS(IDirectSoundImpl,iface);
|
2004-04-19 02:58:45 +00:00
|
|
|
TRACE("(%p,%08lx,%ld(%s))\n",This,(DWORD)hwnd,level,
|
|
|
|
level == DSSCL_NORMAL ? "DSSCL_NORMAL" :
|
|
|
|
level == DSSCL_PRIORITY ? "DSSCL_PRIORITY" :
|
|
|
|
level == DSSCL_EXCLUSIVE ? "DSSCL_EXCLUSIVE" :
|
|
|
|
level == DSSCL_WRITEPRIMARY ? "DSSCL_WRITEPRIMARY" : "Unknown");
|
2001-06-13 19:36:10 +00:00
|
|
|
|
2003-06-27 22:22:15 +00:00
|
|
|
if (level==DSSCL_PRIORITY || level==DSSCL_EXCLUSIVE) {
|
|
|
|
FIXME("level=%s not fully supported\n",
|
|
|
|
level==DSSCL_PRIORITY ? "DSSCL_PRIORITY" : "DSSCL_EXCLUSIVE");
|
|
|
|
}
|
2001-06-13 19:36:10 +00:00
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
This->priolevel = level;
|
2001-06-13 19:36:10 +00:00
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
return DS_OK;
|
2001-06-13 19:36:10 +00:00
|
|
|
}
|
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
static HRESULT WINAPI IDirectSoundImpl_CreateSoundBuffer(
|
2004-01-09 22:06:54 +00:00
|
|
|
LPDIRECTSOUND8 iface,LPCDSBUFFERDESC dsbd,LPLPDIRECTSOUNDBUFFER8 ppdsb,LPUNKNOWN lpunk
|
2001-06-13 19:36:10 +00:00
|
|
|
) {
|
2002-06-13 19:15:06 +00:00
|
|
|
ICOM_THIS(IDirectSoundImpl,iface);
|
|
|
|
LPWAVEFORMATEX wfex;
|
2003-06-27 22:22:15 +00:00
|
|
|
HRESULT hres = DS_OK;
|
2001-06-13 19:36:10 +00:00
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
TRACE("(%p,%p,%p,%p)\n",This,dsbd,ppdsb,lpunk);
|
2001-06-13 19:36:10 +00:00
|
|
|
|
2003-05-22 03:39:13 +00:00
|
|
|
if (This == NULL) {
|
|
|
|
WARN("invalid parameter: This == NULL\n");
|
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (dsbd == NULL) {
|
|
|
|
WARN("invalid parameter: dsbd == NULL\n");
|
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
|
|
|
|
2004-04-19 02:58:45 +00:00
|
|
|
if (dsbd->dwSize != sizeof(DSBUFFERDESC) && dsbd->dwSize != sizeof(DSBUFFERDESC1)) {
|
|
|
|
WARN("invalid parameter: dsbd\n");
|
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
|
|
|
|
2003-05-22 03:39:13 +00:00
|
|
|
if (ppdsb == NULL) {
|
|
|
|
WARN("invalid parameter: ppdsb == NULL\n");
|
2002-06-13 19:15:06 +00:00
|
|
|
return DSERR_INVALIDPARAM;
|
2003-05-22 03:39:13 +00:00
|
|
|
}
|
2001-06-13 19:36:10 +00:00
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
if (TRACE_ON(dsound)) {
|
|
|
|
TRACE("(structsize=%ld)\n",dsbd->dwSize);
|
|
|
|
TRACE("(flags=0x%08lx:\n",dsbd->dwFlags);
|
|
|
|
_dump_DSBCAPS(dsbd->dwFlags);
|
|
|
|
DPRINTF(")\n");
|
|
|
|
TRACE("(bufferbytes=%ld)\n",dsbd->dwBufferBytes);
|
|
|
|
TRACE("(lpwfxFormat=%p)\n",dsbd->lpwfxFormat);
|
|
|
|
}
|
2001-06-13 19:36:10 +00:00
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
wfex = dsbd->lpwfxFormat;
|
2001-06-13 19:36:10 +00:00
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
if (wfex)
|
|
|
|
TRACE("(formattag=0x%04x,chans=%d,samplerate=%ld,"
|
|
|
|
"bytespersec=%ld,blockalign=%d,bitspersamp=%d,cbSize=%d)\n",
|
|
|
|
wfex->wFormatTag, wfex->nChannels, wfex->nSamplesPerSec,
|
|
|
|
wfex->nAvgBytesPerSec, wfex->nBlockAlign,
|
|
|
|
wfex->wBitsPerSample, wfex->cbSize);
|
|
|
|
|
2003-05-22 03:39:13 +00:00
|
|
|
if (dsbd->dwFlags & DSBCAPS_PRIMARYBUFFER) {
|
2003-09-01 23:58:43 +00:00
|
|
|
if (This->primary) {
|
|
|
|
WARN("Primary Buffer already created\n");
|
|
|
|
IDirectSoundBuffer_AddRef((LPDIRECTSOUNDBUFFER8)(This->primary));
|
|
|
|
*ppdsb = (LPDIRECTSOUNDBUFFER8)(This->primary);
|
|
|
|
} else {
|
2003-06-27 22:22:15 +00:00
|
|
|
This->dsbd = *dsbd;
|
2003-09-01 23:58:43 +00:00
|
|
|
hres = PrimaryBufferImpl_Create(This, (PrimaryBufferImpl**)&(This->primary), &(This->dsbd));
|
|
|
|
if (This->primary) {
|
|
|
|
IDirectSoundBuffer_AddRef((LPDIRECTSOUNDBUFFER8)(This->primary));
|
|
|
|
*ppdsb = (LPDIRECTSOUNDBUFFER8)(This->primary);
|
|
|
|
} else
|
|
|
|
WARN("PrimaryBufferImpl_Create failed\n");
|
2003-06-27 22:22:15 +00:00
|
|
|
}
|
2003-05-22 03:39:13 +00:00
|
|
|
} else {
|
2003-09-01 23:58:43 +00:00
|
|
|
IDirectSoundBufferImpl * dsb;
|
|
|
|
hres = IDirectSoundBufferImpl_Create(This, (IDirectSoundBufferImpl**)&dsb, dsbd);
|
|
|
|
if (dsb) {
|
|
|
|
hres = SecondaryBufferImpl_Create(dsb, (SecondaryBufferImpl**)ppdsb);
|
|
|
|
if (*ppdsb) {
|
|
|
|
dsb->dsb = (SecondaryBufferImpl*)*ppdsb;
|
|
|
|
IDirectSoundBuffer_AddRef((LPDIRECTSOUNDBUFFER8)*ppdsb);
|
|
|
|
} else
|
|
|
|
WARN("SecondaryBufferImpl_Create failed\n");
|
|
|
|
} else
|
|
|
|
WARN("IDirectSoundBufferImpl_Create failed\n");
|
2003-05-22 03:39:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return hres;
|
2001-06-13 19:36:10 +00:00
|
|
|
}
|
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
static HRESULT WINAPI IDirectSoundImpl_DuplicateSoundBuffer(
|
2003-09-01 23:58:43 +00:00
|
|
|
LPDIRECTSOUND8 iface,LPDIRECTSOUNDBUFFER8 psb,LPLPDIRECTSOUNDBUFFER8 ppdsb
|
2002-06-13 19:15:06 +00:00
|
|
|
) {
|
|
|
|
ICOM_THIS(IDirectSoundImpl,iface);
|
2003-09-01 23:58:43 +00:00
|
|
|
IDirectSoundBufferImpl* pdsb;
|
2003-05-22 03:39:13 +00:00
|
|
|
IDirectSoundBufferImpl* dsb;
|
2003-09-01 23:58:43 +00:00
|
|
|
HRESULT hres = DS_OK;
|
|
|
|
TRACE("(%p,%p,%p)\n",This,psb,ppdsb);
|
2003-05-22 03:39:13 +00:00
|
|
|
|
|
|
|
if (This == NULL) {
|
|
|
|
WARN("invalid parameter: This == NULL\n");
|
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
|
|
|
|
2003-09-01 23:58:43 +00:00
|
|
|
if (psb == NULL) {
|
|
|
|
WARN("invalid parameter: psb == NULL\n");
|
2003-05-22 03:39:13 +00:00
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (ppdsb == NULL) {
|
|
|
|
WARN("invalid parameter: ppdsb == NULL\n");
|
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
2001-06-13 19:36:10 +00:00
|
|
|
|
2003-09-01 23:58:43 +00:00
|
|
|
/* FIXME: hack to make sure we have a secondary buffer */
|
|
|
|
if ((DWORD)((SecondaryBufferImpl *)psb)->dsb == (DWORD)This) {
|
2002-06-13 19:15:06 +00:00
|
|
|
ERR("trying to duplicate primary buffer\n");
|
2003-05-22 03:39:13 +00:00
|
|
|
*ppdsb = NULL;
|
2002-06-13 19:15:06 +00:00
|
|
|
return DSERR_INVALIDCALL;
|
|
|
|
}
|
1998-11-22 15:08:48 +00:00
|
|
|
|
2003-09-01 23:58:43 +00:00
|
|
|
pdsb = ((SecondaryBufferImpl *)psb)->dsb;
|
|
|
|
|
2003-05-22 03:39:13 +00:00
|
|
|
dsb = (IDirectSoundBufferImpl*)HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(*dsb));
|
2001-06-13 19:36:10 +00:00
|
|
|
|
2003-05-22 03:39:13 +00:00
|
|
|
if (dsb == NULL) {
|
|
|
|
WARN("out of memory\n");
|
|
|
|
*ppdsb = NULL;
|
|
|
|
return DSERR_OUTOFMEMORY;
|
|
|
|
}
|
2000-07-15 21:33:38 +00:00
|
|
|
|
2003-09-01 23:58:43 +00:00
|
|
|
memcpy(dsb, pdsb, sizeof(IDirectSoundBufferImpl));
|
2004-02-06 05:21:37 +00:00
|
|
|
|
|
|
|
if (pdsb->hwbuf) {
|
|
|
|
TRACE("duplicating hardware buffer\n");
|
|
|
|
|
|
|
|
hres = IDsDriver_DuplicateSoundBuffer(This->driver, pdsb->hwbuf, (LPVOID *)&dsb->hwbuf);
|
|
|
|
if (hres != DS_OK) {
|
|
|
|
TRACE("IDsDriver_DuplicateSoundBuffer failed, falling back to software buffer\n");
|
|
|
|
dsb->hwbuf = NULL;
|
|
|
|
/* allocate buffer */
|
|
|
|
if (This->drvdesc.dwFlags & DSDDESC_USESYSTEMMEMORY) {
|
|
|
|
dsb->buffer = HeapAlloc(GetProcessHeap(),0,sizeof(*(dsb->buffer)));
|
|
|
|
if (dsb->buffer == NULL) {
|
|
|
|
WARN("out of memory\n");
|
|
|
|
HeapFree(GetProcessHeap(),0,dsb);
|
|
|
|
*ppdsb = NULL;
|
|
|
|
return DSERR_OUTOFMEMORY;
|
|
|
|
}
|
|
|
|
|
|
|
|
dsb->buffer->memory = (LPBYTE)HeapAlloc(GetProcessHeap(),0,dsb->buflen);
|
|
|
|
if (dsb->buffer->memory == NULL) {
|
|
|
|
WARN("out of memory\n");
|
|
|
|
HeapFree(GetProcessHeap(),0,dsb->buffer);
|
|
|
|
HeapFree(GetProcessHeap(),0,dsb);
|
|
|
|
*ppdsb = NULL;
|
|
|
|
return DSERR_OUTOFMEMORY;
|
|
|
|
}
|
|
|
|
dsb->buffer->ref = 1;
|
|
|
|
|
|
|
|
/* FIXME: copy buffer ? */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
dsb->hwbuf = NULL;
|
|
|
|
dsb->buffer->ref++;
|
|
|
|
}
|
|
|
|
|
2003-09-01 23:58:43 +00:00
|
|
|
dsb->ref = 0;
|
2003-05-22 03:39:13 +00:00
|
|
|
dsb->state = STATE_STOPPED;
|
|
|
|
dsb->playpos = 0;
|
|
|
|
dsb->buf_mixpos = 0;
|
|
|
|
dsb->dsound = This;
|
2003-06-27 22:22:15 +00:00
|
|
|
dsb->ds3db = NULL;
|
2003-05-22 03:39:13 +00:00
|
|
|
dsb->iks = NULL; /* FIXME? */
|
2003-09-01 23:58:43 +00:00
|
|
|
dsb->dsb = NULL;
|
|
|
|
memcpy(&(dsb->wfx), &(pdsb->wfx), sizeof(dsb->wfx));
|
2003-05-22 03:39:13 +00:00
|
|
|
InitializeCriticalSection(&(dsb->lock));
|
2002-06-13 19:15:06 +00:00
|
|
|
/* register buffer */
|
|
|
|
RtlAcquireResourceExclusive(&(This->lock), TRUE);
|
|
|
|
{
|
2003-10-14 05:24:20 +00:00
|
|
|
IDirectSoundBufferImpl **newbuffers;
|
|
|
|
if (This->buffers)
|
|
|
|
newbuffers = (IDirectSoundBufferImpl**)HeapReAlloc(GetProcessHeap(),0,This->buffers,sizeof(IDirectSoundBufferImpl**)*(This->nrofbuffers+1));
|
|
|
|
else
|
|
|
|
newbuffers = (IDirectSoundBufferImpl**)HeapAlloc(GetProcessHeap(),0,sizeof(IDirectSoundBufferImpl**)*(This->nrofbuffers+1));
|
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
if (newbuffers) {
|
|
|
|
This->buffers = newbuffers;
|
2003-05-22 03:39:13 +00:00
|
|
|
This->buffers[This->nrofbuffers] = dsb;
|
2002-06-13 19:15:06 +00:00
|
|
|
This->nrofbuffers++;
|
|
|
|
TRACE("buffer count is now %d\n", This->nrofbuffers);
|
|
|
|
} else {
|
|
|
|
ERR("out of memory for buffer list! Current buffer count is %d\n", This->nrofbuffers);
|
2003-09-01 23:58:43 +00:00
|
|
|
IDirectSoundBuffer8_Release(psb);
|
2003-05-22 03:39:13 +00:00
|
|
|
DeleteCriticalSection(&(dsb->lock));
|
|
|
|
RtlReleaseResource(&(This->lock));
|
|
|
|
HeapFree(GetProcessHeap(),0,dsb);
|
|
|
|
*ppdsb = 0;
|
|
|
|
return DSERR_OUTOFMEMORY;
|
2002-06-13 19:15:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
RtlReleaseResource(&(This->lock));
|
|
|
|
IDirectSound_AddRef(iface);
|
2003-09-01 23:58:43 +00:00
|
|
|
hres = SecondaryBufferImpl_Create(dsb, (SecondaryBufferImpl**)ppdsb);
|
|
|
|
if (*ppdsb) {
|
|
|
|
dsb->dsb = (SecondaryBufferImpl*)*ppdsb;
|
|
|
|
IDirectSoundBuffer_AddRef((LPDIRECTSOUNDBUFFER8)*ppdsb);
|
|
|
|
} else
|
|
|
|
WARN("SecondaryBufferImpl_Create failed\n");
|
1998-11-22 15:08:48 +00:00
|
|
|
|
2003-09-01 23:58:43 +00:00
|
|
|
return hres;
|
|
|
|
}
|
2000-05-30 20:49:37 +00:00
|
|
|
|
2003-05-22 03:39:13 +00:00
|
|
|
static HRESULT WINAPI IDirectSoundImpl_GetCaps(LPDIRECTSOUND8 iface,LPDSCAPS lpDSCaps) {
|
2002-06-13 19:15:06 +00:00
|
|
|
ICOM_THIS(IDirectSoundImpl,iface);
|
2003-05-22 03:39:13 +00:00
|
|
|
TRACE("(%p,%p)\n",This,lpDSCaps);
|
2000-05-30 20:49:37 +00:00
|
|
|
|
2003-05-22 03:39:13 +00:00
|
|
|
if (This == NULL) {
|
|
|
|
WARN("invalid parameter: This == NULL\n");
|
2002-06-13 19:15:06 +00:00
|
|
|
return DSERR_INVALIDPARAM;
|
2003-05-22 03:39:13 +00:00
|
|
|
}
|
1998-11-22 15:08:48 +00:00
|
|
|
|
2003-05-22 03:39:13 +00:00
|
|
|
if (lpDSCaps == NULL) {
|
|
|
|
WARN("invalid parameter: lpDSCaps = NULL\n");
|
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
2000-05-30 20:49:37 +00:00
|
|
|
|
2003-05-22 03:39:13 +00:00
|
|
|
/* check is there is enough room */
|
|
|
|
if (lpDSCaps->dwSize < sizeof(*lpDSCaps)) {
|
|
|
|
WARN("invalid parameter: lpDSCaps->dwSize = %ld < %d\n",
|
|
|
|
lpDSCaps->dwSize, sizeof(*lpDSCaps));
|
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
1998-11-22 15:08:48 +00:00
|
|
|
|
2003-09-03 19:28:20 +00:00
|
|
|
lpDSCaps->dwFlags = This->drvcaps.dwFlags;
|
2003-05-22 03:39:13 +00:00
|
|
|
TRACE("(flags=0x%08lx)\n",lpDSCaps->dwFlags);
|
1998-11-22 15:08:48 +00:00
|
|
|
|
2003-09-03 19:28:20 +00:00
|
|
|
lpDSCaps->dwMinSecondarySampleRate = This->drvcaps.dwMinSecondarySampleRate;
|
|
|
|
lpDSCaps->dwMaxSecondarySampleRate = This->drvcaps.dwMaxSecondarySampleRate;
|
1998-11-22 15:08:48 +00:00
|
|
|
|
2003-09-03 19:28:20 +00:00
|
|
|
lpDSCaps->dwPrimaryBuffers = This->drvcaps.dwPrimaryBuffers;
|
1998-11-22 15:08:48 +00:00
|
|
|
|
2003-09-03 19:28:20 +00:00
|
|
|
lpDSCaps->dwMaxHwMixingAllBuffers = This->drvcaps.dwMaxHwMixingAllBuffers;
|
|
|
|
lpDSCaps->dwMaxHwMixingStaticBuffers = This->drvcaps.dwMaxHwMixingStaticBuffers;
|
|
|
|
lpDSCaps->dwMaxHwMixingStreamingBuffers = This->drvcaps.dwMaxHwMixingStreamingBuffers;
|
2002-06-13 19:15:06 +00:00
|
|
|
|
2003-09-03 19:28:20 +00:00
|
|
|
lpDSCaps->dwFreeHwMixingAllBuffers = This->drvcaps.dwFreeHwMixingAllBuffers;
|
|
|
|
lpDSCaps->dwFreeHwMixingStaticBuffers = This->drvcaps.dwFreeHwMixingStaticBuffers;
|
|
|
|
lpDSCaps->dwFreeHwMixingStreamingBuffers = This->drvcaps.dwFreeHwMixingStreamingBuffers;
|
2002-06-13 19:15:06 +00:00
|
|
|
|
2003-09-03 19:28:20 +00:00
|
|
|
lpDSCaps->dwMaxHw3DAllBuffers = This->drvcaps.dwMaxHw3DAllBuffers;
|
|
|
|
lpDSCaps->dwMaxHw3DStaticBuffers = This->drvcaps.dwMaxHw3DStaticBuffers;
|
|
|
|
lpDSCaps->dwMaxHw3DStreamingBuffers = This->drvcaps.dwMaxHw3DStreamingBuffers;
|
2002-06-13 19:15:06 +00:00
|
|
|
|
2003-09-03 19:28:20 +00:00
|
|
|
lpDSCaps->dwFreeHw3DAllBuffers = This->drvcaps.dwFreeHw3DAllBuffers;
|
|
|
|
lpDSCaps->dwFreeHw3DStaticBuffers = This->drvcaps.dwFreeHw3DStaticBuffers;
|
|
|
|
lpDSCaps->dwFreeHw3DStreamingBuffers = This->drvcaps.dwFreeHw3DStreamingBuffers;
|
2002-06-13 19:15:06 +00:00
|
|
|
|
2003-09-03 19:28:20 +00:00
|
|
|
lpDSCaps->dwTotalHwMemBytes = This->drvcaps.dwTotalHwMemBytes;
|
2002-06-13 19:15:06 +00:00
|
|
|
|
2003-09-03 19:28:20 +00:00
|
|
|
lpDSCaps->dwFreeHwMemBytes = This->drvcaps.dwFreeHwMemBytes;
|
2002-06-13 19:15:06 +00:00
|
|
|
|
2003-09-03 19:28:20 +00:00
|
|
|
lpDSCaps->dwMaxContigFreeHwMemBytes = This->drvcaps.dwMaxContigFreeHwMemBytes;
|
2003-05-22 03:39:13 +00:00
|
|
|
|
2003-09-03 19:28:20 +00:00
|
|
|
/* driver doesn't have these */
|
2003-05-22 03:39:13 +00:00
|
|
|
lpDSCaps->dwUnlockTransferRateHwBuffers = 4096; /* But we have none... */
|
|
|
|
|
|
|
|
lpDSCaps->dwPlayCpuOverheadSwBuffers = 1; /* 1% */
|
1998-11-22 15:08:48 +00:00
|
|
|
|
|
|
|
return DS_OK;
|
|
|
|
}
|
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
static ULONG WINAPI IDirectSoundImpl_AddRef(LPDIRECTSOUND8 iface) {
|
|
|
|
ICOM_THIS(IDirectSoundImpl,iface);
|
2003-06-27 22:22:15 +00:00
|
|
|
TRACE("(%p) ref was %ld, thread is %04lx\n", This, This->ref, GetCurrentThreadId());
|
|
|
|
return InterlockedIncrement(&This->ref);
|
1998-11-22 15:08:48 +00:00
|
|
|
}
|
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
static ULONG WINAPI IDirectSoundImpl_Release(LPDIRECTSOUND8 iface) {
|
|
|
|
ICOM_THIS(IDirectSoundImpl,iface);
|
2003-06-27 22:22:15 +00:00
|
|
|
ULONG ulReturn;
|
|
|
|
|
|
|
|
TRACE("(%p) ref was %ld, thread is %04lx\n", This, This->ref, GetCurrentThreadId());
|
|
|
|
ulReturn = InterlockedDecrement(&This->ref);
|
|
|
|
if (ulReturn == 0) {
|
|
|
|
HRESULT hres;
|
2002-06-13 19:15:06 +00:00
|
|
|
UINT i;
|
|
|
|
|
|
|
|
timeKillEvent(This->timerID);
|
|
|
|
timeEndPeriod(DS_TIME_RES);
|
2003-06-27 22:22:15 +00:00
|
|
|
/* wait for timer to expire */
|
|
|
|
Sleep(DS_TIME_RES+1);
|
|
|
|
|
|
|
|
RtlAcquireResourceShared(&(This->lock), TRUE);
|
2002-06-13 19:15:06 +00:00
|
|
|
|
|
|
|
if (This->buffers) {
|
|
|
|
for( i=0;i<This->nrofbuffers;i++)
|
|
|
|
IDirectSoundBuffer8_Release((LPDIRECTSOUNDBUFFER8)This->buffers[i]);
|
|
|
|
}
|
|
|
|
|
2003-06-27 22:22:15 +00:00
|
|
|
RtlReleaseResource(&(This->lock));
|
2003-07-28 19:01:20 +00:00
|
|
|
|
2003-09-01 23:58:43 +00:00
|
|
|
if (This->primary) {
|
|
|
|
WARN("primary buffer not released\n");
|
2003-07-28 19:01:20 +00:00
|
|
|
IDirectSoundBuffer8_Release((LPDIRECTSOUNDBUFFER8)This->primary);
|
2003-09-01 23:58:43 +00:00
|
|
|
}
|
2003-06-27 22:22:15 +00:00
|
|
|
|
2003-05-22 03:39:13 +00:00
|
|
|
hres = DSOUND_PrimaryDestroy(This);
|
|
|
|
if (hres != DS_OK)
|
|
|
|
WARN("DSOUND_PrimaryDestroy failed\n");
|
2002-06-13 19:15:06 +00:00
|
|
|
|
2003-06-27 22:22:15 +00:00
|
|
|
if (This->driver)
|
2002-06-13 19:15:06 +00:00
|
|
|
IDsDriver_Close(This->driver);
|
2003-06-27 22:22:15 +00:00
|
|
|
|
|
|
|
if (This->drvdesc.dwFlags & DSDDESC_DOMMSYSTEMOPEN)
|
2002-06-13 19:15:06 +00:00
|
|
|
waveOutClose(This->hwo);
|
2003-06-27 22:22:15 +00:00
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
if (This->driver)
|
|
|
|
IDsDriver_Release(This->driver);
|
|
|
|
|
2003-06-27 22:22:15 +00:00
|
|
|
RtlDeleteResource(&This->lock);
|
|
|
|
DeleteCriticalSection(&This->mixlock);
|
2002-06-13 19:15:06 +00:00
|
|
|
HeapFree(GetProcessHeap(),0,This);
|
|
|
|
dsound = NULL;
|
2003-09-01 23:58:43 +00:00
|
|
|
TRACE("(%p) released\n",This);
|
2002-06-13 19:15:06 +00:00
|
|
|
}
|
2003-09-01 23:58:43 +00:00
|
|
|
|
2003-06-27 22:22:15 +00:00
|
|
|
return ulReturn;
|
1998-11-22 15:08:48 +00:00
|
|
|
}
|
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
static HRESULT WINAPI IDirectSoundImpl_SetSpeakerConfig(
|
|
|
|
LPDIRECTSOUND8 iface,DWORD config
|
|
|
|
) {
|
|
|
|
ICOM_THIS(IDirectSoundImpl,iface);
|
2003-09-01 23:58:43 +00:00
|
|
|
TRACE("(%p,0x%08lx)\n",This,config);
|
|
|
|
|
|
|
|
This->speaker_config = config;
|
|
|
|
|
|
|
|
WARN("not fully functional\n");
|
1998-11-22 15:08:48 +00:00
|
|
|
return DS_OK;
|
|
|
|
}
|
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
static HRESULT WINAPI IDirectSoundImpl_QueryInterface(
|
|
|
|
LPDIRECTSOUND8 iface,REFIID riid,LPVOID *ppobj
|
|
|
|
) {
|
|
|
|
ICOM_THIS(IDirectSoundImpl,iface);
|
2003-06-27 22:22:15 +00:00
|
|
|
TRACE("(%p,%s,%p)\n",This,debugstr_guid(riid),ppobj);
|
|
|
|
|
2003-08-06 22:57:24 +00:00
|
|
|
if (ppobj == NULL) {
|
|
|
|
WARN("invalid parameter\n");
|
|
|
|
return E_INVALIDARG;
|
|
|
|
}
|
|
|
|
|
2003-06-27 22:22:15 +00:00
|
|
|
*ppobj = NULL; /* assume failure */
|
|
|
|
|
|
|
|
if ( IsEqualGUID(riid, &IID_IUnknown) ||
|
|
|
|
IsEqualGUID(riid, &IID_IDirectSound) ||
|
|
|
|
IsEqualGUID(riid, &IID_IDirectSound8) ) {
|
|
|
|
IDirectSound8_AddRef((LPDIRECTSOUND8)This);
|
|
|
|
*ppobj = This;
|
|
|
|
return S_OK;
|
|
|
|
}
|
2002-06-13 19:15:06 +00:00
|
|
|
|
|
|
|
if ( IsEqualGUID( &IID_IDirectSound3DListener, riid ) ) {
|
2003-06-27 22:22:15 +00:00
|
|
|
WARN("app requested IDirectSound3DListener on dsound object\n");
|
|
|
|
return E_NOINTERFACE;
|
2002-06-13 19:15:06 +00:00
|
|
|
}
|
|
|
|
|
2003-06-27 22:22:15 +00:00
|
|
|
FIXME( "Unknown IID %s\n", debugstr_guid( riid ) );
|
2002-06-13 19:15:06 +00:00
|
|
|
return E_NOINTERFACE;
|
1998-11-22 15:08:48 +00:00
|
|
|
}
|
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
static HRESULT WINAPI IDirectSoundImpl_Compact(
|
|
|
|
LPDIRECTSOUND8 iface)
|
1998-11-22 15:08:48 +00:00
|
|
|
{
|
2002-06-13 19:15:06 +00:00
|
|
|
ICOM_THIS(IDirectSoundImpl,iface);
|
|
|
|
TRACE("(%p)\n", This);
|
1998-11-22 15:08:48 +00:00
|
|
|
return DS_OK;
|
|
|
|
}
|
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
static HRESULT WINAPI IDirectSoundImpl_GetSpeakerConfig(
|
|
|
|
LPDIRECTSOUND8 iface,
|
|
|
|
LPDWORD lpdwSpeakerConfig)
|
1998-11-22 15:08:48 +00:00
|
|
|
{
|
2002-06-13 19:15:06 +00:00
|
|
|
ICOM_THIS(IDirectSoundImpl,iface);
|
|
|
|
TRACE("(%p, %p)\n", This, lpdwSpeakerConfig);
|
2003-09-01 23:58:43 +00:00
|
|
|
|
|
|
|
if (lpdwSpeakerConfig == NULL) {
|
|
|
|
WARN("invalid parameter\n");
|
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
|
|
|
|
|
|
|
WARN("not fully functional\n");
|
|
|
|
|
|
|
|
*lpdwSpeakerConfig = This->speaker_config;
|
|
|
|
|
1998-11-22 15:08:48 +00:00
|
|
|
return DS_OK;
|
|
|
|
}
|
2002-06-13 19:15:06 +00:00
|
|
|
|
|
|
|
static HRESULT WINAPI IDirectSoundImpl_Initialize(
|
|
|
|
LPDIRECTSOUND8 iface,
|
|
|
|
LPCGUID lpcGuid)
|
1998-11-22 15:08:48 +00:00
|
|
|
{
|
2002-06-13 19:15:06 +00:00
|
|
|
ICOM_THIS(IDirectSoundImpl,iface);
|
2003-05-22 03:39:13 +00:00
|
|
|
TRACE("(%p, %s)\n", This, debugstr_guid(lpcGuid));
|
1998-11-22 15:08:48 +00:00
|
|
|
return DS_OK;
|
|
|
|
}
|
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
static HRESULT WINAPI IDirectSoundImpl_VerifyCertification(
|
|
|
|
LPDIRECTSOUND8 iface,
|
|
|
|
LPDWORD pdwCertified)
|
1998-11-22 15:08:48 +00:00
|
|
|
{
|
2002-06-13 19:15:06 +00:00
|
|
|
ICOM_THIS(IDirectSoundImpl,iface);
|
|
|
|
TRACE("(%p, %p)\n", This, pdwCertified);
|
|
|
|
*pdwCertified = DS_CERTIFIED;
|
1998-11-22 15:08:48 +00:00
|
|
|
return DS_OK;
|
|
|
|
}
|
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
static ICOM_VTABLE(IDirectSound8) dsvt =
|
1998-11-22 15:08:48 +00:00
|
|
|
{
|
2002-06-13 19:15:06 +00:00
|
|
|
ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
|
|
|
|
IDirectSoundImpl_QueryInterface,
|
|
|
|
IDirectSoundImpl_AddRef,
|
|
|
|
IDirectSoundImpl_Release,
|
|
|
|
IDirectSoundImpl_CreateSoundBuffer,
|
|
|
|
IDirectSoundImpl_GetCaps,
|
|
|
|
IDirectSoundImpl_DuplicateSoundBuffer,
|
|
|
|
IDirectSoundImpl_SetCooperativeLevel,
|
|
|
|
IDirectSoundImpl_Compact,
|
|
|
|
IDirectSoundImpl_GetSpeakerConfig,
|
|
|
|
IDirectSoundImpl_SetSpeakerConfig,
|
|
|
|
IDirectSoundImpl_Initialize,
|
|
|
|
IDirectSoundImpl_VerifyCertification
|
|
|
|
};
|
2002-01-02 21:46:54 +00:00
|
|
|
|
|
|
|
|
2000-03-24 20:46:04 +00:00
|
|
|
/*******************************************************************************
|
2001-06-19 18:20:47 +00:00
|
|
|
* DirectSoundCreate (DSOUND.1)
|
2003-05-02 20:16:48 +00:00
|
|
|
*
|
|
|
|
* Creates and initializes a DirectSound interface.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* lpcGUID [I] Address of the GUID that identifies the sound device.
|
|
|
|
* ppDS [O] Address of a variable to receive the interface pointer.
|
|
|
|
* pUnkOuter [I] Must be NULL.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: DS_OK
|
|
|
|
* Failure: DSERR_ALLOCATED, DSERR_INVALIDPARAM, DSERR_NOAGGREGATION,
|
|
|
|
* DSERR_NODRIVER, DSERR_OUTOFMEMORY
|
2000-03-24 20:46:04 +00:00
|
|
|
*/
|
2003-03-15 00:54:11 +00:00
|
|
|
HRESULT WINAPI DirectSoundCreate8(LPCGUID lpcGUID,LPDIRECTSOUND8 *ppDS,IUnknown *pUnkOuter )
|
1998-11-22 15:08:48 +00:00
|
|
|
{
|
1999-04-11 11:51:48 +00:00
|
|
|
IDirectSoundImpl** ippDS=(IDirectSoundImpl**)ppDS;
|
2000-06-23 15:45:05 +00:00
|
|
|
PIDSDRIVER drv = NULL;
|
|
|
|
unsigned wod, wodn;
|
2003-03-15 00:54:11 +00:00
|
|
|
HRESULT err = DSERR_INVALIDPARAM;
|
|
|
|
GUID devGuid;
|
2003-05-02 21:22:49 +00:00
|
|
|
BOOLEAN found = FALSE;
|
1998-12-01 12:57:31 +00:00
|
|
|
|
2003-05-02 21:22:49 +00:00
|
|
|
TRACE("(%s,%p,%p)\n",debugstr_guid(lpcGUID),ippDS,pUnkOuter);
|
|
|
|
|
2003-04-05 05:11:02 +00:00
|
|
|
if (ippDS == NULL) {
|
2003-05-22 03:39:13 +00:00
|
|
|
WARN("invalid parameter: ippDS == NULL\n");
|
1998-12-01 12:57:31 +00:00
|
|
|
return DSERR_INVALIDPARAM;
|
2003-04-05 05:11:02 +00:00
|
|
|
}
|
1998-12-01 12:57:31 +00:00
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
/* Get dsound configuration */
|
|
|
|
setup_dsound_options();
|
2002-05-11 22:53:00 +00:00
|
|
|
|
2003-03-15 00:54:11 +00:00
|
|
|
/* Default device? */
|
2003-05-04 02:24:36 +00:00
|
|
|
if (!lpcGUID || IsEqualGUID(lpcGUID, &GUID_NULL))
|
2003-03-15 00:54:11 +00:00
|
|
|
lpcGUID = &DSDEVID_DefaultPlayback;
|
|
|
|
|
|
|
|
if (GetDeviceID(lpcGUID, &devGuid) != DS_OK) {
|
2003-05-22 03:39:13 +00:00
|
|
|
WARN("invalid parameter: lpcGUID\n");
|
|
|
|
*ippDS = NULL;
|
2003-03-15 00:54:11 +00:00
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
|
|
|
|
2003-04-05 05:11:02 +00:00
|
|
|
if (dsound) {
|
2003-03-15 00:54:11 +00:00
|
|
|
if (IsEqualGUID(&devGuid, &dsound->guid) ) {
|
2003-09-01 23:58:43 +00:00
|
|
|
/* FIXME: this is wrong, need to create a new instance */
|
2003-04-05 05:11:02 +00:00
|
|
|
ERR("dsound already opened\n");
|
2003-03-15 00:54:11 +00:00
|
|
|
IDirectSound_AddRef((LPDIRECTSOUND)dsound);
|
|
|
|
*ippDS = dsound;
|
|
|
|
return DS_OK;
|
|
|
|
} else {
|
|
|
|
ERR("different dsound already opened\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2000-06-23 15:45:05 +00:00
|
|
|
/* Enumerate WINMM audio devices and find the one we want */
|
|
|
|
wodn = waveOutGetNumDevs();
|
2003-05-22 03:39:13 +00:00
|
|
|
if (!wodn) {
|
|
|
|
WARN("no driver\n");
|
|
|
|
*ippDS = NULL;
|
|
|
|
return DSERR_NODRIVER;
|
|
|
|
}
|
1998-12-07 12:13:01 +00:00
|
|
|
|
2003-05-02 21:22:49 +00:00
|
|
|
TRACE(" expecting GUID %s.\n", debugstr_guid(&devGuid));
|
|
|
|
|
2003-03-15 00:54:11 +00:00
|
|
|
for (wod=0; wod<wodn; wod++) {
|
|
|
|
GUID guid;
|
|
|
|
err = mmErr(waveOutMessage((HWAVEOUT)wod,DRV_QUERYDSOUNDGUID,(DWORD)(&guid),0));
|
|
|
|
if (err != DS_OK) {
|
|
|
|
WARN("waveOutMessage failed; err=%lx\n",err);
|
2003-05-22 03:39:13 +00:00
|
|
|
*ippDS = NULL;
|
2003-03-15 00:54:11 +00:00
|
|
|
return err;
|
|
|
|
}
|
2003-05-02 21:22:49 +00:00
|
|
|
TRACE("got GUID %s for wod %d.\n", debugstr_guid(&guid), wod);
|
2003-03-15 00:54:11 +00:00
|
|
|
if (IsEqualGUID( &devGuid, &guid) ) {
|
|
|
|
err = DS_OK;
|
2003-05-02 21:22:49 +00:00
|
|
|
found = TRUE;
|
2003-03-15 00:54:11 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (err != DS_OK) {
|
|
|
|
WARN("invalid parameter\n");
|
2003-05-22 03:39:13 +00:00
|
|
|
*ippDS = NULL;
|
2003-03-15 00:54:11 +00:00
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
2002-03-25 20:52:17 +00:00
|
|
|
|
2003-05-02 21:22:49 +00:00
|
|
|
if (found == FALSE) {
|
|
|
|
WARN("No device found matching given ID - trying with default one !\n");
|
|
|
|
wod = ds_default_playback;
|
|
|
|
}
|
|
|
|
|
2001-01-04 19:53:51 +00:00
|
|
|
/* DRV_QUERYDSOUNDIFACE is a "Wine extension" to get the DSound interface */
|
2002-08-02 19:02:49 +00:00
|
|
|
waveOutMessage((HWAVEOUT)wod, DRV_QUERYDSOUNDIFACE, (DWORD)&drv, 0);
|
1998-12-07 12:13:01 +00:00
|
|
|
|
2003-03-06 22:46:34 +00:00
|
|
|
/* Disable the direct sound driver to force emulation if requested. */
|
|
|
|
if (ds_hw_accel == DS_HW_ACCEL_EMULATION)
|
|
|
|
drv = NULL;
|
|
|
|
|
2000-06-23 15:45:05 +00:00
|
|
|
/* Allocate memory */
|
2002-06-13 19:15:06 +00:00
|
|
|
*ippDS = (IDirectSoundImpl*)HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(IDirectSoundImpl));
|
2003-05-22 03:39:13 +00:00
|
|
|
if (*ippDS == NULL) {
|
|
|
|
WARN("out of memory\n");
|
1998-12-01 12:57:31 +00:00
|
|
|
return DSERR_OUTOFMEMORY;
|
2003-05-22 03:39:13 +00:00
|
|
|
}
|
1998-12-01 12:57:31 +00:00
|
|
|
|
2003-04-10 18:17:34 +00:00
|
|
|
(*ippDS)->lpVtbl = &dsvt;
|
2000-05-30 20:07:31 +00:00
|
|
|
(*ippDS)->ref = 1;
|
|
|
|
|
2000-06-23 15:45:05 +00:00
|
|
|
(*ippDS)->driver = drv;
|
2002-05-31 23:06:46 +00:00
|
|
|
(*ippDS)->priolevel = DSSCL_NORMAL;
|
2002-06-13 19:15:06 +00:00
|
|
|
(*ippDS)->fraglen = 0;
|
|
|
|
(*ippDS)->hwbuf = NULL;
|
|
|
|
(*ippDS)->buffer = NULL;
|
|
|
|
(*ippDS)->buflen = 0;
|
|
|
|
(*ippDS)->writelead = 0;
|
|
|
|
(*ippDS)->state = STATE_STOPPED;
|
1999-04-11 11:51:48 +00:00
|
|
|
(*ippDS)->nrofbuffers = 0;
|
2000-05-30 20:07:31 +00:00
|
|
|
(*ippDS)->buffers = NULL;
|
2003-06-27 22:22:15 +00:00
|
|
|
(*ippDS)->primary = NULL;
|
2003-09-01 23:58:43 +00:00
|
|
|
(*ippDS)->speaker_config = DSSPEAKER_STEREO | (DSSPEAKER_GEOMETRY_NARROW << 16);
|
2003-06-27 22:22:15 +00:00
|
|
|
|
|
|
|
/* 3D listener initial parameters */
|
2002-05-31 23:06:46 +00:00
|
|
|
(*ippDS)->listener = NULL;
|
2003-06-27 22:22:15 +00:00
|
|
|
(*ippDS)->ds3dl.dwSize = sizeof(DS3DLISTENER);
|
2003-09-05 23:08:26 +00:00
|
|
|
(*ippDS)->ds3dl.vPosition.x = 0.0;
|
|
|
|
(*ippDS)->ds3dl.vPosition.y = 0.0;
|
|
|
|
(*ippDS)->ds3dl.vPosition.z = 0.0;
|
|
|
|
(*ippDS)->ds3dl.vVelocity.x = 0.0;
|
|
|
|
(*ippDS)->ds3dl.vVelocity.y = 0.0;
|
|
|
|
(*ippDS)->ds3dl.vVelocity.z = 0.0;
|
|
|
|
(*ippDS)->ds3dl.vOrientFront.x = 0.0;
|
|
|
|
(*ippDS)->ds3dl.vOrientFront.y = 0.0;
|
|
|
|
(*ippDS)->ds3dl.vOrientFront.z = 1.0;
|
|
|
|
(*ippDS)->ds3dl.vOrientTop.x = 0.0;
|
|
|
|
(*ippDS)->ds3dl.vOrientTop.y = 1.0;
|
|
|
|
(*ippDS)->ds3dl.vOrientTop.z = 0.0;
|
2003-06-27 22:22:15 +00:00
|
|
|
(*ippDS)->ds3dl.flDistanceFactor = DS3D_DEFAULTDISTANCEFACTOR;
|
|
|
|
(*ippDS)->ds3dl.flRolloffFactor = DS3D_DEFAULTROLLOFFFACTOR;
|
|
|
|
(*ippDS)->ds3dl.flDopplerFactor = DS3D_DEFAULTDOPPLERFACTOR;
|
|
|
|
|
2002-05-11 22:53:00 +00:00
|
|
|
(*ippDS)->prebuf = ds_snd_queue_max;
|
2003-03-15 00:54:11 +00:00
|
|
|
(*ippDS)->guid = devGuid;
|
2002-01-02 21:46:54 +00:00
|
|
|
|
2000-06-23 15:45:05 +00:00
|
|
|
/* Get driver description */
|
|
|
|
if (drv) {
|
2003-05-22 03:39:13 +00:00
|
|
|
err = IDsDriver_GetDriverDesc(drv,&((*ippDS)->drvdesc));
|
|
|
|
if (err != DS_OK) {
|
|
|
|
WARN("IDsDriver_GetDriverDesc failed\n");
|
|
|
|
HeapFree(GetProcessHeap(),0,*ippDS);
|
|
|
|
*ippDS = NULL;
|
|
|
|
return err;
|
|
|
|
}
|
2000-06-23 15:45:05 +00:00
|
|
|
} else {
|
|
|
|
/* if no DirectSound interface available, use WINMM API instead */
|
|
|
|
(*ippDS)->drvdesc.dwFlags = DSDDESC_DOMMSYSTEMOPEN | DSDDESC_DOMMSYSTEMSETFORMAT;
|
|
|
|
}
|
|
|
|
|
2003-04-05 05:11:02 +00:00
|
|
|
(*ippDS)->drvdesc.dnDevNode = wod;
|
|
|
|
|
2000-06-23 15:45:05 +00:00
|
|
|
/* Set default wave format (may need it for waveOutOpen) */
|
|
|
|
(*ippDS)->wfx.wFormatTag = WAVE_FORMAT_PCM;
|
2003-01-07 19:43:18 +00:00
|
|
|
/* We rely on the sound driver to return the actual sound format of
|
|
|
|
* the device if it does not support 22050x8x2 and is given the
|
|
|
|
* WAVE_DIRECTSOUND flag.
|
|
|
|
*/
|
|
|
|
(*ippDS)->wfx.nSamplesPerSec = 22050;
|
|
|
|
(*ippDS)->wfx.wBitsPerSample = 8;
|
|
|
|
(*ippDS)->wfx.nChannels = 2;
|
|
|
|
(*ippDS)->wfx.nBlockAlign = (*ippDS)->wfx.wBitsPerSample * (*ippDS)->wfx.nChannels / 8;
|
|
|
|
(*ippDS)->wfx.nAvgBytesPerSec = (*ippDS)->wfx.nSamplesPerSec * (*ippDS)->wfx.nBlockAlign;
|
2003-01-11 20:54:56 +00:00
|
|
|
(*ippDS)->wfx.cbSize = 0;
|
Release 980201
Sun Feb 1 13:24:54 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [files/drive.c]
Added Device= parameter to drive configuration.
* [if1632/relay.c]
Throw() and Catch() now use the correct CATCHBUF layout (untested).
* [tools/build.c] [include/stackframe.h] [loader/task.c]
Moved 16-bit stack pointer into thread database.
Save current %fs while running 16-bit code.
Fri Jan 30 09:25:49 1998 Martin Boehme <boehme@informatik.mu-luebeck.de>
* [graphics/mapping.c]
Made DPtoLP32 and LPtoDP32 respect world transforms.
* [graphics/path.c] [graphics/painting.c] [if1632/gdi.spec]
[include/path.h]
More path support.
* [include/gdi.h] [include/windows.h] [objects/dc.c]
[relay/gdi32.spec]
Support for Get/SetArcDirection and Get/SetWorldTransform
* [windows/hook.c]
Fixed a bug in HOOK_Map16To32Common.
Thu Jan 29 23:43:18 1998 Douglas Ridgway <ridgway@taiga.gmcl.com>
* [graphics/metafiledrv/init.c] [objects/metafile.c]
Documentation for metafile related API calls. Fixed a bug to avoid
documenting it.
* [include/windows.h]
Declaration for LoadImage.
Thu Jan 29 21:44:45 1998 Huw D M Davies <h.davies1@physics.oxford.ac.uk>
* [graphics/win16drv/*]
Changes to printing code to enable use of printer fonts with the
win3.1 postscript driver. Remember to add printer=on to [wine]
section of wine.conf . You will also need to disable truetype
fonts from control panel. Winword 6.0 and Write seem to be happy
with this...
* [include/bitmap.h]
Fix Widthbytes for 15bpp displays.
Tue Jan 27 20:54:08 1998 Kristian Nielsen <kristian.nielsen@risoe.dk>
* [tsx11/*] [include/ts*] [tools/make_X11wrappers]
Implemented thread-safe X11 wrappers.
Tue Jan 27 13:54:09 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [windows/queue.c]
Forgot to convert thdb to thread_id.
* [misc/registry.c]
Sped up Windows 95 registry reading. Changed code to traverse
registry as a tree rather than read in all possible keys
(including dead ones).
Tue Jan 27 12:46:09 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [loader/pe_image.c][Makefile.in][scheduler/thread.c]
[libtest/hello5.c]
Don't exit() on failed to load referenced dlls.
Fixed static tls allocation for multiple threads.
WINELIB should now be able to load PE dlls. A sample
winelib program, that dynamically loads a internal dll
is included.
* [graphics/ddraw.c][include/ddraw.h][include/d3d.h]
Cleaned up and enhanced further. Added several DirectX5
interface definitions and DirectSurface3 implementation.
Stubs for D3D (NOT coming soon, just there so it fails safely).
* [multimedia/dsound.c][include/dsound.h]
Actually works now for a lot of cases. Some DirectX5 stuff
added. Still lacking several features.
* [windows/dinput.c][include/dinput.h]
Started implementing DirectInput. Doesn't work yet, don't
know why.
* [if1632/thunk.c][misc/callbacks.c]
[win32/kernel.c][include/callbacks.h]
Added WOWCallback16Ex, WOWHandle32.
* [misc/cpu.c]
Fixed GetSystemInfo, IsProcessorFeaturePresent.
* [multimedia/joystick.c][multimedia/time.c]
Several fixes. Small hack to get timerevents in timeGetTime() loops.
Tue Jan 20 11:26:27 1998 Slaven Rezic <eserte@cs.tu-berlin.de>
* [configure.in]
Fixed check for union semun on FreeBSD systems.
Sun Jan 18 23:05:04 1998 Karl Backstrm <karl_b@geocities.com>
* [misc/ole2nls.c] [programs/progman/Sw.rc] [programs/winhelp/Sw.rc]
[resources/sysres_Sw.rc]
Added/updated Swedish language support.
Sun Jan 18 18:49:01 1998 Alex Korobka <alex@trantor.pharm.sunysb.edu>
* [misc/winsock.c] [misc/winsock_dns.c] [windows/event.c]
[windows/win.c] [windows/dce.c] [windows/winpos.c]
Bug fixes.
Sun Jan 18 12:45:23 1997 Andreas Mohr <100.30936@germany.net>
* [msdos/int25.c] [msdos/int26.c]
Implemented "native" absolute disk read/write access.
* [msdos/int13.c] [msdos/ioports.c]
Enhanced GET DRIVE PARAMETERS (int13 AH=08).
* [graphics/win16drv/prtdrv.c] [if1632/gdi.spec]
Fixed typos, implemented dmEnumDFonts,
Started implementation of dmRealizeObject.
* [if1632/compobj.spec] [ole/compobj.c] [relay32/ole32.spec]
Stubs CoCreateInstance, CoFreeUnusedLibraries, implemented
CoFileTimeNow.
* [if1632/kernel.spec] [include/windows.h] [memory/global.c]
[memory/string.c] [misc/kernel.c] [misc/Makefile.in]
[misc/toolhelp.c] [msdos/int21.c]
Implemented GlobalHandleNoRIP, GetFreeMemInfo, DebugFillBuffer,
stubs GetSetKernelDOSProc, DiagQuery, DiagOutput, ToolHelpHook
(Undocumented Windows).
* [if1632/user.spec] [if1632/win32s16.spec] [misc/win32s16.c]
Misc stubs.
* [if1632/winaspi.spec] [misc/aspi.c]
Implemented GetASPIDLLVersion.
* [if1632/wprocs.spec] [msdos/int20.c] [msdos/Makefile.in]
Added handler for Int 0x20 (terminate program, _very_ old-fashioned).
* [misc/w32scomb.c]
Implemented Get16DLLAddress() partially
(big thanks to Marcus and Alexandre).
* [relay32/Makefile.in] [relay32/builtin32.c] [relay32/dplay.spec]
Added built-in DPLAY.DLL.
* [relay32/winmm.spec] [multimedia/joystick.c]
Added joySetThreshold.
* [misc/windebug.c]
Added WinNotify.
* [win32/console.c]
Stubs CreateConsoleScreenBuffer, SetConsoleActiveScreenBuffer,
WriteConsoleOutput32A.
* [windows/user.c]
Stub SetEventHook.
Sat Jan 17 19:30:35 1998 Matthew Toseland <Paul.Toseland@btinternet.com>
* [windows/painting.c]
Fixed broken restore-to-maximized.
Mon Jan 12 21:25:32 1998 Perceval - Marc Huguet Puig <mhp@tinet.fut.es>
* [documentation/wine.man] [include/options.h]
[misc/main.c] [ole/ole2nls.c] [resources/sysres.c]
[resources/sysres_Ca.rc] [resources/Makefile.in]
Added language catalan. (Afegit l'idioma catal).
1998-02-01 18:33:27 +00:00
|
|
|
|
2000-06-23 15:45:05 +00:00
|
|
|
/* If the driver requests being opened through MMSYSTEM
|
|
|
|
* (which is recommended by the DDK), it is supposed to happen
|
|
|
|
* before the DirectSound interface is opened */
|
2002-03-25 20:52:17 +00:00
|
|
|
if ((*ippDS)->drvdesc.dwFlags & DSDDESC_DOMMSYSTEMOPEN)
|
|
|
|
{
|
2003-03-06 22:46:34 +00:00
|
|
|
DWORD flags = CALLBACK_FUNCTION;
|
|
|
|
|
|
|
|
/* disable direct sound if requested */
|
|
|
|
if (ds_hw_accel != DS_HW_ACCEL_EMULATION)
|
|
|
|
flags |= WAVE_DIRECTSOUND;
|
|
|
|
|
2003-04-05 05:11:02 +00:00
|
|
|
err = mmErr(waveOutOpen(&((*ippDS)->hwo),
|
2002-06-13 19:15:06 +00:00
|
|
|
(*ippDS)->drvdesc.dnDevNode, &((*ippDS)->wfx),
|
|
|
|
(DWORD)DSOUND_callback, (DWORD)(*ippDS),
|
2003-03-06 22:46:34 +00:00
|
|
|
flags));
|
2003-05-22 03:39:13 +00:00
|
|
|
if (err != DS_OK) {
|
|
|
|
WARN("waveOutOpen failed\n");
|
|
|
|
HeapFree(GetProcessHeap(),0,*ippDS);
|
|
|
|
*ippDS = NULL;
|
|
|
|
return err;
|
|
|
|
}
|
2000-06-23 15:45:05 +00:00
|
|
|
}
|
|
|
|
|
2003-05-22 03:39:13 +00:00
|
|
|
if (drv) {
|
2000-06-23 15:45:05 +00:00
|
|
|
err = IDsDriver_Open(drv);
|
2003-05-22 03:39:13 +00:00
|
|
|
if (err != DS_OK) {
|
|
|
|
WARN("IDsDriver_Open failed\n");
|
|
|
|
HeapFree(GetProcessHeap(),0,*ippDS);
|
|
|
|
*ippDS = NULL;
|
|
|
|
return err;
|
|
|
|
}
|
2000-06-23 15:45:05 +00:00
|
|
|
|
2003-05-22 03:39:13 +00:00
|
|
|
/* the driver is now open, so it's now allowed to call GetCaps */
|
|
|
|
err = IDsDriver_GetCaps(drv,&((*ippDS)->drvcaps));
|
|
|
|
if (err != DS_OK) {
|
|
|
|
WARN("IDsDriver_GetCaps failed\n");
|
|
|
|
HeapFree(GetProcessHeap(),0,*ippDS);
|
|
|
|
*ippDS = NULL;
|
|
|
|
return err;
|
|
|
|
}
|
2000-06-23 15:45:05 +00:00
|
|
|
} else {
|
2003-05-22 03:39:13 +00:00
|
|
|
WAVEOUTCAPSA woc;
|
|
|
|
err = mmErr(waveOutGetDevCapsA((*ippDS)->drvdesc.dnDevNode, &woc, sizeof(woc)));
|
|
|
|
if (err != DS_OK) {
|
|
|
|
WARN("waveOutGetDevCaps failed\n");
|
|
|
|
HeapFree(GetProcessHeap(),0,*ippDS);
|
|
|
|
*ippDS = NULL;
|
|
|
|
return err;
|
|
|
|
}
|
2003-09-03 19:28:20 +00:00
|
|
|
ZeroMemory(&(*ippDS)->drvcaps, sizeof((*ippDS)->drvcaps));
|
2003-05-22 03:39:13 +00:00
|
|
|
if ((woc.dwFormats & WAVE_FORMAT_1M08) ||
|
|
|
|
(woc.dwFormats & WAVE_FORMAT_2M08) ||
|
|
|
|
(woc.dwFormats & WAVE_FORMAT_4M08) ||
|
|
|
|
(woc.dwFormats & WAVE_FORMAT_48M08) ||
|
|
|
|
(woc.dwFormats & WAVE_FORMAT_96M08)) {
|
|
|
|
(*ippDS)->drvcaps.dwFlags |= DSCAPS_PRIMARY8BIT;
|
|
|
|
(*ippDS)->drvcaps.dwFlags |= DSCAPS_PRIMARYMONO;
|
|
|
|
}
|
|
|
|
if ((woc.dwFormats & WAVE_FORMAT_1M16) ||
|
|
|
|
(woc.dwFormats & WAVE_FORMAT_2M16) ||
|
|
|
|
(woc.dwFormats & WAVE_FORMAT_4M16) ||
|
|
|
|
(woc.dwFormats & WAVE_FORMAT_48M16) ||
|
|
|
|
(woc.dwFormats & WAVE_FORMAT_96M16)) {
|
|
|
|
(*ippDS)->drvcaps.dwFlags |= DSCAPS_PRIMARY16BIT;
|
|
|
|
(*ippDS)->drvcaps.dwFlags |= DSCAPS_PRIMARYMONO;
|
|
|
|
}
|
|
|
|
if ((woc.dwFormats & WAVE_FORMAT_1S08) ||
|
|
|
|
(woc.dwFormats & WAVE_FORMAT_2S08) ||
|
|
|
|
(woc.dwFormats & WAVE_FORMAT_4S08) ||
|
|
|
|
(woc.dwFormats & WAVE_FORMAT_48S08) ||
|
|
|
|
(woc.dwFormats & WAVE_FORMAT_96S08)) {
|
|
|
|
(*ippDS)->drvcaps.dwFlags |= DSCAPS_PRIMARY8BIT;
|
|
|
|
(*ippDS)->drvcaps.dwFlags |= DSCAPS_PRIMARYSTEREO;
|
|
|
|
}
|
|
|
|
if ((woc.dwFormats & WAVE_FORMAT_1S16) ||
|
|
|
|
(woc.dwFormats & WAVE_FORMAT_2S16) ||
|
|
|
|
(woc.dwFormats & WAVE_FORMAT_4S16) ||
|
|
|
|
(woc.dwFormats & WAVE_FORMAT_48S16) ||
|
|
|
|
(woc.dwFormats & WAVE_FORMAT_96S16)) {
|
|
|
|
(*ippDS)->drvcaps.dwFlags |= DSCAPS_PRIMARY16BIT;
|
|
|
|
(*ippDS)->drvcaps.dwFlags |= DSCAPS_PRIMARYSTEREO;
|
|
|
|
}
|
2002-05-11 22:53:00 +00:00
|
|
|
if (ds_emuldriver)
|
2000-10-25 20:30:31 +00:00
|
|
|
(*ippDS)->drvcaps.dwFlags |= DSCAPS_EMULDRIVER;
|
2003-09-03 19:28:20 +00:00
|
|
|
(*ippDS)->drvcaps.dwMinSecondarySampleRate = DSBFREQUENCY_MIN;
|
|
|
|
(*ippDS)->drvcaps.dwMaxSecondarySampleRate = DSBFREQUENCY_MAX;
|
|
|
|
(*ippDS)->drvcaps.dwPrimaryBuffers = 1;
|
2000-06-23 15:45:05 +00:00
|
|
|
}
|
|
|
|
|
2003-09-19 00:10:51 +00:00
|
|
|
(*ippDS)->volpan.lVolume = 0;
|
|
|
|
(*ippDS)->volpan.lPan = 0;
|
2002-06-13 19:15:06 +00:00
|
|
|
DSOUND_RecalcVolPan(&((*ippDS)->volpan));
|
|
|
|
|
|
|
|
InitializeCriticalSection(&((*ippDS)->mixlock));
|
|
|
|
RtlInitializeResource(&((*ippDS)->lock));
|
2000-02-20 19:16:12 +00:00
|
|
|
|
1998-01-18 18:01:49 +00:00
|
|
|
if (!dsound) {
|
2003-05-22 03:39:13 +00:00
|
|
|
HRESULT hres;
|
1999-04-11 11:51:48 +00:00
|
|
|
dsound = (*ippDS);
|
2003-05-22 03:39:13 +00:00
|
|
|
hres = DSOUND_PrimaryCreate(dsound);
|
|
|
|
if (hres != DS_OK) {
|
|
|
|
WARN("DSOUND_PrimaryCreate failed\n");
|
|
|
|
return hres;
|
|
|
|
}
|
2000-06-23 15:45:05 +00:00
|
|
|
timeBeginPeriod(DS_TIME_RES);
|
|
|
|
dsound->timerID = timeSetEvent(DS_TIME_DEL, DS_TIME_RES, DSOUND_timer,
|
|
|
|
(DWORD)dsound, TIME_PERIODIC | TIME_CALLBACK_FUNCTION);
|
1998-01-18 18:01:49 +00:00
|
|
|
}
|
2003-06-27 22:22:15 +00:00
|
|
|
|
2003-09-01 23:58:43 +00:00
|
|
|
return DS_OK;
|
Release 980104
Sat Jan 3 17:15:56 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [debugger/db_disasm.c]
Added cpuid and cmpxchg instructions.
* [if1632/builtin.c] [relay32/builtin32.c]
Fixed broken -dll option with Win32 DLLs.
* [include/heap.h]
Added SYSTEM_LOCK/SYSTEM_UNLOCK macros.
* [configure.in] [misc/lstr.c]
Added check for wctype.h.
Commented out --enable-ipc option (IPC code has been broken for a
long time anyway).
* [scheduler/critsection.c] [scheduler/event.c]
[scheduler/mutex.c] [scheduler/semaphore.c]
Implemented Win32 synchronization objects.
* [scheduler/synchro.c]
Implemented WaitForMultipleObjects and related functions.
* [scheduler/thread.c]
If possible, use clone() in CreateThread().
* [scheduler/thread.c] [scheduler/process.c]
Made thread and process waitable objects.
Thread and process id values are now different from the pointers
they represent.
* [win32/k32obj.c]
Moved to scheduler directory.
Added function table for waiting operations on objects.
* [files/file.c] [memory/virtual.c]
Added new K32OBJ function table.
Sun Jan 1 16:48:23 1997 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed my patch for GetTempFileName16() as needed.
It was ...Name32A() that didn't work properly, not ...Name16().
* [graphics/x11drv/brush.c]
Fixed a BadMatch error.
* [msdos/int21.c]
Fixed INT21_FindNextFCB() to get correct volume labels e.g.
in "file open" dialog.
* [multimedia/joystick.c] [relay32/winmm.spec]
Stub JoyGetPosEx().
* [scheduler/process.c] [relay32/kernel32.spec]
Implemented RegisterServiceProcess().
Wed Dec 31 11:14:43 1997 Lawson Whitney <lawson_whitney@juno.com>
* [if1632/kernel.spec] [if1632/relay.c]
Define CallProcEx32w - Thanks to Marcus Meissner for his excellent
CallProc32W.
* [loader/module.c]
Take a shot at defining FreeLibrary32W.
Sun Dec 28 12:44:04 1997 Kai Morich <kai.morich@rhein-neckar.netsurf.de>
* [controls/menu.c]
Menu modification from WM_INITMENUPOPUP message fixed.
Menu items now can have different wID and hSubMenu (Win95 behavior).
* [misc/cpu.c]
Improved IsProcessorFeaturePresent.
Sun Dec 28 03:21:08 1997 Ove Kaaven <ovek@main.arcticnet.no>
* [include/winsock.h] [misc/winsock.c]
Fixed WS_SOL_SOCKET for setsockopt(), and made select() return
empty fd_sets if timeout.
* [objects/palette.c]
AnimatePalette() bailed out if entire palette is animated. Fixed.
* [objects/dib.c]
Added some code to SetDIBitsToDevice() and its helpers to fix
some offseting problems.
* [objects/cursoricon.c]
Made CreateCursor32() convert the instance handle properly. Made
DestroyCursor() return correct success status.
Wed Dec 24 17:56:34 1997 Dimitrie O. Paun <dimi@cs.toronto.edu>
* [windows/syscolor.c]
Added definition of GetSysColorPen16/32. This function does not
exist in the Win32 API but is a very close (and natural) relative
to GetSysColorBrush function. Moreover, it is *very* much used
within Wine since there are a lot of places where we need to draw
lines with the standard colors.
* [controls/button.c] [controls/combo.c] [controls/icontitle.c]
[controls/menu.c] [controls/progress.c] [controls/scroll.c]
[controls/updown.c] [graphics/painting.c] [misc/tweak.c]
[windows/defwnd.c] [windows/graphics.c] [windows/nonclient.c]
Replaced references to sysColorObjects with the appropriate
call to GetSysColorBrush32/GetSysColorPen32. There is no need to
expose the implementation of these functions, even within Wine.
This makes the code easier to understand, debug, maintain.
* [controls/uitools.c]
Modified most of the functions in this file to use the now
standard pens (i.e. GetSysColorPen32). These functions made
*heavy* use of standard pens so I expect a lot less
CreatePen/DeleteObject calls can do only good...:)
Plus some minor modifications (*no* functional changes though).
* [controls/updown.c]
Used the new DrawFrameControl32 function to paint the control.
I also deleted UDDOWN_DrawArrow since it was no longer required.
Tue Dec 23 00:03:33 1997 Steinar Hamre <steinarh@stud.fim.ntnu.no>
* [configure.in]
Added check for -lw.
* [include/wintypes.h] [tools/build.c]
Changes to make the assembly understandable for even sun as.
".ascii" -> ".string", "call %foo" -> "call *%foo",
"pushw/popw %[cdes]s" written out to ".byte 0x66\npushl/popl %[cdes]s".
* [memory/ldt.c]
#ifdef added so <sys/seg.h> will not be included on Solaris.
Mon Dec 22 18:55:19 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de>
* [configure.in]
Added XF86DGA check.
* [multimedia/dsound.c][relay32/dsound.spec][include/dsound.h]
Started DirectSound. Only stubs for now.
* [graphics/ddraw.c][include/ddraw.h][relay32/ddraw.spec]
Started to implement DirectDraw. Mostly stubs, some
testcases work. Requires the XF86DGA extension to XFree86.
(check demo/blizdemo.exe from the Diablo CD-ROM).
* [files/drive.c]
Return correct "CDFS" fsname so Diablo is a bit happier.
Sun Dec 21 21:45:48 1997 Kevin Cozens <kcozens@interlog.com>
* [misc/registry.c]
Fixed bugs in the routines which read the Windows '95 registry
files. Added extra information regarding the format of the Windows
'95 registry files.
1998-01-04 17:49:09 +00: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 19:01:20 +00:00
|
|
|
|
2000-05-30 20:07:31 +00:00
|
|
|
|
1998-11-30 11:07:11 +00:00
|
|
|
/*******************************************************************************
|
|
|
|
* DirectSound ClassFactory
|
|
|
|
*/
|
1999-02-17 15:57:24 +00:00
|
|
|
|
2002-05-31 23:06:46 +00:00
|
|
|
static HRESULT WINAPI
|
1999-02-10 06:42:03 +00:00
|
|
|
DSCF_QueryInterface(LPCLASSFACTORY iface,REFIID riid,LPVOID *ppobj) {
|
1999-02-17 15:57:24 +00:00
|
|
|
ICOM_THIS(IClassFactoryImpl,iface);
|
1998-11-30 11:07:11 +00:00
|
|
|
|
2000-01-18 05:09:49 +00:00
|
|
|
FIXME("(%p)->(%s,%p),stub!\n",This,debugstr_guid(riid),ppobj);
|
1998-11-30 11:07:11 +00:00
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI
|
1999-02-10 06:42:03 +00:00
|
|
|
DSCF_AddRef(LPCLASSFACTORY iface) {
|
1999-02-17 15:57:24 +00:00
|
|
|
ICOM_THIS(IClassFactoryImpl,iface);
|
2003-05-22 03:39:13 +00:00
|
|
|
TRACE("(%p) ref was %ld\n", This, This->ref);
|
1999-02-17 15:57:24 +00:00
|
|
|
return ++(This->ref);
|
1998-11-30 11:07:11 +00:00
|
|
|
}
|
|
|
|
|
1999-02-10 06:42:03 +00:00
|
|
|
static ULONG WINAPI DSCF_Release(LPCLASSFACTORY iface) {
|
1999-02-17 15:57:24 +00:00
|
|
|
ICOM_THIS(IClassFactoryImpl,iface);
|
1998-11-30 11:07:11 +00:00
|
|
|
/* static class, won't be freed */
|
2003-05-22 03:39:13 +00:00
|
|
|
TRACE("(%p) ref was %ld\n", This, This->ref);
|
1999-02-17 15:57:24 +00:00
|
|
|
return --(This->ref);
|
1998-11-30 11:07:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI DSCF_CreateInstance(
|
1999-01-17 16:32:32 +00:00
|
|
|
LPCLASSFACTORY iface,LPUNKNOWN pOuter,REFIID riid,LPVOID *ppobj
|
1998-11-30 11:07:11 +00:00
|
|
|
) {
|
1999-02-17 15:57:24 +00:00
|
|
|
ICOM_THIS(IClassFactoryImpl,iface);
|
2000-01-18 05:09:49 +00:00
|
|
|
TRACE("(%p)->(%p,%s,%p)\n",This,pOuter,debugstr_guid(riid),ppobj);
|
2003-08-06 22:57:24 +00:00
|
|
|
|
|
|
|
if (ppobj == NULL) {
|
|
|
|
WARN("invalid parameter\n");
|
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
|
|
|
|
|
|
|
*ppobj = NULL;
|
|
|
|
|
2002-06-13 19:15:06 +00:00
|
|
|
if ( IsEqualGUID( &IID_IDirectSound, riid ) ||
|
|
|
|
IsEqualGUID( &IID_IDirectSound8, riid ) ) {
|
1998-11-30 11:07:11 +00:00
|
|
|
/* FIXME: reuse already created dsound if present? */
|
2003-05-04 02:24:36 +00:00
|
|
|
return DirectSoundCreate8(0,(LPDIRECTSOUND8*)ppobj,pOuter);
|
1998-11-30 11:07:11 +00:00
|
|
|
}
|
2003-04-03 18:03:01 +00:00
|
|
|
|
2003-08-06 22:57:24 +00:00
|
|
|
WARN("(%p,%p,%s,%p) Interface not found!\n",This,pOuter,debugstr_guid(riid),ppobj);
|
1998-11-30 11:07:11 +00:00
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
1999-02-26 11:11:13 +00:00
|
|
|
static HRESULT WINAPI DSCF_LockServer(LPCLASSFACTORY iface,BOOL dolock) {
|
1999-02-17 15:57:24 +00:00
|
|
|
ICOM_THIS(IClassFactoryImpl,iface);
|
1999-07-04 16:02:24 +00:00
|
|
|
FIXME("(%p)->(%d),stub!\n",This,dolock);
|
1998-11-30 11:07:11 +00:00
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
1999-02-17 15:57:24 +00:00
|
|
|
static ICOM_VTABLE(IClassFactory) DSCF_Vtbl = {
|
2000-01-30 02:55:16 +00:00
|
|
|
ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
|
1998-11-30 11:07:11 +00:00
|
|
|
DSCF_QueryInterface,
|
|
|
|
DSCF_AddRef,
|
1999-02-10 06:42:03 +00:00
|
|
|
DSCF_Release,
|
1998-11-30 11:07:11 +00:00
|
|
|
DSCF_CreateInstance,
|
|
|
|
DSCF_LockServer
|
|
|
|
};
|
2003-08-06 22:57:24 +00:00
|
|
|
|
|
|
|
static IClassFactoryImpl DSOUND_CF = { &DSCF_Vtbl, 1 };
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
|
* DirectSoundPrivate ClassFactory
|
|
|
|
*/
|
|
|
|
|
|
|
|
static HRESULT WINAPI
|
|
|
|
DSPCF_QueryInterface(LPCLASSFACTORY iface,REFIID riid,LPVOID *ppobj) {
|
|
|
|
ICOM_THIS(IClassFactoryImpl,iface);
|
|
|
|
|
|
|
|
FIXME("(%p)->(%s,%p),stub!\n",This,debugstr_guid(riid),ppobj);
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI
|
|
|
|
DSPCF_AddRef(LPCLASSFACTORY iface) {
|
|
|
|
ICOM_THIS(IClassFactoryImpl,iface);
|
|
|
|
TRACE("(%p) ref was %ld\n", This, This->ref);
|
|
|
|
return ++(This->ref);
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI
|
|
|
|
DSPCF_Release(LPCLASSFACTORY iface) {
|
|
|
|
ICOM_THIS(IClassFactoryImpl,iface);
|
|
|
|
/* static class, won't be freed */
|
|
|
|
TRACE("(%p) ref was %ld\n", This, This->ref);
|
|
|
|
return --(This->ref);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI
|
|
|
|
DSPCF_CreateInstance(
|
|
|
|
LPCLASSFACTORY iface,LPUNKNOWN pOuter,REFIID riid,LPVOID *ppobj
|
|
|
|
) {
|
|
|
|
ICOM_THIS(IClassFactoryImpl,iface);
|
|
|
|
TRACE("(%p)->(%p,%s,%p)\n",This,pOuter,debugstr_guid(riid),ppobj);
|
|
|
|
|
|
|
|
if (ppobj == NULL) {
|
|
|
|
WARN("invalid parameter\n");
|
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
|
|
|
|
|
|
|
*ppobj = NULL;
|
|
|
|
|
|
|
|
if ( IsEqualGUID( &IID_IKsPropertySet, riid ) ) {
|
2003-08-20 18:18:23 +00:00
|
|
|
return IKsPrivatePropertySetImpl_Create((IKsPrivatePropertySetImpl**)ppobj);
|
2003-08-06 22:57:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
WARN("(%p,%p,%s,%p) Interface not found!\n",This,pOuter,debugstr_guid(riid),ppobj);
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI
|
|
|
|
DSPCF_LockServer(LPCLASSFACTORY iface,BOOL dolock) {
|
|
|
|
ICOM_THIS(IClassFactoryImpl,iface);
|
|
|
|
FIXME("(%p)->(%d),stub!\n",This,dolock);
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static ICOM_VTABLE(IClassFactory) DSPCF_Vtbl = {
|
|
|
|
ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
|
|
|
|
DSPCF_QueryInterface,
|
|
|
|
DSPCF_AddRef,
|
|
|
|
DSPCF_Release,
|
|
|
|
DSPCF_CreateInstance,
|
|
|
|
DSPCF_LockServer
|
|
|
|
};
|
|
|
|
|
|
|
|
static IClassFactoryImpl DSOUND_PRIVATE_CF = { &DSPCF_Vtbl, 1 };
|
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 19:01:20 +00:00
|
|
|
|
|
|
|
/*******************************************************************************
|
2001-06-20 23:03:14 +00:00
|
|
|
* DllGetClassObject [DSOUND.5]
|
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 19:01:20 +00:00
|
|
|
* Retrieves class object from a DLL object
|
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* Docs say returns STDAPI
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* rclsid [I] CLSID for the class object
|
|
|
|
* riid [I] Reference to identifier of interface for class object
|
|
|
|
* ppv [O] Address of variable to receive interface pointer for riid
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: S_OK
|
|
|
|
* Failure: CLASS_E_CLASSNOTAVAILABLE, E_OUTOFMEMORY, E_INVALIDARG,
|
|
|
|
* E_UNEXPECTED
|
|
|
|
*/
|
1998-11-30 11:07:11 +00:00
|
|
|
DWORD WINAPI DSOUND_DllGetClassObject(REFCLSID rclsid,REFIID riid,LPVOID *ppv)
|
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 19:01:20 +00:00
|
|
|
{
|
2003-05-02 21:22:49 +00:00
|
|
|
TRACE("(%s,%s,%p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
|
2003-08-06 22:57:24 +00:00
|
|
|
|
|
|
|
if (ppv == NULL) {
|
|
|
|
WARN("invalid parameter\n");
|
|
|
|
return E_INVALIDARG;
|
|
|
|
}
|
|
|
|
|
|
|
|
*ppv = NULL;
|
|
|
|
|
|
|
|
if ( IsEqualCLSID( &CLSID_DirectSound, rclsid ) ||
|
|
|
|
IsEqualCLSID( &CLSID_DirectSound8, rclsid ) ) {
|
|
|
|
if ( IsEqualCLSID( &IID_IClassFactory, riid ) ) {
|
|
|
|
*ppv = (LPVOID)&DSOUND_CF;
|
|
|
|
IClassFactory_AddRef((IClassFactory*)*ppv);
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
WARN("(%s,%s,%p): no interface found.\n",
|
|
|
|
debugstr_guid(rclsid), debugstr_guid(riid), ppv);
|
|
|
|
return S_FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( IsEqualCLSID( &CLSID_DirectSoundCapture, rclsid ) ||
|
|
|
|
IsEqualCLSID( &CLSID_DirectSoundCapture8, rclsid ) ) {
|
|
|
|
if ( IsEqualCLSID( &IID_IClassFactory, riid ) ) {
|
|
|
|
*ppv = (LPVOID)&DSOUND_CAPTURE_CF;
|
|
|
|
IClassFactory_AddRef((IClassFactory*)*ppv);
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
WARN("(%s,%s,%p): no interface found.\n",
|
|
|
|
debugstr_guid(rclsid), debugstr_guid(riid), ppv);
|
|
|
|
return S_FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( IsEqualCLSID( &CLSID_DirectSoundFullDuplex, rclsid ) ) {
|
|
|
|
if ( IsEqualCLSID( &IID_IClassFactory, riid ) ) {
|
|
|
|
*ppv = (LPVOID)&DSOUND_FULLDUPLEX_CF;
|
|
|
|
IClassFactory_AddRef((IClassFactory*)*ppv);
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
WARN("(%s,%s,%p): no interface found.\n",
|
|
|
|
debugstr_guid(rclsid), debugstr_guid(riid), ppv);
|
|
|
|
return S_FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( IsEqualCLSID( &CLSID_DirectSoundPrivate, rclsid ) ) {
|
|
|
|
if ( IsEqualCLSID( &IID_IClassFactory, riid ) ) {
|
|
|
|
*ppv = (LPVOID)&DSOUND_PRIVATE_CF;
|
|
|
|
IClassFactory_AddRef((IClassFactory*)*ppv);
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
WARN("(%s,%s,%p): no interface found.\n",
|
|
|
|
debugstr_guid(rclsid), debugstr_guid(riid), ppv);
|
|
|
|
return S_FALSE;
|
1998-11-30 11:07:11 +00:00
|
|
|
}
|
1999-09-28 16:23:17 +00:00
|
|
|
|
2003-08-06 22:57:24 +00:00
|
|
|
WARN("(%s,%s,%p): no class found.\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
|
1999-09-28 16:23:17 +00:00
|
|
|
return CLASS_E_CLASSNOTAVAILABLE;
|
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 19:01:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************************************************************
|
2003-05-02 20:16:48 +00:00
|
|
|
* DllCanUnloadNow [DSOUND.4]
|
|
|
|
* Determines whether the DLL is in use.
|
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 19:01:20 +00:00
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: S_OK
|
|
|
|
* Failure: S_FALSE
|
|
|
|
*/
|
1998-12-07 12:13:01 +00:00
|
|
|
DWORD WINAPI DSOUND_DllCanUnloadNow(void)
|
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 19:01:20 +00:00
|
|
|
{
|
1999-07-04 16:02:24 +00:00
|
|
|
FIXME("(void): stub\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 19:01:20 +00:00
|
|
|
return S_FALSE;
|
|
|
|
}
|