34static const WCHAR auto_config_url[] = {
'A',
'u',
't',
'o',
'C',
'o',
'n',
'f',
'i',
'g',
'U',
'R',
'L',0};
36 'M',
'i',
'c',
'r',
'o',
's',
'o',
'f',
't',
'\\',
'W',
'i',
'n',
'd',
'o',
'w',
's',
'\\',
37 'C',
'u',
'r',
'r',
'e',
'n',
't',
'V',
'e',
'r',
's',
'i',
'o',
'n',
'\\',
38 'I',
'n',
't',
'e',
'r',
'n',
'e',
't',
' ',
'S',
'e',
't',
't',
'i',
'n',
'g',
's',0};
39static const WCHAR proxy_enable[] = {
'P',
'r',
'o',
'x',
'y',
'E',
'n',
'a',
'b',
'l',
'e',0};
40static const WCHAR proxy_server[] = {
'P',
'r',
'o',
'x',
'y',
'S',
'e',
'r',
'v',
'e',
'r',0};
41static const WCHAR connections[] = {
'C',
'o',
'n',
'n',
'e',
'c',
't',
'i',
'o',
'n',
's',0};
43 'C',
'o',
'n',
'n',
'e',
'c',
't',
'i',
'o',
'n',
'S',
'e',
't',
't',
'i',
'n',
'g',
's',0};
47#define CONNECTION_SETTINGS_VERSION 0x46
48#define CONNECTION_SETTINGS_MANUAL_PROXY 0x2
49#define CONNECTION_SETTINGS_PAC_SCRIPT 0x4
50#define CONNECTION_SETTINGS_WPAD 0x8
70 DWORD proxy_server_len;
78 if(!proxy_server_len)
return 0;
83 size += proxy_server_len;
88 if(!pac_url_len)
return 0;
103 ((
DWORD*)(*ret)->data)[0] = proxy_server_len;
108 (
char*)(*ret)->data+
pos, proxy_server_len,
NULL,
NULL);
109 pos += proxy_server_len;
112 ((
DWORD*)((*ret)->data+
pos))[0] = pac_url_len;
149 size =
sizeof(pac_url);
178 FIXME(
"unexpected structure version (%x)\n",
settings->version);
254 DWORD proxy_len, port_len, pac_script_len;
255 DWORD use_proxy, use_pac_script, use_wpad,
size;
268 (
BYTE*)&use_proxy,
sizeof(use_proxy));
274 TRACE(
"ProxyEnable set to %x\n", use_proxy);
279 proxy[proxy_len++] =
':';
284 proxy[proxy_len++] =
'8';
285 proxy[proxy_len++] =
'0';
286 proxy[proxy_len] = 0;
308 if(!pac_script_len) use_pac_script =
FALSE;
335 use_pac_script,
pac_script, &default_connection);
struct mke2fs_defaults settings[]
static BOOL heap_free(void *mem)
static void * heap_realloc(void *mem, size_t len)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define RegCloseKey(hKey)
static const WCHAR auto_config_url[]
static INT_PTR connections_on_notify(HWND hwnd, WPARAM wparam, LPARAM lparam)
#define CONNECTION_SETTINGS_VERSION
static const WCHAR connections[]
static const WCHAR proxy_enable[]
#define CONNECTION_SETTINGS_WPAD
#define CONNECTION_SETTINGS_PAC_SCRIPT
static void connections_on_initdialog(HWND hwnd)
static BOOL initdialog_done
#define CONNECTION_SETTINGS_MANUAL_PROXY
static const WCHAR default_connection_settings[]
static const WCHAR internet_settings[]
static DWORD create_connection_settings(BOOL manual_proxy, const WCHAR *proxy_server, BOOL use_wpad, BOOL use_pac_script, const WCHAR *pac_url, connection_settings **ret)
INT_PTR CALLBACK connections_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
static INT_PTR connections_on_command(HWND hwnd, WPARAM wparam)
static const WCHAR proxy_server[]
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
LONG WINAPI RegOpenKeyW(HKEY hKey, LPCWSTR lpSubKey, PHKEY phkResult)
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
LONG WINAPI RegDeleteValueW(HKEY hKey, LPCWSTR lpValueName)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
#define WideCharToMultiByte
#define INTERNET_MAX_URL_LENGTH
GLuint GLuint GLsizei GLenum type
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum GLenum GLsizei const GLuint GLboolean enabled
#define IDC_EDIT_PROXY_PORT
#define IDC_EDIT_PAC_SCRIPT
#define IDC_USE_PAC_SCRIPT
#define IDC_EDIT_PROXY_SERVER
#define IDC_USE_PROXY_SERVER
#define ERROR_FILE_NOT_FOUND
#define FIELD_OFFSET(t, f)
UINT WINAPI GetDlgItemTextW(HWND hDlg, int nIDDlgItem, LPWSTR lpString, int nMaxCount)
#define HKEY_CURRENT_USER
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
BOOL WINAPI SetDlgItemTextW(_In_ HWND, _In_ int, _In_ LPCWSTR)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int)
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
HWND WINAPI GetParent(_In_ HWND)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)