1998-01-18 19:01:49 +01:00
|
|
|
/* DirectSound
|
2002-06-01 01:06:46 +02:00
|
|
|
*
|
1998-01-18 19:01:49 +01:00
|
|
|
* Copyright 1998 Marcus Meissner
|
1998-11-22 16:08:48 +01:00
|
|
|
* Copyright 1998 Rob Riggs
|
2002-06-13 21:15:06 +02:00
|
|
|
* Copyright 2000-2002 TransGaming Technologies, Inc.
|
2002-03-10 00:29:33 +01: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
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2007-07-17 15:44:13 +02:00
|
|
|
*
|
1999-01-23 13:19:34 +01:00
|
|
|
* Most thread locking is complete. There may be a few race
|
|
|
|
* conditions still lurking.
|
1998-01-18 19:01:49 +01:00
|
|
|
*
|
1999-01-23 13:19:34 +01:00
|
|
|
* TODO:
|
|
|
|
* Implement SetCooperativeLevel properly (need to address focus issues)
|
|
|
|
* Implement DirectSound3DBuffers (stubs in place)
|
2000-06-23 17:45:05 +02:00
|
|
|
* Use hardware 3D support if available
|
2000-05-30 22:49:37 +02:00
|
|
|
* Add critical section locking inside Release and AddRef methods
|
2000-06-23 17:45:05 +02:00
|
|
|
* Handle static buffers - put those in hardware, non-static not in hardware
|
|
|
|
* Hardware DuplicateSoundBuffer
|
2007-07-17 15:44:13 +02:00
|
|
|
* Proper volume calculation for 3d buffers
|
|
|
|
* Remove DS_HEL_FRAGS and use mixer fragment length for it
|
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 18:49:09 +01:00
|
|
|
*/
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
2000-08-03 06:22:35 +02:00
|
|
|
|
2004-10-07 05:06:48 +02:00
|
|
|
#define COBJMACROS
|
2003-06-28 00:22:15 +02:00
|
|
|
#define NONAMELESSSTRUCT
|
|
|
|
#define NONAMELESSUNION
|
2000-02-10 20:03:02 +01:00
|
|
|
#include "windef.h"
|
2000-12-19 05:53:20 +01:00
|
|
|
#include "winbase.h"
|
2005-10-17 11:24:50 +02:00
|
|
|
#include "winuser.h"
|
2005-01-24 14:31:27 +01:00
|
|
|
#include "winnls.h"
|
2002-05-12 00:53:00 +02:00
|
|
|
#include "winreg.h"
|
2000-06-23 17:45:05 +02:00
|
|
|
#include "mmsystem.h"
|
2002-09-13 00:07:02 +02:00
|
|
|
#include "winternl.h"
|
2001-01-04 20:53:51 +01:00
|
|
|
#include "mmddk.h"
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
2000-08-03 06:22:35 +02:00
|
|
|
#include "dsound.h"
|
2007-08-16 18:39:29 +02:00
|
|
|
#include "dsconf.h"
|
2007-11-05 23:23:11 +01:00
|
|
|
#include "ks.h"
|
2010-12-03 14:03:22 +01:00
|
|
|
#include "rpcproxy.h"
|
2011-09-27 15:51:07 +02:00
|
|
|
#include "rpc.h"
|
|
|
|
#include "rpcndr.h"
|
|
|
|
#include "unknwn.h"
|
|
|
|
#include "oleidl.h"
|
|
|
|
#include "shobjidl.h"
|
|
|
|
|
2007-08-16 18:39:29 +02:00
|
|
|
#include "initguid.h"
|
2007-11-05 23:23:11 +01:00
|
|
|
#include "ksmedia.h"
|
2011-09-27 15:51:07 +02:00
|
|
|
#include "propkey.h"
|
|
|
|
#include "devpkey.h"
|
2007-11-05 23:23:11 +01:00
|
|
|
|
2002-06-13 21:15:06 +02:00
|
|
|
#include "dsound_private.h"
|
2000-08-03 06:22:35 +02:00
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(dsound);
|
1999-04-19 16:56:29 +02:00
|
|
|
|
2011-09-27 15:51:07 +02:00
|
|
|
struct list DSOUND_renderers = LIST_INIT(DSOUND_renderers);
|
|
|
|
CRITICAL_SECTION DSOUND_renderers_lock;
|
2011-11-15 14:39:26 +01:00
|
|
|
static CRITICAL_SECTION_DEBUG DSOUND_renderers_lock_debug =
|
|
|
|
{
|
|
|
|
0, 0, &DSOUND_renderers_lock,
|
|
|
|
{ &DSOUND_renderers_lock_debug.ProcessLocksList, &DSOUND_renderers_lock_debug.ProcessLocksList },
|
|
|
|
0, 0, { (DWORD_PTR)(__FILE__ ": DSOUND_renderers_lock") }
|
|
|
|
};
|
|
|
|
CRITICAL_SECTION DSOUND_renderers_lock = { &DSOUND_renderers_lock_debug, -1, 0, 0, 0, 0 };
|
2011-09-27 15:51:07 +02:00
|
|
|
|
2011-09-27 15:51:22 +02:00
|
|
|
struct list DSOUND_capturers = LIST_INIT(DSOUND_capturers);
|
|
|
|
CRITICAL_SECTION DSOUND_capturers_lock;
|
2011-11-15 14:39:26 +01:00
|
|
|
static CRITICAL_SECTION_DEBUG DSOUND_capturers_lock_debug =
|
|
|
|
{
|
|
|
|
0, 0, &DSOUND_capturers_lock,
|
|
|
|
{ &DSOUND_capturers_lock_debug.ProcessLocksList, &DSOUND_capturers_lock_debug.ProcessLocksList },
|
|
|
|
0, 0, { (DWORD_PTR)(__FILE__ ": DSOUND_capturers_lock") }
|
|
|
|
};
|
|
|
|
CRITICAL_SECTION DSOUND_capturers_lock = { &DSOUND_capturers_lock_debug, -1, 0, 0, 0, 0 };
|
2011-09-27 15:51:22 +02:00
|
|
|
|
2010-01-05 22:20:52 +01:00
|
|
|
GUID DSOUND_renderer_guids[MAXWAVEDRIVERS];
|
|
|
|
GUID DSOUND_capture_guids[MAXWAVEDRIVERS];
|
2000-06-02 00:47:35 +02:00
|
|
|
|
2011-09-27 15:51:33 +02:00
|
|
|
WCHAR wine_vxd_drv[] = { 'w','i','n','e','m','m','.','v','x','d', 0 };
|
|
|
|
|
2008-03-04 05:18:04 +01:00
|
|
|
/* All default settings, you most likely don't want to touch these, see wiki on UsefulRegistryKeys */
|
2008-08-18 21:00:26 +02:00
|
|
|
int ds_hel_buflen = 32768 * 2;
|
2009-01-01 13:24:53 +01:00
|
|
|
int ds_snd_queue_max = 10;
|
2007-08-31 18:21:14 +02:00
|
|
|
int ds_default_sample_rate = 44100;
|
|
|
|
int ds_default_bits_per_sample = 16;
|
2010-12-03 14:03:22 +01:00
|
|
|
static HINSTANCE instance;
|
2002-05-29 00:45:58 +02:00
|
|
|
|
2002-05-12 00:53:00 +02:00
|
|
|
/*
|
|
|
|
* Get a config key from either the app-specific or the default config
|
|
|
|
*/
|
|
|
|
|
2007-03-19 20:46:38 +01:00
|
|
|
static inline DWORD get_config_key( HKEY defkey, HKEY appkey, const char *name,
|
2002-05-12 00:53:00 +02:00
|
|
|
char *buffer, DWORD size )
|
|
|
|
{
|
2005-07-07 14:08:42 +02:00
|
|
|
if (appkey && !RegQueryValueExA( appkey, name, 0, NULL, (LPBYTE)buffer, &size )) return 0;
|
|
|
|
if (defkey && !RegQueryValueExA( defkey, name, 0, NULL, (LPBYTE)buffer, &size )) return 0;
|
2005-06-14 14:34:00 +02:00
|
|
|
return ERROR_FILE_NOT_FOUND;
|
2002-05-12 00:53:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Setup the dsound options.
|
|
|
|
*/
|
|
|
|
|
2003-03-04 03:12:34 +01:00
|
|
|
void setup_dsound_options(void)
|
2002-05-12 00:53:00 +02:00
|
|
|
{
|
2005-06-14 14:34:00 +02:00
|
|
|
char buffer[MAX_PATH+16];
|
2002-05-12 00:53:00 +02:00
|
|
|
HKEY hkey, appkey = 0;
|
2004-05-19 05:22:55 +02:00
|
|
|
DWORD len;
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2002-05-12 00:53:00 +02:00
|
|
|
buffer[MAX_PATH]='\0';
|
2002-06-01 01:06:46 +02:00
|
|
|
|
2005-06-14 14:34:00 +02:00
|
|
|
/* @@ Wine registry key: HKCU\Software\Wine\DirectSound */
|
|
|
|
if (RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\DirectSound", &hkey )) hkey = 0;
|
2002-05-12 00:53:00 +02:00
|
|
|
|
2004-05-19 05:22:55 +02:00
|
|
|
len = GetModuleFileNameA( 0, buffer, MAX_PATH );
|
|
|
|
if (len && len < MAX_PATH)
|
2002-05-12 00:53:00 +02:00
|
|
|
{
|
|
|
|
HKEY tmpkey;
|
2005-06-14 14:34:00 +02:00
|
|
|
/* @@ Wine registry key: HKCU\Software\Wine\AppDefaults\app.exe\DirectSound */
|
|
|
|
if (!RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\AppDefaults", &tmpkey ))
|
2002-05-12 00:53:00 +02:00
|
|
|
{
|
2005-06-14 14:34:00 +02:00
|
|
|
char *p, *appname = buffer;
|
|
|
|
if ((p = strrchr( appname, '/' ))) appname = p + 1;
|
|
|
|
if ((p = strrchr( appname, '\\' ))) appname = p + 1;
|
|
|
|
strcat( appname, "\\DirectSound" );
|
2005-11-10 13:14:56 +01:00
|
|
|
TRACE("appname = [%s]\n", appname);
|
2005-06-14 14:34:00 +02:00
|
|
|
if (RegOpenKeyA( tmpkey, appname, &appkey )) appkey = 0;
|
|
|
|
RegCloseKey( tmpkey );
|
2002-05-12 00:53:00 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* get options */
|
|
|
|
|
2007-07-30 16:20:08 +02:00
|
|
|
if (!get_config_key( hkey, appkey, "HelBuflen", buffer, MAX_PATH ))
|
|
|
|
ds_hel_buflen = atoi(buffer);
|
|
|
|
|
2002-05-12 00:53:00 +02:00
|
|
|
if (!get_config_key( hkey, appkey, "SndQueueMax", buffer, MAX_PATH ))
|
|
|
|
ds_snd_queue_max = atoi(buffer);
|
|
|
|
|
2003-03-15 01:54:11 +01:00
|
|
|
|
2006-04-06 02:48:44 +02:00
|
|
|
if (!get_config_key( hkey, appkey, "DefaultSampleRate", buffer, MAX_PATH ))
|
2008-03-04 05:18:04 +01:00
|
|
|
ds_default_sample_rate = atoi(buffer);
|
2006-04-06 02:48:44 +02:00
|
|
|
|
|
|
|
if (!get_config_key( hkey, appkey, "DefaultBitsPerSample", buffer, MAX_PATH ))
|
2008-03-04 05:18:04 +01:00
|
|
|
ds_default_bits_per_sample = atoi(buffer);
|
2006-04-06 02:48:44 +02:00
|
|
|
|
2002-05-12 00:53:00 +02:00
|
|
|
if (appkey) RegCloseKey( appkey );
|
2005-06-14 14:34:00 +02:00
|
|
|
if (hkey) RegCloseKey( hkey );
|
2002-05-12 00:53:00 +02:00
|
|
|
|
2008-03-04 05:18:04 +01:00
|
|
|
TRACE("ds_hel_buflen = %d\n", ds_hel_buflen);
|
|
|
|
TRACE("ds_snd_queue_max = %d\n", ds_snd_queue_max);
|
|
|
|
TRACE("ds_default_sample_rate = %d\n", ds_default_sample_rate);
|
|
|
|
TRACE("ds_default_bits_per_sample = %d\n", ds_default_bits_per_sample);
|
2002-05-12 00:53:00 +02:00
|
|
|
}
|
|
|
|
|
2006-08-02 13:26:14 +02:00
|
|
|
static const char * get_device_id(LPCGUID pGuid)
|
2004-07-21 05:23:13 +02:00
|
|
|
{
|
|
|
|
if (IsEqualGUID(&DSDEVID_DefaultPlayback, pGuid))
|
|
|
|
return "DSDEVID_DefaultPlayback";
|
|
|
|
else if (IsEqualGUID(&DSDEVID_DefaultVoicePlayback, pGuid))
|
|
|
|
return "DSDEVID_DefaultVoicePlayback";
|
|
|
|
else if (IsEqualGUID(&DSDEVID_DefaultCapture, pGuid))
|
|
|
|
return "DSDEVID_DefaultCapture";
|
|
|
|
else if (IsEqualGUID(&DSDEVID_DefaultVoiceCapture, pGuid))
|
|
|
|
return "DSDEVID_DefaultVoiceCapture";
|
|
|
|
return debugstr_guid(pGuid);
|
|
|
|
}
|
2002-05-12 00:53:00 +02:00
|
|
|
|
2012-01-16 17:44:38 +01:00
|
|
|
static HRESULT get_mmdevenum(IMMDeviceEnumerator **devenum)
|
2011-09-27 15:51:07 +02:00
|
|
|
{
|
2012-01-16 17:44:38 +01:00
|
|
|
HRESULT hr, init_hr;
|
2011-09-27 15:51:07 +02:00
|
|
|
|
2012-01-16 17:44:38 +01:00
|
|
|
init_hr = CoInitialize(NULL);
|
2011-09-27 15:51:07 +02:00
|
|
|
|
|
|
|
hr = CoCreateInstance(&CLSID_MMDeviceEnumerator, NULL,
|
2012-01-16 17:44:38 +01:00
|
|
|
CLSCTX_INPROC_SERVER, &IID_IMMDeviceEnumerator, (void**)devenum);
|
2011-09-27 15:51:07 +02:00
|
|
|
if(FAILED(hr)){
|
|
|
|
CoUninitialize();
|
2012-01-16 17:44:38 +01:00
|
|
|
*devenum = NULL;
|
|
|
|
ERR("CoCreateInstance failed: %08x\n", hr);
|
|
|
|
return hr;
|
2011-09-27 15:51:07 +02:00
|
|
|
}
|
|
|
|
|
2012-01-16 17:44:38 +01:00
|
|
|
return init_hr;
|
2011-09-27 15:51:07 +02:00
|
|
|
}
|
|
|
|
|
2012-01-16 17:44:38 +01:00
|
|
|
static void release_mmdevenum(IMMDeviceEnumerator *devenum, HRESULT init_hr)
|
2011-09-27 15:51:07 +02:00
|
|
|
{
|
2012-01-16 17:44:38 +01:00
|
|
|
IMMDeviceEnumerator_Release(devenum);
|
|
|
|
if(SUCCEEDED(init_hr))
|
|
|
|
CoUninitialize();
|
2011-09-27 15:51:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT get_mmdevice_guid(IMMDevice *device, IPropertyStore *ps,
|
|
|
|
GUID *guid)
|
|
|
|
{
|
|
|
|
PROPVARIANT pv;
|
|
|
|
HRESULT hr;
|
|
|
|
|
|
|
|
if(!ps){
|
|
|
|
hr = IMMDevice_OpenPropertyStore(device, STGM_READ, &ps);
|
|
|
|
if(FAILED(hr)){
|
|
|
|
WARN("OpenPropertyStore failed: %08x\n", hr);
|
|
|
|
return hr;
|
|
|
|
}
|
|
|
|
}else
|
|
|
|
IPropertyStore_AddRef(ps);
|
|
|
|
|
|
|
|
PropVariantInit(&pv);
|
|
|
|
|
|
|
|
hr = IPropertyStore_GetValue(ps, &PKEY_AudioEndpoint_GUID, &pv);
|
|
|
|
if(FAILED(hr)){
|
|
|
|
IPropertyStore_Release(ps);
|
|
|
|
WARN("GetValue(GUID) failed: %08x\n", hr);
|
|
|
|
return hr;
|
|
|
|
}
|
|
|
|
|
|
|
|
CLSIDFromString(pv.u.pwszVal, guid);
|
|
|
|
|
|
|
|
PropVariantClear(&pv);
|
|
|
|
IPropertyStore_Release(ps);
|
|
|
|
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
2003-03-15 01:54:11 +01:00
|
|
|
/***************************************************************************
|
2003-05-02 22:16:48 +02:00
|
|
|
* GetDeviceID [DSOUND.9]
|
2003-03-15 01:54:11 +01:00
|
|
|
*
|
|
|
|
* Retrieves unique identifier of default device specified
|
|
|
|
*
|
2003-05-02 22:16:48 +02:00
|
|
|
* PARAMS
|
|
|
|
* pGuidSrc [I] Address of device GUID.
|
|
|
|
* pGuidDest [O] Address to receive unique device GUID.
|
|
|
|
*
|
2003-03-15 01:54:11 +01:00
|
|
|
* RETURNS
|
|
|
|
* Success: DS_OK
|
|
|
|
* Failure: DSERR_INVALIDPARAM
|
2003-05-02 22:16:48 +02:00
|
|
|
*
|
|
|
|
* NOTES
|
|
|
|
* pGuidSrc is a valid device GUID or DSDEVID_DefaultPlayback,
|
2004-07-21 05:23:13 +02:00
|
|
|
* DSDEVID_DefaultCapture, DSDEVID_DefaultVoicePlayback, or
|
2003-05-02 22:16:48 +02:00
|
|
|
* DSDEVID_DefaultVoiceCapture.
|
|
|
|
* Returns pGuidSrc if pGuidSrc is a valid device or the device
|
|
|
|
* GUID for the specified constants.
|
2003-03-15 01:54:11 +01:00
|
|
|
*/
|
|
|
|
HRESULT WINAPI GetDeviceID(LPCGUID pGuidSrc, LPGUID pGuidDest)
|
|
|
|
{
|
2011-09-27 15:51:07 +02:00
|
|
|
IMMDeviceEnumerator *devenum;
|
|
|
|
EDataFlow flow = (EDataFlow)-1;
|
|
|
|
ERole role = (ERole)-1;
|
2012-01-16 17:44:38 +01:00
|
|
|
HRESULT hr, init_hr;
|
2011-09-27 15:51:07 +02:00
|
|
|
|
2004-07-21 05:23:13 +02:00
|
|
|
TRACE("(%s,%p)\n", get_device_id(pGuidSrc),pGuidDest);
|
2003-05-22 05:39:13 +02:00
|
|
|
|
2011-09-27 15:51:07 +02:00
|
|
|
if(!pGuidSrc || !pGuidDest)
|
|
|
|
return DSERR_INVALIDPARAM;
|
2003-05-22 05:39:13 +02:00
|
|
|
|
2012-01-16 17:44:38 +01:00
|
|
|
init_hr = get_mmdevenum(&devenum);
|
2011-09-27 15:51:07 +02:00
|
|
|
if(!devenum)
|
2012-01-16 17:44:38 +01:00
|
|
|
return init_hr;
|
2011-09-27 15:51:07 +02:00
|
|
|
|
|
|
|
if(IsEqualGUID(&DSDEVID_DefaultPlayback, pGuidSrc)){
|
|
|
|
role = eMultimedia;
|
|
|
|
flow = eRender;
|
|
|
|
}else if(IsEqualGUID(&DSDEVID_DefaultVoicePlayback, pGuidSrc)){
|
|
|
|
role = eCommunications;
|
|
|
|
flow = eRender;
|
|
|
|
}else if(IsEqualGUID(&DSDEVID_DefaultCapture, pGuidSrc)){
|
|
|
|
role = eMultimedia;
|
|
|
|
flow = eCapture;
|
|
|
|
}else if(IsEqualGUID(&DSDEVID_DefaultVoiceCapture, pGuidSrc)){
|
|
|
|
role = eCommunications;
|
|
|
|
flow = eCapture;
|
2003-03-15 01:54:11 +01:00
|
|
|
}
|
|
|
|
|
2011-09-27 15:51:07 +02:00
|
|
|
if(role != (ERole)-1 && flow != (EDataFlow)-1){
|
|
|
|
IMMDevice *device;
|
|
|
|
|
|
|
|
hr = IMMDeviceEnumerator_GetDefaultAudioEndpoint(devenum,
|
|
|
|
flow, role, &device);
|
|
|
|
if(FAILED(hr)){
|
|
|
|
WARN("GetDefaultAudioEndpoint failed: %08x\n", hr);
|
2012-01-16 17:44:38 +01:00
|
|
|
release_mmdevenum(devenum, init_hr);
|
2011-09-27 15:51:07 +02:00
|
|
|
return DSERR_NODRIVER;
|
|
|
|
}
|
2003-03-15 01:54:11 +01:00
|
|
|
|
2011-09-27 15:51:07 +02:00
|
|
|
hr = get_mmdevice_guid(device, NULL, pGuidDest);
|
|
|
|
IMMDevice_Release(device);
|
|
|
|
|
2012-01-16 17:44:38 +01:00
|
|
|
release_mmdevenum(devenum, init_hr);
|
|
|
|
|
2011-09-27 15:51:07 +02:00
|
|
|
return (hr == S_OK) ? DS_OK : hr;
|
2003-03-15 01:54:11 +01:00
|
|
|
}
|
|
|
|
|
2012-01-16 17:44:38 +01:00
|
|
|
release_mmdevenum(devenum, init_hr);
|
|
|
|
|
2008-03-29 12:37:12 +01:00
|
|
|
*pGuidDest = *pGuidSrc;
|
2003-03-15 01:54:11 +01:00
|
|
|
|
|
|
|
return DS_OK;
|
|
|
|
}
|
|
|
|
|
2009-11-14 14:27:13 +01:00
|
|
|
struct morecontext
|
|
|
|
{
|
|
|
|
LPDSENUMCALLBACKA callA;
|
|
|
|
LPVOID data;
|
|
|
|
};
|
|
|
|
|
|
|
|
static BOOL CALLBACK a_to_w_callback(LPGUID guid, LPCWSTR descW, LPCWSTR modW, LPVOID data)
|
|
|
|
{
|
|
|
|
struct morecontext *context = data;
|
|
|
|
char descA[MAXPNAMELEN], modA[MAXPNAMELEN];
|
|
|
|
|
|
|
|
WideCharToMultiByte(CP_ACP, 0, descW, -1, descA, sizeof(descA), NULL, NULL);
|
|
|
|
WideCharToMultiByte(CP_ACP, 0, modW, -1, modA, sizeof(modA), NULL, NULL);
|
|
|
|
|
|
|
|
return context->callA(guid, descA, modA, context->data);
|
|
|
|
}
|
2003-03-15 01:54:11 +01:00
|
|
|
|
2000-05-30 22:07:31 +02:00
|
|
|
/***************************************************************************
|
2002-06-01 01:06:46 +02:00
|
|
|
* DirectSoundEnumerateA [DSOUND.2]
|
2000-05-30 22:07:31 +02:00
|
|
|
*
|
|
|
|
* Enumerate all DirectSound drivers installed in the system
|
|
|
|
*
|
2003-05-02 22:16:48 +02:00
|
|
|
* PARAMS
|
|
|
|
* lpDSEnumCallback [I] Address of callback function.
|
|
|
|
* lpContext [I] Address of user defined context passed to callback function.
|
|
|
|
*
|
2000-05-30 22:07:31 +02:00
|
|
|
* RETURNS
|
|
|
|
* Success: DS_OK
|
|
|
|
* Failure: DSERR_INVALIDPARAM
|
2000-03-24 21:46:04 +01:00
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
HRESULT WINAPI DirectSoundEnumerateA(
|
2003-03-15 01:54:11 +01:00
|
|
|
LPDSENUMCALLBACKA lpDSEnumCallback,
|
|
|
|
LPVOID lpContext)
|
1999-01-23 13:19:34 +01:00
|
|
|
{
|
2009-11-14 14:27:13 +01:00
|
|
|
struct morecontext context;
|
2003-03-15 01:54:11 +01:00
|
|
|
|
|
|
|
if (lpDSEnumCallback == NULL) {
|
2009-11-14 14:27:13 +01:00
|
|
|
WARN("invalid parameter: lpDSEnumCallback == NULL\n");
|
|
|
|
return DSERR_INVALIDPARAM;
|
2003-03-15 01:54:11 +01:00
|
|
|
}
|
|
|
|
|
2009-11-14 14:27:13 +01:00
|
|
|
context.callA = lpDSEnumCallback;
|
|
|
|
context.data = lpContext;
|
2003-03-15 01:54:11 +01:00
|
|
|
|
2009-11-14 14:27:13 +01:00
|
|
|
return DirectSoundEnumerateW(a_to_w_callback, &context);
|
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 18:49:09 +01:00
|
|
|
}
|
|
|
|
|
2011-09-27 15:51:07 +02:00
|
|
|
HRESULT get_mmdevice(EDataFlow flow, const GUID *tgt, IMMDevice **device)
|
|
|
|
{
|
|
|
|
IMMDeviceEnumerator *devenum;
|
|
|
|
IMMDeviceCollection *coll;
|
|
|
|
UINT count, i;
|
2012-01-16 17:44:38 +01:00
|
|
|
HRESULT hr, init_hr;
|
2011-09-27 15:51:07 +02:00
|
|
|
|
2012-01-16 17:44:38 +01:00
|
|
|
init_hr = get_mmdevenum(&devenum);
|
2011-09-27 15:51:07 +02:00
|
|
|
if(!devenum)
|
2012-01-16 17:44:38 +01:00
|
|
|
return init_hr;
|
2011-09-27 15:51:07 +02:00
|
|
|
|
|
|
|
hr = IMMDeviceEnumerator_EnumAudioEndpoints(devenum, flow,
|
|
|
|
DEVICE_STATE_ACTIVE, &coll);
|
|
|
|
if(FAILED(hr)){
|
|
|
|
WARN("EnumAudioEndpoints failed: %08x\n", hr);
|
2012-01-16 17:44:38 +01:00
|
|
|
release_mmdevenum(devenum, init_hr);
|
2011-09-27 15:51:07 +02:00
|
|
|
return hr;
|
|
|
|
}
|
|
|
|
|
|
|
|
hr = IMMDeviceCollection_GetCount(coll, &count);
|
|
|
|
if(FAILED(hr)){
|
|
|
|
IMMDeviceCollection_Release(coll);
|
2012-01-16 17:44:38 +01:00
|
|
|
release_mmdevenum(devenum, init_hr);
|
2011-09-27 15:51:07 +02:00
|
|
|
WARN("GetCount failed: %08x\n", hr);
|
|
|
|
return hr;
|
|
|
|
}
|
|
|
|
|
|
|
|
for(i = 0; i < count; ++i){
|
|
|
|
GUID guid;
|
|
|
|
|
|
|
|
hr = IMMDeviceCollection_Item(coll, i, device);
|
|
|
|
if(FAILED(hr))
|
|
|
|
continue;
|
|
|
|
|
|
|
|
hr = get_mmdevice_guid(*device, NULL, &guid);
|
|
|
|
if(FAILED(hr)){
|
|
|
|
IMMDevice_Release(*device);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
2012-01-16 17:44:38 +01:00
|
|
|
if(IsEqualGUID(&guid, tgt)){
|
|
|
|
IMMDeviceCollection_Release(coll);
|
|
|
|
release_mmdevenum(devenum, init_hr);
|
2011-09-27 15:51:07 +02:00
|
|
|
return DS_OK;
|
2012-01-16 17:44:38 +01:00
|
|
|
}
|
2011-09-27 15:51:07 +02:00
|
|
|
|
|
|
|
IMMDevice_Release(*device);
|
|
|
|
}
|
|
|
|
|
|
|
|
WARN("No device with GUID %s found!\n", wine_dbgstr_guid(tgt));
|
|
|
|
|
2012-01-16 17:44:38 +01:00
|
|
|
IMMDeviceCollection_Release(coll);
|
|
|
|
release_mmdevenum(devenum, init_hr);
|
|
|
|
|
2011-09-27 15:51:07 +02:00
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
|
|
|
|
2011-10-20 22:15:09 +02:00
|
|
|
static BOOL send_device(IMMDevice *device, GUID *guid,
|
|
|
|
LPDSENUMCALLBACKW cb, void *user)
|
|
|
|
{
|
|
|
|
IPropertyStore *ps;
|
|
|
|
PROPVARIANT pv;
|
|
|
|
BOOL keep_going;
|
|
|
|
HRESULT hr;
|
|
|
|
|
|
|
|
PropVariantInit(&pv);
|
|
|
|
|
|
|
|
hr = IMMDevice_OpenPropertyStore(device, STGM_READ, &ps);
|
|
|
|
if(FAILED(hr)){
|
|
|
|
WARN("OpenPropertyStore failed: %08x\n", hr);
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
hr = get_mmdevice_guid(device, ps, guid);
|
|
|
|
if(FAILED(hr)){
|
|
|
|
IPropertyStore_Release(ps);
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
hr = IPropertyStore_GetValue(ps,
|
|
|
|
(const PROPERTYKEY *)&DEVPKEY_Device_FriendlyName, &pv);
|
|
|
|
if(FAILED(hr)){
|
|
|
|
IPropertyStore_Release(ps);
|
|
|
|
WARN("GetValue(FriendlyName) failed: %08x\n", hr);
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
TRACE("Calling back with %s (%s)\n", wine_dbgstr_guid(guid),
|
|
|
|
wine_dbgstr_w(pv.u.pwszVal));
|
|
|
|
|
|
|
|
keep_going = cb(guid, pv.u.pwszVal, wine_vxd_drv, user);
|
|
|
|
|
|
|
|
PropVariantClear(&pv);
|
|
|
|
IPropertyStore_Release(ps);
|
|
|
|
|
|
|
|
return keep_going;
|
|
|
|
}
|
|
|
|
|
2011-09-27 15:51:33 +02:00
|
|
|
/* S_FALSE means the callback returned FALSE at some point
|
|
|
|
* S_OK means the callback always returned TRUE */
|
|
|
|
HRESULT enumerate_mmdevices(EDataFlow flow, GUID *guids,
|
2011-09-27 15:51:07 +02:00
|
|
|
LPDSENUMCALLBACKW cb, void *user)
|
|
|
|
{
|
|
|
|
IMMDeviceEnumerator *devenum;
|
|
|
|
IMMDeviceCollection *coll;
|
2011-10-20 22:15:09 +02:00
|
|
|
IMMDevice *defdev = NULL;
|
|
|
|
UINT count, i, n;
|
2011-09-27 15:51:07 +02:00
|
|
|
BOOL keep_going;
|
2012-01-16 17:44:38 +01:00
|
|
|
HRESULT hr, init_hr;
|
2011-09-27 15:51:07 +02:00
|
|
|
|
|
|
|
static const WCHAR primary_desc[] = {'P','r','i','m','a','r','y',' ',
|
|
|
|
'S','o','u','n','d',' ','D','r','i','v','e','r',0};
|
|
|
|
static const WCHAR empty_drv[] = {0};
|
|
|
|
|
2012-01-16 17:44:38 +01:00
|
|
|
init_hr = get_mmdevenum(&devenum);
|
2011-09-27 15:51:07 +02:00
|
|
|
if(!devenum)
|
2012-01-16 17:44:38 +01:00
|
|
|
return init_hr;
|
2011-09-27 15:51:07 +02:00
|
|
|
|
2012-01-16 17:44:38 +01:00
|
|
|
hr = IMMDeviceEnumerator_EnumAudioEndpoints(devenum, flow,
|
2011-09-27 15:51:07 +02:00
|
|
|
DEVICE_STATE_ACTIVE, &coll);
|
|
|
|
if(FAILED(hr)){
|
2012-01-16 17:44:38 +01:00
|
|
|
release_mmdevenum(devenum, init_hr);
|
2011-09-27 15:51:07 +02:00
|
|
|
WARN("EnumAudioEndpoints failed: %08x\n", hr);
|
|
|
|
return DS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
hr = IMMDeviceCollection_GetCount(coll, &count);
|
|
|
|
if(FAILED(hr)){
|
|
|
|
IMMDeviceCollection_Release(coll);
|
2012-01-16 17:44:38 +01:00
|
|
|
release_mmdevenum(devenum, init_hr);
|
2011-09-27 15:51:07 +02:00
|
|
|
WARN("GetCount failed: %08x\n", hr);
|
|
|
|
return DS_OK;
|
|
|
|
}
|
|
|
|
|
2012-01-16 17:44:38 +01:00
|
|
|
if(count == 0){
|
|
|
|
release_mmdevenum(devenum, init_hr);
|
2011-09-27 15:51:07 +02:00
|
|
|
return DS_OK;
|
2012-01-16 17:44:38 +01:00
|
|
|
}
|
2011-09-27 15:51:07 +02:00
|
|
|
|
2011-10-20 22:15:09 +02:00
|
|
|
TRACE("Calling back with NULL (%s)\n", wine_dbgstr_w(primary_desc));
|
2011-09-27 15:51:07 +02:00
|
|
|
keep_going = cb(NULL, primary_desc, empty_drv, user);
|
|
|
|
|
2011-10-20 22:15:09 +02:00
|
|
|
/* always send the default device first */
|
|
|
|
if(keep_going){
|
|
|
|
hr = IMMDeviceEnumerator_GetDefaultAudioEndpoint(devenum, flow,
|
|
|
|
eMultimedia, &defdev);
|
|
|
|
if(FAILED(hr)){
|
|
|
|
defdev = NULL;
|
|
|
|
n = 0;
|
|
|
|
}else{
|
|
|
|
keep_going = send_device(defdev, &guids[0], cb, user);
|
|
|
|
n = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-09-27 15:51:07 +02:00
|
|
|
for(i = 0; keep_going && i < count; ++i){
|
|
|
|
IMMDevice *device;
|
|
|
|
|
|
|
|
hr = IMMDeviceCollection_Item(coll, i, &device);
|
|
|
|
if(FAILED(hr)){
|
|
|
|
WARN("Item failed: %08x\n", hr);
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
2011-10-20 22:15:09 +02:00
|
|
|
if(device != defdev){
|
|
|
|
send_device(device, &guids[n], cb, user);
|
|
|
|
++n;
|
2011-09-27 15:51:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
IMMDevice_Release(device);
|
|
|
|
}
|
|
|
|
|
2011-10-20 22:15:09 +02:00
|
|
|
if(defdev)
|
|
|
|
IMMDevice_Release(defdev);
|
2011-09-27 15:51:07 +02:00
|
|
|
IMMDeviceCollection_Release(coll);
|
|
|
|
|
2012-01-16 17:44:38 +01:00
|
|
|
release_mmdevenum(devenum, init_hr);
|
|
|
|
|
2011-09-27 15:51:33 +02:00
|
|
|
return (keep_going == TRUE) ? S_OK : S_FALSE;
|
2011-09-27 15:51:07 +02:00
|
|
|
}
|
|
|
|
|
2000-05-30 22:07:31 +02:00
|
|
|
/***************************************************************************
|
2002-06-01 01:06:46 +02:00
|
|
|
* DirectSoundEnumerateW [DSOUND.3]
|
2000-05-30 22:07:31 +02:00
|
|
|
*
|
|
|
|
* Enumerate all DirectSound drivers installed in the system
|
|
|
|
*
|
2003-05-02 22:16:48 +02:00
|
|
|
* PARAMS
|
|
|
|
* lpDSEnumCallback [I] Address of callback function.
|
|
|
|
* lpContext [I] Address of user defined context passed to callback function.
|
|
|
|
*
|
2000-05-30 22:07:31 +02:00
|
|
|
* RETURNS
|
|
|
|
* Success: DS_OK
|
|
|
|
* Failure: DSERR_INVALIDPARAM
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI DirectSoundEnumerateW(
|
2002-06-01 01:06:46 +02:00
|
|
|
LPDSENUMCALLBACKW lpDSEnumCallback,
|
2000-05-30 22:07:31 +02:00
|
|
|
LPVOID lpContext )
|
|
|
|
{
|
2011-09-27 15:51:33 +02:00
|
|
|
HRESULT hr;
|
|
|
|
|
2011-09-27 15:51:07 +02:00
|
|
|
TRACE("(%p,%p)\n", lpDSEnumCallback, lpContext);
|
2003-04-03 20:03:01 +02:00
|
|
|
|
|
|
|
if (lpDSEnumCallback == NULL) {
|
2011-09-27 15:51:07 +02:00
|
|
|
WARN("invalid parameter: lpDSEnumCallback == NULL\n");
|
|
|
|
return DSERR_INVALIDPARAM;
|
2003-04-03 20:03:01 +02:00
|
|
|
}
|
|
|
|
|
2011-06-23 20:12:01 +02:00
|
|
|
setup_dsound_options();
|
|
|
|
|
2011-09-27 15:51:33 +02:00
|
|
|
hr = enumerate_mmdevices(eRender, DSOUND_renderer_guids,
|
2011-09-27 15:51:07 +02:00
|
|
|
lpDSEnumCallback, lpContext);
|
2011-09-27 15:51:33 +02:00
|
|
|
return SUCCEEDED(hr) ? DS_OK : hr;
|
2000-05-30 22:07:31 +02:00
|
|
|
}
|
|
|
|
|
2009-11-14 14:29:07 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* DirectSoundCaptureEnumerateA [DSOUND.7]
|
|
|
|
*
|
|
|
|
* Enumerate all DirectSound drivers installed in the system.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* lpDSEnumCallback [I] Address of callback function.
|
|
|
|
* lpContext [I] Address of user defined context passed to callback function.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: DS_OK
|
|
|
|
* Failure: DSERR_INVALIDPARAM
|
|
|
|
*/
|
2009-11-14 14:30:49 +01:00
|
|
|
HRESULT WINAPI DirectSoundCaptureEnumerateA(
|
2009-11-14 14:29:07 +01:00
|
|
|
LPDSENUMCALLBACKA lpDSEnumCallback,
|
|
|
|
LPVOID lpContext)
|
|
|
|
{
|
2009-11-14 14:30:49 +01:00
|
|
|
struct morecontext context;
|
2009-11-14 14:29:07 +01:00
|
|
|
|
|
|
|
if (lpDSEnumCallback == NULL) {
|
2009-11-14 14:30:49 +01:00
|
|
|
WARN("invalid parameter: lpDSEnumCallback == NULL\n");
|
2009-11-14 14:29:07 +01:00
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
|
|
|
|
2009-11-14 14:30:49 +01:00
|
|
|
context.callA = lpDSEnumCallback;
|
|
|
|
context.data = lpContext;
|
2009-11-14 14:29:07 +01:00
|
|
|
|
2009-11-14 14:30:49 +01:00
|
|
|
return DirectSoundCaptureEnumerateW(a_to_w_callback, &context);
|
2009-11-14 14:29:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* DirectSoundCaptureEnumerateW [DSOUND.8]
|
|
|
|
*
|
|
|
|
* Enumerate all DirectSound drivers installed in the system.
|
|
|
|
*
|
|
|
|
* PARAMS
|
|
|
|
* lpDSEnumCallback [I] Address of callback function.
|
|
|
|
* lpContext [I] Address of user defined context passed to callback function.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
* Success: DS_OK
|
|
|
|
* Failure: DSERR_INVALIDPARAM
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI
|
|
|
|
DirectSoundCaptureEnumerateW(
|
|
|
|
LPDSENUMCALLBACKW lpDSEnumCallback,
|
|
|
|
LPVOID lpContext)
|
|
|
|
{
|
2011-09-27 15:51:33 +02:00
|
|
|
HRESULT hr;
|
|
|
|
|
2009-11-14 14:29:07 +01:00
|
|
|
TRACE("(%p,%p)\n", lpDSEnumCallback, lpContext );
|
|
|
|
|
|
|
|
if (lpDSEnumCallback == NULL) {
|
2011-09-27 15:51:22 +02:00
|
|
|
WARN("invalid parameter: lpDSEnumCallback == NULL\n");
|
2009-11-14 14:29:07 +01:00
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
|
|
|
|
2011-06-23 20:12:01 +02:00
|
|
|
setup_dsound_options();
|
|
|
|
|
2011-09-27 15:51:33 +02:00
|
|
|
hr = enumerate_mmdevices(eCapture, DSOUND_capture_guids,
|
2011-09-27 15:51:22 +02:00
|
|
|
lpDSEnumCallback, lpContext);
|
2011-09-27 15:51:33 +02:00
|
|
|
return SUCCEEDED(hr) ? DS_OK : hr;
|
2009-11-14 14:29:07 +01:00
|
|
|
}
|
|
|
|
|
1998-11-30 12:07:11 +01:00
|
|
|
/*******************************************************************************
|
|
|
|
* DirectSound ClassFactory
|
|
|
|
*/
|
1999-02-17 16:57:24 +01:00
|
|
|
|
2006-08-18 07:13:31 +02:00
|
|
|
typedef HRESULT (*FnCreateInstance)(REFIID riid, LPVOID *ppobj);
|
|
|
|
|
|
|
|
typedef struct {
|
2010-12-05 15:16:07 +01:00
|
|
|
IClassFactory IClassFactory_iface;
|
2006-08-18 07:13:31 +02:00
|
|
|
REFCLSID rclsid;
|
|
|
|
FnCreateInstance pfnCreateInstance;
|
|
|
|
} IClassFactoryImpl;
|
1998-11-30 12:07:11 +01:00
|
|
|
|
2010-12-05 15:16:07 +01:00
|
|
|
static inline IClassFactoryImpl *impl_from_IClassFactory(IClassFactory *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, IClassFactoryImpl, IClassFactory_iface);
|
|
|
|
}
|
|
|
|
|
2006-08-18 07:13:31 +02:00
|
|
|
static HRESULT WINAPI
|
2012-08-27 12:28:04 +02:00
|
|
|
DSCF_QueryInterface(IClassFactory *iface, REFIID riid, LPVOID *ppobj)
|
2006-08-18 07:13:31 +02:00
|
|
|
{
|
2010-12-05 15:16:07 +01:00
|
|
|
IClassFactoryImpl *This = impl_from_IClassFactory(iface);
|
2007-04-29 18:44:36 +02:00
|
|
|
TRACE("(%p, %s, %p)\n", This, debugstr_guid(riid), ppobj);
|
2006-08-18 07:13:31 +02:00
|
|
|
if (ppobj == NULL)
|
|
|
|
return E_POINTER;
|
2007-04-29 18:44:36 +02:00
|
|
|
if (IsEqualIID(riid, &IID_IUnknown) ||
|
|
|
|
IsEqualIID(riid, &IID_IClassFactory))
|
|
|
|
{
|
|
|
|
*ppobj = iface;
|
2012-08-27 12:28:04 +02:00
|
|
|
IClassFactory_AddRef(iface);
|
2007-04-29 18:44:36 +02:00
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
*ppobj = NULL;
|
2006-08-18 07:13:31 +02:00
|
|
|
return E_NOINTERFACE;
|
1998-11-30 12:07:11 +01:00
|
|
|
}
|
|
|
|
|
2005-02-11 12:49:05 +01:00
|
|
|
static ULONG WINAPI DSCF_AddRef(LPCLASSFACTORY iface)
|
|
|
|
{
|
2009-12-15 15:39:14 +01:00
|
|
|
return 2;
|
1998-11-30 12:07:11 +01:00
|
|
|
}
|
|
|
|
|
2005-02-11 12:49:05 +01:00
|
|
|
static ULONG WINAPI DSCF_Release(LPCLASSFACTORY iface)
|
|
|
|
{
|
|
|
|
/* static class, won't be freed */
|
2009-12-15 15:39:14 +01:00
|
|
|
return 1;
|
1998-11-30 12:07:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI DSCF_CreateInstance(
|
2006-08-18 07:13:31 +02:00
|
|
|
LPCLASSFACTORY iface,
|
|
|
|
LPUNKNOWN pOuter,
|
|
|
|
REFIID riid,
|
|
|
|
LPVOID *ppobj)
|
2005-02-11 12:49:05 +01:00
|
|
|
{
|
2010-12-05 15:16:07 +01:00
|
|
|
IClassFactoryImpl *This = impl_from_IClassFactory(iface);
|
2006-08-18 07:13:31 +02:00
|
|
|
TRACE("(%p, %p, %s, %p)\n", This, pOuter, debugstr_guid(riid), ppobj);
|
2003-08-07 00:57:24 +02:00
|
|
|
|
2006-08-18 07:13:31 +02:00
|
|
|
if (pOuter)
|
|
|
|
return CLASS_E_NOAGGREGATION;
|
2003-08-07 00:57:24 +02:00
|
|
|
|
2006-08-18 07:13:31 +02:00
|
|
|
if (ppobj == NULL) {
|
|
|
|
WARN("invalid parameter\n");
|
|
|
|
return DSERR_INVALIDPARAM;
|
|
|
|
}
|
|
|
|
*ppobj = NULL;
|
|
|
|
return This->pfnCreateInstance(riid, ppobj);
|
2003-08-07 00:57:24 +02:00
|
|
|
}
|
2006-08-18 07:13:31 +02:00
|
|
|
|
|
|
|
static HRESULT WINAPI DSCF_LockServer(LPCLASSFACTORY iface, BOOL dolock)
|
|
|
|
{
|
2010-12-05 15:16:07 +01:00
|
|
|
IClassFactoryImpl *This = impl_from_IClassFactory(iface);
|
2006-08-18 07:13:31 +02:00
|
|
|
FIXME("(%p, %d) stub!\n", This, dolock);
|
|
|
|
return S_OK;
|
2003-08-07 00:57:24 +02:00
|
|
|
}
|
|
|
|
|
2006-08-18 07:13:31 +02:00
|
|
|
static const IClassFactoryVtbl DSCF_Vtbl = {
|
|
|
|
DSCF_QueryInterface,
|
|
|
|
DSCF_AddRef,
|
|
|
|
DSCF_Release,
|
|
|
|
DSCF_CreateInstance,
|
|
|
|
DSCF_LockServer
|
2003-08-07 00:57:24 +02:00
|
|
|
};
|
|
|
|
|
2006-08-18 07:13:31 +02:00
|
|
|
static IClassFactoryImpl DSOUND_CF[] = {
|
2012-07-19 02:00:27 +02:00
|
|
|
{ { &DSCF_Vtbl }, &CLSID_DirectSound, DSOUND_Create },
|
|
|
|
{ { &DSCF_Vtbl }, &CLSID_DirectSound8, DSOUND_Create8 },
|
2012-08-16 01:20:01 +02:00
|
|
|
{ { &DSCF_Vtbl }, &CLSID_DirectSoundCapture, DSOUND_CaptureCreate },
|
|
|
|
{ { &DSCF_Vtbl }, &CLSID_DirectSoundCapture8, DSOUND_CaptureCreate8 },
|
2012-08-16 01:27:12 +02:00
|
|
|
{ { &DSCF_Vtbl }, &CLSID_DirectSoundFullDuplex, DSOUND_FullDuplexCreate },
|
2012-08-24 01:47:14 +02:00
|
|
|
{ { &DSCF_Vtbl }, &CLSID_DirectSoundPrivate, IKsPrivatePropertySetImpl_Create },
|
2010-12-05 15:16:07 +01:00
|
|
|
{ { NULL }, NULL, NULL }
|
2006-08-18 07:13:31 +02:00
|
|
|
};
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
|
|
|
|
/*******************************************************************************
|
2005-06-17 22:58:33 +02:00
|
|
|
* DllGetClassObject [DSOUND.@]
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
* 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
|
|
|
|
*/
|
2005-05-17 16:41:37 +02:00
|
|
|
HRESULT WINAPI 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 21:01:20 +02:00
|
|
|
{
|
2006-08-18 07:13:31 +02:00
|
|
|
int i = 0;
|
|
|
|
TRACE("(%s, %s, %p)\n", debugstr_guid(rclsid), debugstr_guid(riid), ppv);
|
2003-08-07 00:57:24 +02:00
|
|
|
|
|
|
|
if (ppv == NULL) {
|
2006-08-18 07:13:31 +02:00
|
|
|
WARN("invalid parameter\n");
|
|
|
|
return E_INVALIDARG;
|
2003-08-07 00:57:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
*ppv = NULL;
|
|
|
|
|
2006-08-18 07:13:31 +02:00
|
|
|
if (!IsEqualIID(riid, &IID_IClassFactory) &&
|
|
|
|
!IsEqualIID(riid, &IID_IUnknown)) {
|
|
|
|
WARN("no interface for %s\n", debugstr_guid(riid));
|
|
|
|
return E_NOINTERFACE;
|
2003-08-07 00:57:24 +02:00
|
|
|
}
|
2004-07-21 05:23:13 +02:00
|
|
|
|
2006-08-18 07:13:31 +02:00
|
|
|
while (NULL != DSOUND_CF[i].rclsid) {
|
|
|
|
if (IsEqualGUID(rclsid, DSOUND_CF[i].rclsid)) {
|
2010-12-05 15:16:07 +01:00
|
|
|
DSCF_AddRef(&DSOUND_CF[i].IClassFactory_iface);
|
2006-08-18 07:13:31 +02:00
|
|
|
*ppv = &DSOUND_CF[i];
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
i++;
|
1998-11-30 12:07:11 +01:00
|
|
|
}
|
1999-09-28 18:23:17 +02:00
|
|
|
|
2006-08-18 07:13:31 +02:00
|
|
|
WARN("(%s, %s, %p): no class found.\n", debugstr_guid(rclsid),
|
|
|
|
debugstr_guid(riid), ppv);
|
1999-09-28 18:23:17 +02: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 21:01:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************************************************************
|
2004-07-21 05:23:13 +02:00
|
|
|
* DllCanUnloadNow [DSOUND.4]
|
2003-05-02 22:16:48 +02:00
|
|
|
* 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 21:01:20 +02:00
|
|
|
*
|
|
|
|
* RETURNS
|
2010-01-06 09:28:32 +01:00
|
|
|
* Can unload now: S_OK
|
|
|
|
* Cannot unload now (the DLL is still active): S_FALSE
|
Release 980503
Thu Apr 30 16:28:12 1998 James Juran <jrj120@psu.edu>
* [scheduler/process.c]
Implemented GetExitCodeProcess. The code is a direct translation
of GetExitCodeThread.
Mon Apr 27 22:20:25 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
* [loader/pe_image.c]
Unload dummy module when PE_LoadLibraryEx32A fails with
PE_LoadImage (makes Encarta 98 installer proceed).
* [files/drive.c]
Make GetDriveType16 return DRIVE_REMOVABLE for TYPE_CDROM.
Make GetCurrentDirectory32 behave like the code does and not
like the help describes.
* [files/profile.c]
Revoke recent change in PROFILE_GetSection and try better
handling of special case.
* [include/windows.h]
Change definition of ACCEL32.
* [misc/commdlg.c]
Replace the GetXXXFilename32 macros by normal code.
Fix two reported bugs in my changes to commdlg.
* [windows/win.c]
Add a hook to catch bogus WM_SIZE messages by emitting a warning
in the appropriate case.
* [objects/bitmap.c]
Reject unreasonbable large size arguments in
CreateCompatibleBitmap32 and add an fixme for that situation.
Sun Apr 26 18:30:07 1998 Alexandre Julliard <julliard@lrc.epfl.ch>
* [include/ldt.h] [debugger/*.c] [miscemu/instr.c]
Added IS_SELECTOR_SYSTEM and IS_SELECTOR_32BIT macros.
Make instruction emulation support system selectors.
* [loader/*.c]
Started moving NE specific functions to the new loader/ne
directory.
* [memory/environ.c]
Enforce the 127 chars limit only when creating the environment of
a Win16 process.
Sun Apr 26 12:22:23 1998 Andreas Mohr <100.30936@germany.net>
* [files/file.c]
Fixed an incredible typo in CopyFile32A that made it unusable
since a rewrite in 970112 (!!).
* [files/directory.c]
Fixed GetTempPath32A/W to include trailing backslash.
* [misc/ver.c]
Make find_pe_resource "work" with corrupt files.
* [misc/wsprintf.c]
Altered WPRINTF_ParseFormatA/W to treat invalid format chars
as normal output, too.
* [msdos/dpmi.c]
Implemented "Allocate/Free real mode callback" (0x0303/0x0304).
Cross your fingers if you need to use it ;) (completely untested)
Implemented "Call real mode proc with far return" (0x0301, tested).
* [msdos/int21.c]
Fixed ioctlGenericBlkDevReq/0x60.
* [relay32/dplayx.spec] [relay32/builtin32.c] [relay32/Makefile.in]
Added built-in DPLAYX.DLL.
* [windows/win.c]
Fixed GetWindowWord()/GWW_HWNDPARENT to return the window's owner
if it has no parent (SDK).
Sat Apr 25 15:09:53 1998 M.T.Fortescue <mark@mtfhpc.demon.co.uk>
* [debugger/db_disasm.c]
Fixed disassemble bug for no-display option and 'lock',
'repne' and 'repe' prefixes.
* [debugger/registers.c]
Added textual flag description output on 'info regs'.
Sat Apr 25 14:18:26 1998 Matthew Becker <mbecker@glasscity.net>
* [*/*.c]
Added stubs and/or documentation for the following functions:
LookupPrivilegeValue, OpenService, ControlService, RegGetKeySecurity,
StartService, SetComputerName, DeleteService, CloseServiceHandle,
OpenProcessToken, OpenSCManager, DeregisterEventSource,
WaitForDebugEvent, WaitForInputIdle, RegisterEventSource,
SetDebugErrorLevel, SetConsoleCursorPosition, ChoosePixelFormat,
SetPixelFormat, GetPixelFormat, DescribePixelFormat, SwapBuffers,
PolyBezier, AbortPath, DestroyAcceleratorTable, HeapWalk,
DdeInitialize, DdeUninitialize, DdeConnectList, DdeDisconnectList,
DdeCreateStringHandle, DdePostAdvise, DdeGetData, DdeNameService,
DdeGetLastError, WNetGetDirectoryType, EnumPrinters, RegFlushKey,
RegGetKeySecurity, DllGetClassObject, DllCanUnloadNow, CreateBitmap,
CreateCompatibleBitmap, CreateBitmapIndirect, GetBitmapBits,
SetBitmapBits, LoadImage, CopyImage, LoadBitmap, DrawIcon,
CreateDiscardableBitmap, SetDIBits, GetCharABCWidths, LoadTypeLib,
SetConsoleCtrlHandler, CreateConsoleScreenBuffer, ReadConsoleInput,
GetConsoleCursorInfo, SetConsoleCursorInfo, SetConsoleWindowInfo,
SetConsoleTextAttribute, SetConsoleScreenBufferSize,
FillConsoleOutputCharacter, FillConsoleOutputAttribute,
CreateMailslot, GetMailslotInfo, GetCompressedFileSize,
GetProcessWindowStation, GetThreadDesktop, SetDebugErrorLevel,
WaitForDebugEvent, SetComputerName, CreateMDIWindow.
Thu Apr 23 23:54:04 1998 Douglas Ridgway <ridgway@winehq.com>
* [include/windows.h] [objects/enhmetafile.c] [relay32/gdi32.spec]
Implement CopyEnhMetaFile, Get/SetEnhMetaFileBits, other fixes.
* [include/windows.h] [objects/metafile.c] [relay32/gdi32.spec]
32-bit metafile fixes, implement EnumMetaFile32, GetMetaFileBitsEx.
* [objects/font.c] [graphics/x11drv/xfont.c] [graphics/x11drv/text.c]
Some rotated text support for X11R6 displays.
* [win32/newfns.c] [ole/ole2nls.c]
Moved GetNumberFormat32A.
Wed Apr 22 17:38:20 1998 David Lee Lambert <lamber45@egr.msu.edu>
* [ole/ole2nls.c] [misc/network.c]
Changed some function documentation to the new style.
* [misc/network.c] [include/windows.h] [if1632/user.spec]
[relay32/mpr.spec] [misc/mpr.c]
Added stubs for some Win32 network functions; renamed some
16-bit ones with 32-bit counterparts, as well as
WNetGetDirectoryType; moved the stubs in misc/mpr.c (three of
them!) to misc/network.c.
* [ole/compobj.c] [ole/storage.c] [ole/ole2disp.c]
[ole/ole2nls.c] [ole/folders.c] [ole/moniker.c] [ole/ole2.c]
[graphics/fontengine.c] [graphics/ddraw.c] [graphics/env.c]
[graphics/driver.c] [graphics/escape.c]
Changed fprintf's to proper debug-macros.
* [include/winnls.h]
Added some flags (for internal use).
* [ole/ole2nls.c]
Added the Unicode core function, and worked out a way to hide
the commonality of the core.
* [relay32/kernel32.spec]
Added support for GetDate/Time32A/W.
Wed Apr 22 09:16:03 1998 Gordon Chaffee <chaffee@cs.berkeley.edu>
* [win32/code_page.c]
Fixed problem with MultiByteToWideChar that was introduced in
last release. Made MultiByteToWideChar more compatible with Win32.
* [graphics/x11drv/graphics.c]
Fixed problem with drawing arcs.
Tue Apr 21 11:24:58 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [ole/ole2nls.c]
Move stuff from 0x409 case to Lang_En.
* [relay32/user32.spec] [windows/winpos.c]
Added stubs for GetWindowRgn32 and SetWindowRgn32. Makes Office
Paperclip happy.
Tue Apr 21 11:16:16 1998 Constantine Sapuntzakis <csapuntz@tma-1.lcs.mit.edu>
* [loader/pe_image.c]
If image is relocated, TLS addresses need to be adjusted.
* [debugger/*.c]
Generalized tests for 32-bit segments.
Tue Apr 21 02:04:59 1998 James Juran <jrj120@psu.edu>
* [misc/*.c] [miscemu/*.c] [msdos/*.c] [if1632/*.c]
[include/*.h] [loader/*.c] [memory/*.c] [multimedia/*.c]
[objects/*.c]
Almost all fprintf statements converted to appropriate
debug messages.
* [README]
Updated "GETTING MORE INFORMATION" section to include WineHQ.
* [documentation/debugger]
Fixed typo.
* [windows/defwnd.c]
Added function documentation.
Sun Apr 19 16:30:58 1998 Marcus Meissner <marcus@mud.de>
* [Make.rules.in]
Added lint target (using lclint).
* [relay32/oleaut32.spec][relay32/Makefile.in][ole/typelib.c]
[ole/ole2disp.c]
Added oleaut32 spec, added some SysString functions.
* [if1632/signal.c]
Added printing of faultaddress in Linux (using CR2 debug register).
* [configure.in]
Added <sys/types.h> for statfs checks.
* [loader/*.c][debugger/break.c][debugger/hash.c]
Started to split win32/win16 module handling, preparing support
for other binary formats (like ELF).
Sat Apr 18 10:07:41 1998 Rein Klazes <rklazes@casema.net>
* [misc/registry.c]
Fixed a bug that made RegQueryValuexxx returning
incorrect registry values.
Fri Apr 17 22:59:22 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/lstr.c]
FormatMessage32*: remove linefeed when nolinefeed set;
check for target underflow.
Fri Apr 17 00:38:14 1998 Alexander V. Lukyanov <lav@long.yar.ru>
* [misc/crtdll.c]
Implement xlat_file_ptr for CRT stdin/stdout/stderr address
translation.
Wed Apr 15 20:43:56 1998 Jim Peterson <jspeter@birch.ee.vt.edu>
* [controls/menu.c]
Added 'odaction' parameter to MENU_DrawMenuItem() and redirected
WM_DRAWITEM messages to GetWindow(hwnd,GW_OWNER).
Tue Apr 14 16:17:55 1998 Berend Reitsma <berend@united-info.com>
* [graphics/metafiledrv/init.c] [graphics/painting.c]
[graphics/win16drv/init.c] [graphics/x11drv/graphics.c]
[graphics/x11drv/init.c] [include/gdi.h] [include/x11drv.h]
[relay32/gdi32.spec]
Added PolyPolyline routine.
* [windows/winproc.c]
Changed WINPROC_GetProc() to return proc instead of &(jmp proc).
1998-05-03 21:01:20 +02:00
|
|
|
*/
|
2005-05-17 16:41:37 +02:00
|
|
|
HRESULT WINAPI 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 21:01:20 +02:00
|
|
|
{
|
|
|
|
return S_FALSE;
|
|
|
|
}
|
2004-08-20 22:01:31 +02:00
|
|
|
|
|
|
|
#define INIT_GUID(guid, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
|
|
|
|
guid.Data1 = l; guid.Data2 = w1; guid.Data3 = w2; \
|
|
|
|
guid.Data4[0] = b1; guid.Data4[1] = b2; guid.Data4[2] = b3; \
|
|
|
|
guid.Data4[3] = b4; guid.Data4[4] = b5; guid.Data4[5] = b6; \
|
|
|
|
guid.Data4[6] = b7; guid.Data4[7] = b8;
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* DllMain (DSOUND.init)
|
|
|
|
*/
|
|
|
|
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
|
|
|
|
{
|
2006-11-12 14:40:35 +01:00
|
|
|
TRACE("(%p %d %p)\n", hInstDLL, fdwReason, lpvReserved);
|
2004-08-20 22:01:31 +02:00
|
|
|
|
|
|
|
switch (fdwReason) {
|
|
|
|
case DLL_PROCESS_ATTACH:
|
|
|
|
TRACE("DLL_PROCESS_ATTACH\n");
|
2010-12-03 14:03:22 +01:00
|
|
|
instance = hInstDLL;
|
2007-08-30 14:50:32 +02:00
|
|
|
DisableThreadLibraryCalls(hInstDLL);
|
|
|
|
/* Increase refcount on dsound by 1 */
|
|
|
|
GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS, (LPCWSTR)hInstDLL, &hInstDLL);
|
2004-08-20 22:01:31 +02:00
|
|
|
break;
|
|
|
|
case DLL_PROCESS_DETACH:
|
|
|
|
TRACE("DLL_PROCESS_DETACH\n");
|
2011-11-15 14:39:26 +01:00
|
|
|
DeleteCriticalSection(&DSOUND_renderers_lock);
|
|
|
|
DeleteCriticalSection(&DSOUND_capturers_lock);
|
2004-08-20 22:01:31 +02:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
TRACE("UNKNOWN REASON\n");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|
2010-12-03 14:03:22 +01:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* DllRegisterServer (DSOUND.@)
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI DllRegisterServer(void)
|
|
|
|
{
|
2011-08-02 15:51:55 +02:00
|
|
|
return __wine_register_resources( instance );
|
2010-12-03 14:03:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* DllUnregisterServer (DSOUND.@)
|
|
|
|
*/
|
|
|
|
HRESULT WINAPI DllUnregisterServer(void)
|
|
|
|
{
|
2011-08-02 15:51:55 +02:00
|
|
|
return __wine_unregister_resources( instance );
|
2010-12-03 14:03:22 +01:00
|
|
|
}
|