/////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2007, 2022, Oracle and/or its affiliates. All rights reserved.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License, version 2.0, as
// published by the Free Software Foundation.
//
// This program is also distributed with certain software (including
// but not limited to OpenSSL) that is licensed under separate terms,
// as designated in a particular file or component or in included license
// documentation. The authors of MySQL hereby grant you an
// additional permission to link the program and your derivative works
// with the separately licensed software that they have included with
// MySQL.
//
// Without limiting anything contained in the foregoing, this file,
// which is part of MySQL Connector/ODBC, is also subject to the
// Universal FOSS Exception, version 1.0, a copy of which can be found at
// http://oss.oracle.com/licenses/universal-foss-exception.
//
// This program 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 General Public License, version 2.0, for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#define APSTUDIO_HIDDEN_SYMBOLS
#include "windows.h"
#undef APSTUDIO_HIDDEN_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

#include "..\..\VersionInfo.h"
VS_VERSION_INFO VERSIONINFO
  FILEVERSION MYODBC_FILEVER
  PRODUCTVERSION MYODBC_PRODUCTVER
 FILEFLAGSMASK 0x3L
#ifdef _DEBUG
 FILEFLAGS 0x29L
#else
 FILEFLAGS 0x28L
#endif
 FILEOS 0x40004L
 FILETYPE 0x2L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904e4"
        BEGIN
            VALUE "Comments", "provides setup library functionality\0"
            VALUE "CompanyName", "Oracle Corporation\0"
            VALUE "FileDescription", "MySQL ODBC 8.0 Driver Setup Library\0"
            VALUE "FileVersion", MYODBC_STRFILEVER
            VALUE "InternalName", "myodbc8S\0"
            VALUE "LegalCopyright", "Copyright (c) 1995, 2018, Oracle and/or its affiliates.\0"
            VALUE "LegalTrademarks", "MySQL, MyODBC, Connector/ODBC are trademarks of Oracle Corporation\0"
            VALUE "OriginalFilename", "myodbc8S.dll\0"
            VALUE "PrivateBuild", "Production\0"
            VALUE "ProductName", "Connector/ODBC 8.0\0"
            VALUE "ProductVersion", MYODBC_STRPRODUCTVER
            VALUE "SpecialBuild", "GA release\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1252
    END
END

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_DIALOG1 DIALOGEX 0, 0, 379, 450
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Dialog"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    GROUPBOX        "Connection Parameters",IDC_STATIC,18,53,348,148
    RTEXT           "Data Source &Name:",IDC_STATIC,23,68,67,8
    EDITTEXT        IDC_EDIT_name,98,64,243,14,ES_AUTOHSCROLL
    RTEXT           "D&escription:",IDC_STATIC,23,87,67,8
    EDITTEXT        IDC_EDIT_description,98,83,243,14,ES_AUTOHSCROLL
    GROUPBOX        "",IDC_STATIC,31,105,59,26,NOT WS_VISIBLE
    CONTROL         "TCP/IP &Server:",IDC_RADIO_tcp,"Button",BS_AUTORADIOBUTTON | BS_RIGHT,32,105,60,13
    CONTROL         "Named &Pipe:",IDC_RADIO_pipe,"Button",BS_AUTORADIOBUTTON | BS_RIGHT,32,122,60,13
    RTEXT           "Server",IDC_STATIC,97,104,0,0 // Invisible, needed for accessibility
    EDITTEXT        IDC_EDIT_server,198,104,85,14,ES_AUTOHSCROLL
    RTEXT           "&Port:",IDC_STATIC,287,107,19,8
    EDITTEXT        IDC_EDIT_port,312,104,28,14,ES_AUTOHSCROLL | ES_NUMBER
    RTEXT           "Named Pipe",IDC_STATIC,97,104,0,0 // Invisible, needed for accessibility
    EDITTEXT        IDC_EDIT_socket,98,123,185,14,WS_DISABLED,ES_AUTOHSCROLL
    RTEXT           "&User:",IDC_STATIC,23,143,67,8
    EDITTEXT        IDC_EDIT_uid,98,142,185,14,ES_AUTOHSCROLL
    RTEXT           "Pass&word:",IDC_STATIC,23,164,67,8
    EDITTEXT        IDC_EDIT_pwd,98,161,185,14,ES_PASSWORD | ES_AUTOHSCROLL
    RTEXT           "Data&base:",IDC_STATIC,23,182,67,8
    COMBOBOX        IDC_EDIT_database,98,180,185,42,CBS_DROPDOWN | CBS_AUTOHSCROLL | CBS_SORT | WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "&Test",IDC_BUTTON_TEST,299,179,41,14
    CONTROL         "",IDC_TAB1,"SysTabControl32",WS_TABSTOP,17,214,349,209 // Change the size of this to fit more controls
    PUSHBUTTON      "&Details >>",IDC_BUTTON_DETAILS,17,405,50,14
    DEFPUSHBUTTON   "OK",IDOK,211,405,50,15
    PUSHBUTTON      "&Cancel",IDCANCEL,265,405,50,15
    PUSHBUTTON      "&Help",IDC_BUTTON_HELP,317,405,49,15
    CONTROL         IDB_LOGO,IDC_STATIC,"Static",SS_BITMAP,0,0,379,39
END

IDD_TAB1 DIALOGEX 0, 0, 209, 231
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    CONTROL         "&Allow big result sets",IDC_CHECK_allow_big_results,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,12,79,10
    CONTROL         "&Use compression",IDC_CHECK_use_compressed_protocol,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,27,69,10
    CONTROL         "&Enable automatic reconnect",IDC_CHECK_auto_reconnect,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,42,105,10
    CONTROL         "&Don't prompt when connecting",IDC_CHECK_dont_prompt_upon_connect,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,57,113,10
    CONTROL         "All&ow multiple statements",IDC_CHECK_allow_multiple_statements,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,72,97,10
    CONTROL         "&Interactive Client",IDC_CHECK_clientinteractive,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,87,79,10
    RTEXT           "&Character Set:",IDC_STATIC,12,102,67,8
    COMBOBOX        IDC_EDIT_charset,90,102,197,8,CBS_DROPDOWN | CBS_AUTOHSCROLL | CBS_SORT | WS_VSCROLL | WS_TABSTOP

// Second Column
    CONTROL         "Can &Handle Expired Password",IDC_CHECK_can_handle_exp_pwd
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,175,12,113,10
    CONTROL         "Get Server Public Key",IDC_CHECK_get_server_public_key
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,175,27,113,10
    CONTROL         "Use DNS SRV records",IDC_CHECK_enable_dns_srv
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,175,42,113,10
    CONTROL         "Multi Host",IDC_CHECK_multi_host
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,175,57,113,10
    RTEXT           "I&nitial Statement:",IDC_STATIC,12,118,67,8
    EDITTEXT        IDC_EDIT_initstmt,90,118,197,12,ES_AUTOHSCROLL
    RTEXT           "Plugin Directory:",IDC_STATIC,12,133,67,8
    EDITTEXT        IDC_EDIT_plugin_dir,90,133,197,12,ES_AUTOHSCROLL
    PUSHBUTTON      "...",IDC_CHOOSER_plugin_dir,292,133,12,12,BS_CENTER
    RTEXT           "OCI Config File:",IDC_STATIC,12,149,67,8
    EDITTEXT        IDC_EDIT_oci_config_file,90,149,197,12,ES_AUTOHSCROLL
    PUSHBUTTON      "...",IDC_CHOOSER_oci_config_file,292,149,12,12,BS_CENTER
END

IDD_TAB2 DIALOGEX 0, 0, 509, 181
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    CONTROL         "Enab&le Cleartext Authentication",IDC_CHECK_enable_cleartext_plugin
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,125,12,113,10
    RTEXT           "Authentication Library:", IDC_STATIC, 2, 29, 113, 8
    EDITTEXT        IDC_EDIT_default_auth, 125, 27, 200, 12, ES_AUTOHSCROLL | WS_TABSTOP
    RTEXT           "&Kerberos Authentication Mode:", IDC_STATIC, 2, 45, 113, 8
    EDITTEXT        IDC_EDIT_authentication_kerberos_mode, 125, 43, 200, 12, ES_AUTOHSCROLL | WS_TABSTOP

#if MFA_ENABLED
   RTEXT           "Password &2",IDC_STATIC,18,9,67,8
   EDITTEXT        IDC_EDIT_pwd2,90,7,97,12,ES_PASSWORD | ES_AUTOHSCROLL
   RTEXT           "Password &3",IDC_STATIC,6,27,78,11
   EDITTEXT        IDC_EDIT_pwd3,90,25,97,12,ES_PASSWORD | ES_AUTOHSCROLL
#endif
              END

IDD_TAB3 DIALOGEX 0, 0, 209, 181
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    CONTROL         "&Treat BIGINT columns as INT columns",IDC_CHECK_change_bigint_columns_to_int,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,12,135,10
    CONTROL         "&Always handle binary function results as character data",IDC_CHECK_handle_binary_as_char,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,27,194,10
    CONTROL         "I&nclude table name in SQLDescribeCol()",IDC_CHECK_return_table_names_for_SqlDescribeCol,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,42,141,10
    CONTROL         "&Disable catalog support",IDC_CHECK_no_catalog,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,57,91,10
    CONTROL         "&Disable schema support",IDC_CHECK_no_schema,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,72,141,10
    CONTROL         "&Limit column size to signed 32-bit range",IDC_CHECK_limit_column_size,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,87,141,10

END

IDD_TAB4 DIALOGEX 0, 0, 209, 181
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    CONTROL         "&Enable dynamic cursors",IDC_CHECK_dynamic_cursor,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,2,91,10
    CONTROL         "&Disable driver-provided cursor support",IDC_CHECK_user_manager_cursor,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,17,139,10
    CONTROL         "D&on't cache results of forward-only cursors",IDC_CHECK_dont_cache_result,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,32,154,10
    CONTROL         "&Force use of forward-only cursors",IDC_CHECK_force_use_of_forward_only_cursors,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,47,125,10
    CONTROL         "&Prefetch from server by",IDC_CHECK_cursor_prefetch_active,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,62,89,10
    LTEXT           "ro&ws at a time",IDC_STATIC,130,62,48,10
    EDITTEXT        IDC_EDIT_cursor_prefetch_number,102,62,27,10,ES_AUTOHSCROLL | ES_NUMBER | WS_DISABLED

    CONTROL         "&Return matched rows instead of affected rows",IDC_CHECK_return_matching_rows,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,80,165,10
    CONTROL         "E&nable SQL_AUTO_IS_NULL",IDC_CHECK_auto_increment_null_search,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,95,105,10
    CONTROL         "P&ad CHAR to full length with space",IDC_CHECK_pad_char_to_full_length,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,110,127,10
    CONTROL         "Re&turn SQL_NULL_DATA for zero date",IDC_CHECK_zero_date_to_min,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,125,138,10
END

IDD_TAB5 DIALOGEX 0, 0, 209, 181
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    CONTROL         "&Log queries to %TEMP%\\myodbc.sql",IDC_CHECK_save_queries,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,12,148,10
END

IDD_TAB6 DIALOGEX 0, 0, 509, 181
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    RTEXT           "SSL &Key",IDC_STATIC,18,9,67,8
    EDITTEXT        IDC_EDIT_sslkey,90,7,97,12,ES_AUTOHSCROLL | WS_GROUP
    RTEXT           "SSL &Certificate",IDC_STATIC,6,25,78,11
    EDITTEXT        IDC_EDIT_sslcert,90,23,97,12,ES_AUTOHSCROLL
    RTEXT           "SSL C&A File",IDC_STATIC,6,41,79,8
    EDITTEXT        IDC_EDIT_sslca,90,39,97,12,ES_AUTOHSCROLL
    RTEXT           "SSL CA &Path",IDC_STATIC,24,58,61,8
    EDITTEXT        IDC_EDIT_sslcapath,90,55,97,12,ES_AUTOHSCROLL
    RTEXT           "&SSL Cipher",IDC_STATIC,18,73,67,8
    EDITTEXT        IDC_EDIT_sslcipher,90,71,97,12,ES_AUTOHSCROLL
    RTEXT           "SSL &Mode", IDC_STATIC,18,88,67,8
    COMBOBOX        IDC_EDIT_sslmode,90,86,97,8,CBS_DROPDOWN | CBS_AUTOHSCROLL | CBS_SORT | WS_VSCROLL | WS_TABSTOP
    RTEXT           "&RSA Public Key",IDC_STATIC,18,104,67,8
    EDITTEXT        IDC_EDIT_rsakey,90,102,97,12,ES_AUTOHSCROLL
    PUSHBUTTON      "...",IDC_SSLKEYCHOOSER,192,7,12,12,BS_CENTER
    PUSHBUTTON      "...",IDC_SSLCERTCHOOSER,192,23,12,12,BS_CENTER
    PUSHBUTTON      "...",IDC_SSLCACHOOSER,192,39,12,12,BS_CENTER
    PUSHBUTTON      "...",IDC_SSLCAPATHCHOOSER,192,55,12,12,BS_CENTER
    PUSHBUTTON      "...",IDC_RSAKEYCHOOSER,192,102,12,12,BS_CENTER

    RTEXT           "SSL CRL File",IDC_STATIC,6,121,79,8
    EDITTEXT        IDC_EDIT_ssl_crl,90,119,97,12,ES_AUTOHSCROLL
    RTEXT           "SSL CRL &Path",IDC_STATIC,24,138,61,8
    EDITTEXT        IDC_EDIT_ssl_crlpath,90,135,97,12,ES_AUTOHSCROLL
    PUSHBUTTON      "...",IDC_SSLCRLCHOOSER,192,119,12,12,BS_CENTER
    PUSHBUTTON      "...",IDC_SSLCRLPATHCHOOSER,192,135,12,12,BS_CENTER

    CONTROL         "Disable TLS Version 1.&2",IDC_CHECK_no_tls_1_2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,90,151,87,10
    CONTROL         "Disable TLS Version 1.&3",IDC_CHECK_no_tls_1_3,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,90,164,87,10

END


IDD_TAB7 DIALOGEX 0, 0, 209, 181
STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    CONTROL         "&Enable safe options (see documentation)",IDC_CHECK_safe,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,12,147,10
    CONTROL         "&Don't use setlocale()",IDC_CHECK_dont_use_set_locale,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,27,81,10
    CONTROL         "&Ignore space after function names",IDC_CHECK_ignore_space_after_function_names,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,42,127,10
    CONTROL         "&Read options from my.cnf",IDC_CHECK_read_options_from_mycnf,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,57,99,10
    CONTROL         "Di&sable transaction support",IDC_CHECK_disable_transactions,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,72,103,10
    CONTROL         "&Bind minimal date as zero date",IDC_CHECK_min_date_to_zero,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,87,138,10
    CONTROL         "&Prepare statements on the client",IDC_CHECK_no_ssps,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,12,102,138,10
    CONTROL         "Enable LOAD DATA LOCAL INFILE statements", IDC_CHECK_enable_local_infile,
                    "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 12, 117, 170, 10

    RTEXT           "LOAD DATA LOCAL Directory:",IDC_STATIC,8,134,100,8
    EDITTEXT        IDC_EDIT_load_data_local_dir,112,132,195,12,ES_AUTOHSCROLL
    PUSHBUTTON      "...",IDC_CHOOSER_load_data_local_dir,312,132,12,12,BS_CENTER

    // Second column

    CONTROL         "Bi&nd BIGINT parameters as strings",IDC_CHECK_default_bigint_bind_str,
                    "Button",BS_AUTOCHECKBOX | WS_TABSTOP,175,12,138,10
    CONTROL         "Disable Date Overflow error", IDC_CHECK_no_date_overflow,
                    "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 175, 27, 138, 10

END

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE
BEGIN
    "#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
    "#include ""windows.h""\r\n"
    "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
    "\0"
END

3 TEXTINCLUDE
BEGIN
    "\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//

IDB_LOGO                BITMAP                  "connector_odbc_header.bmp"

/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
#if MFA_ENABLED
    IDD_TAB6, DIALOG
#else
    IDD_TAB5, DIALOG
#endif
    BEGIN
        VERTGUIDE, 85
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE
BEGIN
    IDC_DIALOG              "DIALOG"
END

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED
