2004-01-07 00:43:40 +00:00
|
|
|
/*
|
|
|
|
* WineCfg libraries tabsheet
|
|
|
|
*
|
|
|
|
* Copyright 2004 Robert van Herk
|
2004-09-28 03:55:16 +00:00
|
|
|
* Copyright 2004 Mike Hearn
|
2004-01-07 00:43:40 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 12:49:52 +00:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2004-01-07 00:43:40 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2006-01-16 19:41:34 +00:00
|
|
|
#define WIN32_LEAN_AND_MEAN
|
2004-01-07 00:43:40 +00:00
|
|
|
#include <windows.h>
|
|
|
|
#include <commdlg.h>
|
|
|
|
#include <stdio.h>
|
2004-09-28 03:55:16 +00:00
|
|
|
#include <assert.h>
|
2006-02-04 16:04:22 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
2004-01-07 00:43:40 +00:00
|
|
|
#include "winecfg.h"
|
|
|
|
#include "resource.h"
|
2021-09-07 11:23:32 +00:00
|
|
|
#include "wine/debug.h"
|
2004-01-07 00:43:40 +00:00
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(winecfg);
|
|
|
|
|
2021-04-26 12:14:20 +00:00
|
|
|
#ifdef __i386__
|
2021-09-07 15:14:22 +00:00
|
|
|
static const WCHAR pe_dir[] = L"\\i386-windows";
|
2021-04-26 12:14:20 +00:00
|
|
|
#elif defined __x86_64__
|
2021-09-07 15:14:22 +00:00
|
|
|
static const WCHAR pe_dir[] = L"\\x86_64-windows";
|
2021-04-26 12:14:20 +00:00
|
|
|
#elif defined __arm__
|
2021-09-07 15:14:22 +00:00
|
|
|
static const WCHAR pe_dir[] = L"\\arm-windows";
|
2021-04-26 12:14:20 +00:00
|
|
|
#elif defined __aarch64__
|
2021-09-07 15:14:22 +00:00
|
|
|
static const WCHAR pe_dir[] = L"\\aarch64-windows";
|
2021-04-26 12:14:20 +00:00
|
|
|
#else
|
2021-09-07 15:14:22 +00:00
|
|
|
static const WCHAR pe_dir[] = L"";
|
2021-04-26 12:14:20 +00:00
|
|
|
#endif
|
|
|
|
|
2006-02-04 16:04:22 +00:00
|
|
|
/* dlls that shouldn't be configured anything other than builtin; list must be sorted*/
|
2021-09-07 15:14:22 +00:00
|
|
|
static const WCHAR * const builtin_only[] =
|
2006-02-04 16:04:22 +00:00
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
L"advapi32",
|
|
|
|
L"capi2032",
|
|
|
|
L"dbghelp",
|
|
|
|
L"ddraw",
|
|
|
|
L"gdi32",
|
|
|
|
L"gphoto2.ds",
|
|
|
|
L"icmp",
|
|
|
|
L"iphlpapi",
|
|
|
|
L"kernel32",
|
|
|
|
L"l3codeca.acm",
|
|
|
|
L"mountmgr.sys",
|
|
|
|
L"mswsock",
|
|
|
|
L"ntdll",
|
|
|
|
L"ntoskrnl.exe",
|
|
|
|
L"opengl32",
|
|
|
|
L"sane.ds",
|
|
|
|
L"secur32",
|
|
|
|
L"twain_32",
|
|
|
|
L"unicows",
|
|
|
|
L"user32",
|
|
|
|
L"vdmdbg",
|
|
|
|
L"w32skrnl",
|
|
|
|
L"winmm",
|
|
|
|
L"wintab32",
|
|
|
|
L"wnaspi32",
|
|
|
|
L"wow32",
|
|
|
|
L"ws2_32",
|
|
|
|
L"wsock32",
|
2006-02-04 16:04:22 +00:00
|
|
|
};
|
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
enum dllmode
|
2004-01-07 00:43:40 +00:00
|
|
|
{
|
2004-02-17 20:26:15 +00:00
|
|
|
BUILTIN_NATIVE,
|
|
|
|
NATIVE_BUILTIN,
|
2004-01-07 00:43:40 +00:00
|
|
|
BUILTIN,
|
2004-02-17 20:26:15 +00:00
|
|
|
NATIVE,
|
|
|
|
DISABLE,
|
2008-04-07 11:01:02 +00:00
|
|
|
UNKNOWN /* Special value indicating an erroneous DLL override mode */
|
2004-09-28 03:55:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct dll
|
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
WCHAR *name;
|
2004-09-28 03:55:16 +00:00
|
|
|
enum dllmode mode;
|
|
|
|
};
|
2004-01-07 00:43:40 +00:00
|
|
|
|
2012-01-20 11:42:33 +00:00
|
|
|
static const WCHAR emptyW[1];
|
|
|
|
|
2005-01-14 19:48:41 +00:00
|
|
|
/* Convert a registry string to a dllmode */
|
2021-09-07 15:14:22 +00:00
|
|
|
static enum dllmode string_to_mode(const WCHAR *in)
|
2004-02-17 20:26:15 +00:00
|
|
|
{
|
2005-01-14 19:48:41 +00:00
|
|
|
int i, j, len;
|
2021-09-07 15:14:22 +00:00
|
|
|
WCHAR *out;
|
2005-01-14 19:48:41 +00:00
|
|
|
enum dllmode res;
|
2004-09-28 03:55:16 +00:00
|
|
|
|
2021-09-07 15:14:22 +00:00
|
|
|
len = wcslen(in);
|
|
|
|
out = HeapAlloc(GetProcessHeap(), 0, (len + 1) * sizeof(WCHAR));
|
2004-09-28 03:55:16 +00:00
|
|
|
|
|
|
|
/* remove the spaces */
|
2005-01-14 19:48:41 +00:00
|
|
|
for (i = j = 0; i <= len; ++i) {
|
|
|
|
if (in[i] != ' ') {
|
|
|
|
out[j++] = in[i];
|
2004-09-28 03:55:16 +00:00
|
|
|
}
|
2004-02-17 20:26:15 +00:00
|
|
|
}
|
2004-09-28 03:55:16 +00:00
|
|
|
|
|
|
|
/* parse the string */
|
2005-01-14 19:48:41 +00:00
|
|
|
res = UNKNOWN;
|
2021-09-07 15:14:22 +00:00
|
|
|
if (wcscmp(out, L"builtin,native") == 0) res = BUILTIN_NATIVE;
|
|
|
|
if (wcscmp(out, L"native,builtin") == 0) res = NATIVE_BUILTIN;
|
|
|
|
if (wcscmp(out, L"builtin") == 0) res = BUILTIN;
|
|
|
|
if (wcscmp(out, L"native") == 0) res = NATIVE;
|
|
|
|
if (wcscmp(out, L"") == 0) res = DISABLE;
|
2005-01-14 19:48:41 +00:00
|
|
|
|
|
|
|
HeapFree(GetProcessHeap(), 0, out);
|
|
|
|
return res;
|
|
|
|
}
|
2004-02-17 20:26:15 +00:00
|
|
|
|
2005-01-14 19:48:41 +00:00
|
|
|
/* Convert a dllmode to a registry string. */
|
2021-09-07 15:14:22 +00:00
|
|
|
static const WCHAR* mode_to_string(enum dllmode mode)
|
2005-01-14 19:48:41 +00:00
|
|
|
{
|
2005-01-17 13:41:58 +00:00
|
|
|
switch( mode )
|
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
case NATIVE: return L"native";
|
|
|
|
case BUILTIN: return L"builtin";
|
|
|
|
case NATIVE_BUILTIN: return L"native,builtin";
|
|
|
|
case BUILTIN_NATIVE: return L"builtin,native";
|
|
|
|
case DISABLE: return L"";
|
|
|
|
default: return L"";
|
2005-01-17 13:41:58 +00:00
|
|
|
}
|
2004-02-17 20:26:15 +00:00
|
|
|
}
|
|
|
|
|
2005-01-14 19:48:41 +00:00
|
|
|
/* Convert a dllmode to a pretty string for display. TODO: use translations. */
|
2021-09-07 15:14:22 +00:00
|
|
|
static const WCHAR* mode_to_label(enum dllmode mode)
|
2004-02-17 20:26:15 +00:00
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
static WCHAR buffer[256];
|
2006-02-04 16:05:14 +00:00
|
|
|
UINT id = 0;
|
|
|
|
|
|
|
|
switch( mode )
|
|
|
|
{
|
|
|
|
case NATIVE: id = IDS_DLL_NATIVE; break;
|
|
|
|
case BUILTIN: id = IDS_DLL_BUILTIN; break;
|
|
|
|
case NATIVE_BUILTIN: id = IDS_DLL_NATIVE_BUILTIN; break;
|
|
|
|
case BUILTIN_NATIVE: id = IDS_DLL_BUILTIN_NATIVE; break;
|
|
|
|
case DISABLE: id = IDS_DLL_DISABLED; break;
|
2021-09-07 15:14:22 +00:00
|
|
|
default: return L"??";
|
2006-02-04 16:05:14 +00:00
|
|
|
}
|
2021-09-07 15:14:22 +00:00
|
|
|
if (!LoadStringW( GetModuleHandleW(NULL), id, buffer, ARRAY_SIZE(buffer) )) buffer[0] = 0;
|
2006-02-04 16:05:14 +00:00
|
|
|
return buffer;
|
2005-01-14 19:48:41 +00:00
|
|
|
}
|
2004-09-28 03:55:16 +00:00
|
|
|
|
2005-01-14 19:48:41 +00:00
|
|
|
/* Convert a control id (IDC_ constant) to a dllmode */
|
|
|
|
static enum dllmode id_to_mode(DWORD id)
|
|
|
|
{
|
2005-01-17 13:41:58 +00:00
|
|
|
switch( id )
|
|
|
|
{
|
|
|
|
case IDC_RAD_BUILTIN: return BUILTIN;
|
|
|
|
case IDC_RAD_NATIVE: return NATIVE;
|
|
|
|
case IDC_RAD_NATIVE_BUILTIN: return NATIVE_BUILTIN;
|
|
|
|
case IDC_RAD_BUILTIN_NATIVE: return BUILTIN_NATIVE;
|
|
|
|
case IDC_RAD_DISABLE: return DISABLE;
|
|
|
|
default: assert( FALSE ); return 0; /* should not be reached */
|
|
|
|
}
|
2005-01-14 19:48:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Convert a dllmode to a control id (IDC_ constant) */
|
|
|
|
static DWORD mode_to_id(enum dllmode mode)
|
|
|
|
{
|
2005-01-17 13:41:58 +00:00
|
|
|
switch( mode )
|
|
|
|
{
|
|
|
|
case BUILTIN: return IDC_RAD_BUILTIN;
|
|
|
|
case NATIVE: return IDC_RAD_NATIVE;
|
|
|
|
case NATIVE_BUILTIN: return IDC_RAD_NATIVE_BUILTIN;
|
|
|
|
case BUILTIN_NATIVE: return IDC_RAD_BUILTIN_NATIVE;
|
|
|
|
case DISABLE: return IDC_RAD_DISABLE;
|
2010-05-19 09:26:29 +00:00
|
|
|
default: return IDC_RAD_BUILTIN_NATIVE;
|
2005-01-17 13:41:58 +00:00
|
|
|
}
|
2004-02-17 20:26:15 +00:00
|
|
|
}
|
|
|
|
|
2006-02-04 16:04:22 +00:00
|
|
|
/* helper for is_builtin_only */
|
2021-09-07 11:23:32 +00:00
|
|
|
static int __cdecl compare_dll( const void *ptr1, const void *ptr2 )
|
2006-02-04 16:04:22 +00:00
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
const WCHAR * const *name1 = ptr1;
|
|
|
|
const WCHAR * const *name2 = ptr2;
|
|
|
|
return wcscmp( *name1, *name2 );
|
2006-02-04 16:04:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* check if dll is recommended as builtin only */
|
2021-09-07 15:14:22 +00:00
|
|
|
static inline BOOL is_builtin_only( const WCHAR *name )
|
2006-02-04 16:04:22 +00:00
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
const WCHAR *ext = wcsrchr( name, '.' );
|
2009-02-27 15:05:30 +00:00
|
|
|
|
|
|
|
if (ext)
|
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
if (!wcscmp( ext, L".vxd" ) ||
|
|
|
|
!wcscmp( ext, L".drv" ) ||
|
|
|
|
!wcscmp( ext, L".tlb" ))
|
2009-02-27 15:05:30 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
2021-09-07 15:14:22 +00:00
|
|
|
if (!wcsncmp( name, L"wine", 4 )) return TRUE;
|
2018-05-17 22:17:06 +00:00
|
|
|
return bsearch( &name, builtin_only, ARRAY_SIZE(builtin_only),
|
2006-02-04 16:04:22 +00:00
|
|
|
sizeof(builtin_only[0]), compare_dll ) != NULL;
|
|
|
|
}
|
|
|
|
|
2009-02-27 15:05:30 +00:00
|
|
|
/* check if dll should be offered in the drop-down list */
|
2021-09-07 15:14:22 +00:00
|
|
|
static BOOL show_dll_in_list( const WCHAR *name )
|
2009-02-27 15:05:30 +00:00
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
const WCHAR *ext = wcsrchr( name, '.' );
|
2009-02-27 15:05:30 +00:00
|
|
|
|
|
|
|
if (ext)
|
|
|
|
{
|
|
|
|
/* skip 16-bit dlls */
|
2021-09-07 15:14:22 +00:00
|
|
|
if (wcslen(ext) > 2 && !wcscmp( ext + wcslen(ext) - 2, L"16" )) return FALSE;
|
2009-02-27 15:05:30 +00:00
|
|
|
/* skip exes */
|
2021-09-07 15:14:22 +00:00
|
|
|
if (!wcscmp( ext, L".exe" )) return FALSE;
|
2009-02-27 15:05:30 +00:00
|
|
|
}
|
|
|
|
/* skip dlls that should always be builtin */
|
|
|
|
return !is_builtin_only( name );
|
|
|
|
}
|
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
static void set_controls_from_selection(HWND dialog)
|
2004-01-07 00:43:40 +00:00
|
|
|
{
|
2011-07-27 09:46:59 +00:00
|
|
|
/* FIXME: display/update some information about the selected dll (purpose, recommended load order) maybe? */
|
2004-01-07 00:43:40 +00:00
|
|
|
}
|
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
static void clear_settings(HWND dialog)
|
2004-01-07 00:43:40 +00:00
|
|
|
{
|
2012-01-20 11:42:33 +00:00
|
|
|
int count = SendDlgItemMessageW(dialog, IDC_DLLS_LIST, LB_GETCOUNT, 0, 0);
|
2004-09-28 03:55:16 +00:00
|
|
|
int i;
|
2004-01-07 00:43:40 +00:00
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
WINE_TRACE("count=%d\n", count);
|
|
|
|
|
|
|
|
for (i = 0; i < count; i++)
|
|
|
|
{
|
2012-01-20 11:42:33 +00:00
|
|
|
struct dll *dll = (struct dll *) SendDlgItemMessageW(dialog, IDC_DLLS_LIST, LB_GETITEMDATA, 0, 0);
|
|
|
|
|
|
|
|
SendDlgItemMessageW(dialog, IDC_DLLS_LIST, LB_DELETESTRING, 0, 0);
|
2004-09-28 03:55:16 +00:00
|
|
|
HeapFree(GetProcessHeap(), 0, dll->name);
|
|
|
|
HeapFree(GetProcessHeap(), 0, dll);
|
|
|
|
}
|
2004-01-07 00:43:40 +00:00
|
|
|
}
|
|
|
|
|
2006-02-04 16:04:22 +00:00
|
|
|
/* load the list of available libraries from a given dir */
|
2021-09-07 15:14:22 +00:00
|
|
|
static void load_library_list_from_dir( HWND dialog, const WCHAR *dir_path, int check_subdirs )
|
2006-02-04 16:04:22 +00:00
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
static const WCHAR * const ext[] = { L".dll", L".dll.so", L".so", L"" };
|
|
|
|
WCHAR *buffer, *p, name[256];
|
2020-01-14 11:20:23 +00:00
|
|
|
unsigned int i;
|
2020-04-17 10:38:12 +00:00
|
|
|
HANDLE handle;
|
2021-09-07 15:14:22 +00:00
|
|
|
WIN32_FIND_DATAW data;
|
2006-02-04 16:04:22 +00:00
|
|
|
|
2021-09-07 15:14:22 +00:00
|
|
|
buffer = HeapAlloc( GetProcessHeap(), 0, (wcslen(dir_path) + 10) * sizeof(WCHAR) + 2 * sizeof(name) );
|
2006-02-04 16:04:22 +00:00
|
|
|
|
2021-09-07 15:14:22 +00:00
|
|
|
wcscpy( buffer, dir_path );
|
|
|
|
wcscat( buffer, L"\\*" );
|
2020-04-17 10:38:12 +00:00
|
|
|
buffer[1] = '\\'; /* change \??\ to \\?\ */
|
2021-09-07 15:14:22 +00:00
|
|
|
p = buffer + wcslen(buffer) - 1;
|
2006-03-17 12:09:54 +00:00
|
|
|
|
2021-09-07 15:14:22 +00:00
|
|
|
if ((handle = FindFirstFileW( buffer, &data )) == INVALID_HANDLE_VALUE)
|
2006-02-04 16:04:22 +00:00
|
|
|
{
|
2020-04-17 10:38:12 +00:00
|
|
|
HeapFree( GetProcessHeap(), 0, buffer );
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
do
|
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
size_t len = wcslen(data.cFileName);
|
|
|
|
if (len > ARRAY_SIZE(name)) continue;
|
2020-01-14 11:20:23 +00:00
|
|
|
if (check_subdirs)
|
2006-03-17 12:09:54 +00:00
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
if (!wcscmp( data.cFileName, L"." )) continue;
|
|
|
|
if (!wcscmp( data.cFileName, L".." )) continue;
|
2020-04-17 10:38:12 +00:00
|
|
|
if (!show_dll_in_list( data.cFileName )) continue;
|
2020-01-14 11:20:23 +00:00
|
|
|
for (i = 0; i < ARRAY_SIZE( ext ); i++)
|
2009-02-27 15:05:30 +00:00
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
swprintf( p, 2 * ARRAY_SIZE(name) + 10, L"%s\\%s%s", data.cFileName, data.cFileName, ext[i] );
|
|
|
|
if (GetFileAttributesW( buffer ) != INVALID_FILE_ATTRIBUTES)
|
2020-01-14 11:20:23 +00:00
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
SendDlgItemMessageW( dialog, IDC_DLLCOMBO, CB_ADDSTRING, 0, (LPARAM)data.cFileName );
|
2020-01-14 11:20:23 +00:00
|
|
|
break;
|
|
|
|
}
|
2009-02-27 15:05:30 +00:00
|
|
|
}
|
2020-01-14 11:20:23 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
for (i = 0; i < ARRAY_SIZE( ext ); i++)
|
2009-02-27 15:05:30 +00:00
|
|
|
{
|
2020-01-14 11:20:23 +00:00
|
|
|
if (!ext[i][0]) continue;
|
2021-09-07 15:14:22 +00:00
|
|
|
if (len > wcslen(ext[i]) && !wcscmp( data.cFileName + len - wcslen(ext[i]), ext[i]))
|
2020-01-14 11:20:23 +00:00
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
len -= wcslen( ext[i] );
|
|
|
|
memcpy( name, data.cFileName, len * sizeof(WCHAR) );
|
2020-01-14 11:20:23 +00:00
|
|
|
name[len] = 0;
|
|
|
|
if (!show_dll_in_list( name )) continue;
|
2021-09-07 15:14:22 +00:00
|
|
|
SendDlgItemMessageW( dialog, IDC_DLLCOMBO, CB_ADDSTRING, 0, (LPARAM)name );
|
2020-01-14 11:20:23 +00:00
|
|
|
}
|
2009-02-27 15:05:30 +00:00
|
|
|
}
|
2006-03-17 12:09:54 +00:00
|
|
|
}
|
2021-09-07 15:14:22 +00:00
|
|
|
} while (FindNextFileW( handle, &data ));
|
2020-04-17 10:38:12 +00:00
|
|
|
|
|
|
|
FindClose( handle );
|
2006-03-17 12:09:54 +00:00
|
|
|
HeapFree( GetProcessHeap(), 0, buffer );
|
2006-02-04 16:04:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* load the list of available libraries */
|
|
|
|
static void load_library_list( HWND dialog )
|
|
|
|
{
|
|
|
|
unsigned int i = 0;
|
2021-09-07 15:14:22 +00:00
|
|
|
WCHAR item1[256], item2[256], var[32], path[MAX_PATH];
|
2012-01-20 11:42:33 +00:00
|
|
|
HCURSOR old_cursor = SetCursor( LoadCursorW(0, (LPWSTR)IDC_WAIT) );
|
2006-03-17 12:09:54 +00:00
|
|
|
|
2021-09-07 15:14:22 +00:00
|
|
|
if (GetEnvironmentVariableW( L"WINEBUILDDIR", path, MAX_PATH ))
|
2006-03-17 12:09:54 +00:00
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
WCHAR *dir = HeapAlloc( GetProcessHeap(), 0, wcslen(path) * sizeof(WCHAR) + sizeof(L"\\dlls") );
|
|
|
|
wcscpy( dir, path );
|
|
|
|
wcscat( dir, L"\\dlls" );
|
2006-03-17 12:09:54 +00:00
|
|
|
load_library_list_from_dir( dialog, dir, TRUE );
|
|
|
|
HeapFree( GetProcessHeap(), 0, dir );
|
|
|
|
}
|
2006-02-04 16:04:22 +00:00
|
|
|
|
2020-04-17 10:38:12 +00:00
|
|
|
for (;;)
|
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
swprintf( var, ARRAY_SIZE(var), L"WINEDLLDIR%u", i++ );
|
|
|
|
if (!GetEnvironmentVariableW( var, path, MAX_PATH )) break;
|
2006-03-17 12:09:54 +00:00
|
|
|
load_library_list_from_dir( dialog, path, FALSE );
|
2021-09-07 15:14:22 +00:00
|
|
|
wcscat( path, pe_dir );
|
2021-04-26 12:14:20 +00:00
|
|
|
load_library_list_from_dir( dialog, path, FALSE );
|
2020-04-17 10:38:12 +00:00
|
|
|
}
|
2006-02-04 16:04:22 +00:00
|
|
|
|
|
|
|
/* get rid of duplicate entries */
|
|
|
|
|
2021-09-07 15:14:22 +00:00
|
|
|
SendDlgItemMessageW( dialog, IDC_DLLCOMBO, CB_GETLBTEXT, 0, (LPARAM)item1 );
|
2006-02-04 16:04:22 +00:00
|
|
|
i = 1;
|
2021-09-07 15:14:22 +00:00
|
|
|
while (SendDlgItemMessageW( dialog, IDC_DLLCOMBO, CB_GETLBTEXT, i, (LPARAM)item2 ) >= 0)
|
2006-02-04 16:04:22 +00:00
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
if (!wcscmp( item1, item2 ))
|
2006-02-04 16:04:22 +00:00
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
SendDlgItemMessageW( dialog, IDC_DLLCOMBO, CB_DELETESTRING, i, 0 );
|
2006-02-04 16:04:22 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
wcscpy( item1, item2 );
|
2006-02-04 16:04:22 +00:00
|
|
|
i++;
|
|
|
|
}
|
|
|
|
}
|
2006-03-17 12:09:54 +00:00
|
|
|
SetCursor( old_cursor );
|
2006-02-04 16:04:22 +00:00
|
|
|
}
|
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
static void load_library_settings(HWND dialog)
|
2004-01-07 00:43:40 +00:00
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
WCHAR **overrides = enumerate_values(config_key, keypath(L"DllOverrides"));
|
|
|
|
WCHAR **p;
|
2004-09-28 03:55:16 +00:00
|
|
|
int sel, count = 0;
|
2004-01-07 00:43:40 +00:00
|
|
|
|
2012-01-20 11:42:33 +00:00
|
|
|
sel = SendDlgItemMessageW(dialog, IDC_DLLS_LIST, LB_GETCURSEL, 0, 0);
|
2004-01-07 00:43:40 +00:00
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
WINE_TRACE("sel=%d\n", sel);
|
2004-01-07 00:43:40 +00:00
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
clear_settings(dialog);
|
|
|
|
|
|
|
|
if (!overrides || *overrides == NULL)
|
|
|
|
{
|
|
|
|
set_controls_from_selection(dialog);
|
2005-07-06 19:05:24 +00:00
|
|
|
disable(IDC_DLLS_EDITDLL);
|
2004-09-28 03:55:16 +00:00
|
|
|
disable(IDC_DLLS_REMOVEDLL);
|
|
|
|
HeapFree(GetProcessHeap(), 0, overrides);
|
|
|
|
return;
|
|
|
|
}
|
2004-01-07 00:43:40 +00:00
|
|
|
|
2005-07-06 19:05:24 +00:00
|
|
|
enable(IDC_DLLS_EDITDLL);
|
2004-09-28 03:55:16 +00:00
|
|
|
enable(IDC_DLLS_REMOVEDLL);
|
|
|
|
|
|
|
|
for (p = overrides; *p != NULL; p++)
|
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
int index, len;
|
|
|
|
WCHAR *str, *value;
|
|
|
|
const WCHAR *label;
|
2004-09-28 03:55:16 +00:00
|
|
|
struct dll *dll;
|
2004-01-07 00:43:40 +00:00
|
|
|
|
2021-09-07 15:14:22 +00:00
|
|
|
value = get_reg_key(config_key, keypath(L"DllOverrides"), *p, NULL);
|
2004-01-07 00:43:40 +00:00
|
|
|
|
2005-01-14 19:48:41 +00:00
|
|
|
label = mode_to_label(string_to_mode(value));
|
2021-09-07 15:14:22 +00:00
|
|
|
|
|
|
|
len = wcslen(*p) + 2 + wcslen(label) + 2;
|
|
|
|
str = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR) );
|
|
|
|
swprintf( str, len, L"%s (%s)", *p, label );
|
2004-01-07 00:43:40 +00:00
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
dll = HeapAlloc(GetProcessHeap(), 0, sizeof(struct dll));
|
|
|
|
dll->name = *p;
|
2005-01-14 19:48:41 +00:00
|
|
|
dll->mode = string_to_mode(value);
|
2004-01-07 00:43:40 +00:00
|
|
|
|
2021-09-07 15:14:22 +00:00
|
|
|
index = SendDlgItemMessageW(dialog, IDC_DLLS_LIST, LB_ADDSTRING, (WPARAM) -1, (LPARAM) str);
|
2012-01-20 11:42:33 +00:00
|
|
|
SendDlgItemMessageW(dialog, IDC_DLLS_LIST, LB_SETITEMDATA, index, (LPARAM) dll);
|
2004-01-07 00:43:40 +00:00
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
HeapFree(GetProcessHeap(), 0, str);
|
2004-01-07 00:43:40 +00:00
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
count++;
|
|
|
|
}
|
2004-01-07 00:43:40 +00:00
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
HeapFree(GetProcessHeap(), 0, overrides);
|
2004-01-07 00:43:40 +00:00
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
/* restore the previous selection, if possible */
|
|
|
|
if (sel >= count - 1) sel = count - 1;
|
|
|
|
else if (sel == -1) sel = 0;
|
2012-01-20 11:42:33 +00:00
|
|
|
|
|
|
|
SendDlgItemMessageW(dialog, IDC_DLLS_LIST, LB_SETCURSEL, sel, 0);
|
2004-02-17 20:26:15 +00:00
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
set_controls_from_selection(dialog);
|
2004-02-17 20:26:15 +00:00
|
|
|
}
|
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
/* Called when the application is initialized (cannot reinit!) */
|
|
|
|
static void init_libsheet(HWND dialog)
|
2004-02-17 20:26:15 +00:00
|
|
|
{
|
2004-09-28 03:55:16 +00:00
|
|
|
/* clear the add dll controls */
|
2012-01-20 11:42:33 +00:00
|
|
|
SendDlgItemMessageW(dialog, IDC_DLLCOMBO, WM_SETTEXT, 1, (LPARAM)emptyW);
|
2006-02-04 16:04:22 +00:00
|
|
|
load_library_list( dialog );
|
2004-09-28 03:55:16 +00:00
|
|
|
disable(IDC_DLLS_ADDDLL);
|
2004-02-17 20:26:15 +00:00
|
|
|
}
|
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
static void on_add_combo_change(HWND dialog)
|
2004-01-07 00:43:40 +00:00
|
|
|
{
|
2012-01-20 11:42:33 +00:00
|
|
|
WCHAR buffer[1024];
|
2008-01-31 17:08:32 +00:00
|
|
|
int sel, len;
|
2004-09-28 03:55:16 +00:00
|
|
|
|
2018-05-17 22:17:06 +00:00
|
|
|
SendDlgItemMessageW(dialog, IDC_DLLCOMBO, WM_GETTEXT, ARRAY_SIZE(buffer), (LPARAM)buffer);
|
2008-04-07 11:01:02 +00:00
|
|
|
/* if lib was chosen from combobox, we receive an empty buffer, check manually */
|
2012-01-20 11:42:33 +00:00
|
|
|
sel=SendDlgItemMessageW(dialog, IDC_DLLCOMBO, CB_GETCURSEL, 0, 0);
|
|
|
|
len=SendDlgItemMessageW(dialog, IDC_DLLCOMBO, CB_GETLBTEXTLEN, sel, 0);
|
2004-09-28 03:55:16 +00:00
|
|
|
|
2012-01-20 11:42:33 +00:00
|
|
|
if (buffer[0] || len>0)
|
2015-02-07 07:00:34 +00:00
|
|
|
{
|
2004-09-28 03:55:16 +00:00
|
|
|
enable(IDC_DLLS_ADDDLL)
|
2015-02-07 07:00:34 +00:00
|
|
|
SendMessageW(GetParent(dialog), DM_SETDEFID, IDC_DLLS_ADDDLL, 0);
|
|
|
|
}
|
2004-09-28 03:55:16 +00:00
|
|
|
else
|
2015-02-07 07:00:34 +00:00
|
|
|
{
|
2004-09-28 03:55:16 +00:00
|
|
|
disable(IDC_DLLS_ADDDLL);
|
2015-02-07 07:00:34 +00:00
|
|
|
SendMessageW(GetParent(dialog), DM_SETDEFID, IDOK, 0);
|
|
|
|
}
|
2004-01-07 00:43:40 +00:00
|
|
|
}
|
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
static void set_dllmode(HWND dialog, DWORD id)
|
2004-01-07 00:43:40 +00:00
|
|
|
{
|
2004-09-28 03:55:16 +00:00
|
|
|
enum dllmode mode;
|
|
|
|
struct dll *dll;
|
|
|
|
int sel;
|
2021-09-07 15:14:22 +00:00
|
|
|
const WCHAR *str;
|
2004-09-28 03:55:16 +00:00
|
|
|
|
2005-01-14 19:48:41 +00:00
|
|
|
mode = id_to_mode(id);
|
2004-09-28 03:55:16 +00:00
|
|
|
|
2012-01-20 11:42:33 +00:00
|
|
|
sel = SendDlgItemMessageW(dialog, IDC_DLLS_LIST, LB_GETCURSEL, 0, 0);
|
2004-09-28 03:55:16 +00:00
|
|
|
if (sel == -1) return;
|
2012-01-20 11:42:33 +00:00
|
|
|
|
|
|
|
dll = (struct dll *) SendDlgItemMessageW(dialog, IDC_DLLS_LIST, LB_GETITEMDATA, sel, 0);
|
2004-09-28 03:55:16 +00:00
|
|
|
|
2005-01-14 19:48:41 +00:00
|
|
|
str = mode_to_string(mode);
|
2021-09-07 15:14:22 +00:00
|
|
|
WINE_TRACE("Setting %s to %s\n", debugstr_w(dll->name), debugstr_w(str));
|
2012-01-20 11:42:33 +00:00
|
|
|
|
|
|
|
SendMessageW(GetParent(dialog), PSM_CHANGED, 0, 0);
|
2021-09-07 15:14:22 +00:00
|
|
|
set_reg_key(config_key, keypath(L"DllOverrides"), dll->name, str);
|
2004-09-28 03:55:16 +00:00
|
|
|
|
|
|
|
load_library_settings(dialog); /* ... and refresh */
|
2004-01-07 00:43:40 +00:00
|
|
|
}
|
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
static void on_add_click(HWND dialog)
|
2004-01-07 00:43:40 +00:00
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
WCHAR buffer[1024], *ptr;
|
2004-09-28 03:55:16 +00:00
|
|
|
|
2021-09-07 15:14:22 +00:00
|
|
|
buffer[0] = 0;
|
|
|
|
SendDlgItemMessageW(dialog, IDC_DLLCOMBO, WM_GETTEXT, ARRAY_SIZE(buffer), (LPARAM) buffer);
|
|
|
|
if (wcslen(buffer) > 4)
|
2005-10-04 11:29:48 +00:00
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
ptr = buffer + wcslen(buffer) - 4;
|
|
|
|
if (!wcsicmp(ptr, L".dll"))
|
2005-10-04 11:29:48 +00:00
|
|
|
{
|
|
|
|
WINE_TRACE("Stripping dll extension\n");
|
|
|
|
*ptr = '\0';
|
|
|
|
}
|
|
|
|
}
|
2006-02-04 16:05:14 +00:00
|
|
|
|
|
|
|
/* check if dll is in the builtin-only list */
|
2021-09-07 15:14:22 +00:00
|
|
|
if (!(ptr = wcsrchr( buffer, '\\' )))
|
2006-02-04 16:05:14 +00:00
|
|
|
{
|
|
|
|
ptr = buffer;
|
|
|
|
if (*ptr == '*') ptr++;
|
|
|
|
}
|
|
|
|
else ptr++;
|
|
|
|
if (is_builtin_only( ptr ))
|
|
|
|
{
|
2021-09-07 15:14:22 +00:00
|
|
|
MSGBOXPARAMSW params;
|
2006-02-04 16:05:14 +00:00
|
|
|
params.cbSize = sizeof(params);
|
|
|
|
params.hwndOwner = dialog;
|
2021-09-07 15:14:22 +00:00
|
|
|
params.hInstance = GetModuleHandleW( NULL );
|
|
|
|
params.lpszText = MAKEINTRESOURCEW( IDS_DLL_WARNING );
|
|
|
|
params.lpszCaption = MAKEINTRESOURCEW( IDS_DLL_WARNING_CAPTION );
|
2006-02-04 16:05:14 +00:00
|
|
|
params.dwStyle = MB_ICONWARNING | MB_YESNO;
|
|
|
|
params.lpszIcon = NULL;
|
|
|
|
params.dwContextHelpId = 0;
|
|
|
|
params.lpfnMsgBoxCallback = NULL;
|
|
|
|
params.dwLanguageId = 0;
|
2021-09-07 15:14:22 +00:00
|
|
|
if (MessageBoxIndirectW( ¶ms ) != IDYES) return;
|
2006-02-04 16:05:14 +00:00
|
|
|
}
|
|
|
|
|
2012-01-20 11:42:33 +00:00
|
|
|
SendDlgItemMessageW(dialog, IDC_DLLCOMBO, WM_SETTEXT, 0, (LPARAM)emptyW);
|
2004-09-28 03:55:16 +00:00
|
|
|
disable(IDC_DLLS_ADDDLL);
|
2015-02-07 07:00:34 +00:00
|
|
|
SendMessageW(GetParent(dialog), DM_SETDEFID, IDOK, 0);
|
|
|
|
|
2021-09-07 15:14:22 +00:00
|
|
|
WINE_TRACE("Adding %s as native, builtin\n", debugstr_w(buffer));
|
2012-01-20 11:42:33 +00:00
|
|
|
|
|
|
|
SendMessageW(GetParent(dialog), PSM_CHANGED, 0, 0);
|
2021-09-07 15:14:22 +00:00
|
|
|
set_reg_key(config_key, keypath(L"DllOverrides"), buffer, L"native,builtin");
|
2004-09-28 03:55:16 +00:00
|
|
|
|
|
|
|
load_library_settings(dialog);
|
|
|
|
|
2021-09-07 15:14:22 +00:00
|
|
|
SendDlgItemMessageW(dialog, IDC_DLLS_LIST, LB_SELECTSTRING, 0, (LPARAM) buffer);
|
2004-09-28 03:55:16 +00:00
|
|
|
|
|
|
|
set_controls_from_selection(dialog);
|
2004-01-07 00:43:40 +00:00
|
|
|
}
|
|
|
|
|
2005-07-06 19:05:24 +00:00
|
|
|
static INT_PTR CALLBACK loadorder_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|
|
|
{
|
|
|
|
static WORD sel;
|
|
|
|
|
|
|
|
switch(uMsg)
|
|
|
|
{
|
|
|
|
case WM_INITDIALOG:
|
|
|
|
CheckRadioButton(hwndDlg, IDC_RAD_BUILTIN, IDC_RAD_DISABLE, lParam);
|
|
|
|
sel = lParam;
|
|
|
|
return TRUE;
|
|
|
|
|
|
|
|
case WM_COMMAND:
|
|
|
|
if(HIWORD(wParam) != BN_CLICKED) break;
|
|
|
|
switch (LOWORD(wParam))
|
|
|
|
{
|
|
|
|
case IDC_RAD_BUILTIN:
|
|
|
|
case IDC_RAD_NATIVE:
|
|
|
|
case IDC_RAD_BUILTIN_NATIVE:
|
|
|
|
case IDC_RAD_NATIVE_BUILTIN:
|
|
|
|
case IDC_RAD_DISABLE:
|
|
|
|
sel = LOWORD(wParam);
|
|
|
|
return TRUE;
|
|
|
|
case IDOK:
|
|
|
|
EndDialog(hwndDlg, sel);
|
|
|
|
return TRUE;
|
|
|
|
case IDCANCEL:
|
|
|
|
EndDialog(hwndDlg, wParam);
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void on_edit_click(HWND hwnd)
|
|
|
|
{
|
2012-01-20 11:42:33 +00:00
|
|
|
INT_PTR ret;
|
|
|
|
int index = SendDlgItemMessageW(hwnd, IDC_DLLS_LIST, LB_GETCURSEL, 0, 0);
|
2005-07-06 19:05:24 +00:00
|
|
|
struct dll *dll;
|
|
|
|
DWORD id;
|
|
|
|
|
|
|
|
/* if no override is selected the edit button should be disabled... */
|
|
|
|
assert(index != -1);
|
|
|
|
|
2012-01-20 11:42:33 +00:00
|
|
|
dll = (struct dll *) SendDlgItemMessageW(hwnd, IDC_DLLS_LIST, LB_GETITEMDATA, index, 0);
|
2005-07-06 19:05:24 +00:00
|
|
|
id = mode_to_id(dll->mode);
|
2012-01-20 11:42:33 +00:00
|
|
|
|
|
|
|
ret = DialogBoxParamW(0, MAKEINTRESOURCEW(IDD_LOADORDER), hwnd, loadorder_dlgproc, id);
|
|
|
|
|
2005-07-06 19:05:24 +00:00
|
|
|
if(ret != IDCANCEL)
|
|
|
|
set_dllmode(hwnd, ret);
|
|
|
|
}
|
|
|
|
|
2004-09-28 03:55:16 +00:00
|
|
|
static void on_remove_click(HWND dialog)
|
2004-01-07 00:43:40 +00:00
|
|
|
{
|
2012-01-20 11:42:33 +00:00
|
|
|
int sel = SendDlgItemMessageW(dialog, IDC_DLLS_LIST, LB_GETCURSEL, 0, 0);
|
2004-09-28 03:55:16 +00:00
|
|
|
struct dll *dll;
|
|
|
|
|
|
|
|
if (sel == LB_ERR) return;
|
|
|
|
|
2012-01-20 11:42:33 +00:00
|
|
|
dll = (struct dll *) SendDlgItemMessageW(dialog, IDC_DLLS_LIST, LB_GETITEMDATA, sel, 0);
|
|
|
|
|
|
|
|
SendDlgItemMessageW(dialog, IDC_DLLS_LIST, LB_DELETESTRING, sel, 0);
|
|
|
|
|
|
|
|
SendMessageW(GetParent(dialog), PSM_CHANGED, 0, 0);
|
2021-09-07 15:14:22 +00:00
|
|
|
set_reg_key(config_key, keypath(L"DllOverrides"), dll->name, NULL);
|
2004-09-28 03:55:16 +00:00
|
|
|
|
|
|
|
HeapFree(GetProcessHeap(), 0, dll->name);
|
|
|
|
HeapFree(GetProcessHeap(), 0, dll);
|
|
|
|
|
2012-01-20 11:42:33 +00:00
|
|
|
if (SendDlgItemMessageW(dialog, IDC_DLLS_LIST, LB_GETCOUNT, 0, 0) > 0)
|
|
|
|
SendDlgItemMessageW(dialog, IDC_DLLS_LIST, LB_SETCURSEL, max(sel - 1, 0), 0);
|
2004-09-28 03:55:16 +00:00
|
|
|
else
|
2005-07-06 19:05:24 +00:00
|
|
|
{
|
|
|
|
disable(IDC_DLLS_EDITDLL);
|
2004-09-28 03:55:16 +00:00
|
|
|
disable(IDC_DLLS_REMOVEDLL);
|
2005-07-06 19:05:24 +00:00
|
|
|
}
|
2004-09-28 03:55:16 +00:00
|
|
|
|
|
|
|
set_controls_from_selection(dialog);
|
2004-01-07 00:43:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
LibrariesDlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|
|
|
{
|
|
|
|
switch (uMsg)
|
|
|
|
{
|
|
|
|
case WM_INITDIALOG:
|
2004-09-28 03:55:16 +00:00
|
|
|
init_libsheet(hDlg);
|
|
|
|
break;
|
|
|
|
case WM_SHOWWINDOW:
|
|
|
|
set_window_title(hDlg);
|
|
|
|
break;
|
2004-01-07 00:43:40 +00:00
|
|
|
case WM_NOTIFY:
|
|
|
|
switch (((LPNMHDR)lParam)->code) {
|
2004-09-28 03:55:16 +00:00
|
|
|
case PSN_SETACTIVE:
|
|
|
|
load_library_settings(hDlg);
|
|
|
|
break;
|
2004-01-07 00:43:40 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case WM_COMMAND:
|
|
|
|
switch(HIWORD(wParam)) {
|
2004-09-28 03:55:16 +00:00
|
|
|
case CBN_EDITCHANGE:
|
2015-02-07 07:00:34 +00:00
|
|
|
if (LOWORD(wParam) == IDC_DLLCOMBO)
|
|
|
|
on_add_combo_change(hDlg);
|
|
|
|
break;
|
|
|
|
case CBN_SETFOCUS:
|
|
|
|
if (LOWORD(wParam) == IDC_DLLCOMBO)
|
|
|
|
on_add_combo_change(hDlg);
|
|
|
|
break;
|
|
|
|
case CBN_KILLFOCUS:
|
|
|
|
if (LOWORD(wParam) == IDC_DLLCOMBO)
|
|
|
|
SendMessageW(GetParent(hDlg), DM_SETDEFID, IDOK, 0);
|
|
|
|
break;
|
2004-01-07 00:43:40 +00:00
|
|
|
case BN_CLICKED:
|
|
|
|
switch(LOWORD(wParam)) {
|
|
|
|
case IDC_DLLS_ADDDLL:
|
2004-09-28 03:55:16 +00:00
|
|
|
on_add_click(hDlg);
|
|
|
|
break;
|
2005-07-06 19:05:24 +00:00
|
|
|
case IDC_DLLS_EDITDLL:
|
|
|
|
on_edit_click(hDlg);
|
|
|
|
break;
|
2004-01-07 00:43:40 +00:00
|
|
|
case IDC_DLLS_REMOVEDLL:
|
2004-09-28 03:55:16 +00:00
|
|
|
on_remove_click(hDlg);
|
|
|
|
break;
|
2004-01-07 00:43:40 +00:00
|
|
|
}
|
|
|
|
break;
|
2004-09-28 03:55:16 +00:00
|
|
|
case LBN_SELCHANGE:
|
2006-02-04 16:04:22 +00:00
|
|
|
if(LOWORD(wParam) == IDC_DLLCOMBO)
|
|
|
|
on_add_combo_change(hDlg);
|
|
|
|
else
|
|
|
|
set_controls_from_selection(hDlg);
|
2004-09-28 03:55:16 +00:00
|
|
|
break;
|
2004-01-07 00:43:40 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|