1
/* Copyright (C) 1995-2005 MySQL AB
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; either version 2 of the License, or
6
(at your option) any later version.
8
There are special exceptions to the terms and conditions of the GPL as it
9
is applied to this software. View the full text of the exception in file
10
EXCEPTIONS in the directory of this software distribution.
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
21
/***************************************************************************
24
* @description: Definations needed for dialogboxes *
26
* @author : MySQL AB(monty@mysql.com, venu@mysql.com) *
27
* @date : 2001-Aug-15 *
28
* @product : myodbc3 *
30
****************************************************************************/
34
#define MAXPATHLEN (255+1) /* Max path length */
35
#define MAXKEYLEN (15+1) /* Max keyword length */
36
#define MAXDESC (255+1) /* Max description length */
37
#define MAXDSNAME (64+1) /* Max data source name length */
38
#define MAXSERVER (64+1) /* Max server name length */
39
#define MAXUSER (32+1) /* Max user name length */
40
#define MAXPASSWORD (32+1) /* Max password length */
41
#define MAXSTMT (255+1) /* Max initial statement length */
43
/* Attribute key indexes (into an array of Attr structs, see below */
50
#define KEY_PASSWORD 5
56
#define NUMOFBITS 22 /* Number of different options */
59
typedef struct tagAttr
62
char szAttr[MAXPATHLEN];
66
typedef struct tagSETUPDLG
68
SQLHWND hwndParent; /* Parent window handle */
69
SQLHWND hwndDSN; /* DSN window handle */
70
SQLHWND hwndOption; /* Options windows handle */
71
LPCSTR lpszDrvr; /* Driver description */
72
Attr aAttr[NUMOFKEYS]; /* Attribute array */
73
char szDSN[MAXDSNAME]; /* Original data source name */
74
my_bool fNewDSN; /* New data source flag */
75
my_bool fDefault; /* Default data source flag */
76
ulong config_flags; /* Flags to affect myodbc behavour */
77
} SETUPDLG, FAR *LPSETUPDLG;
80
int FAR PASCAL DriverConnectProc(HWND hdlg,WORD wMsg,WPARAM wParam,
82
int FAR PASCAL HelpDlgProc(HWND, WORD, WPARAM, LPARAM);
83
void INTFUNC ParseAttributes (LPCSTR lpszAttributes, LPSETUPDLG lpsetupdlg);
84
void set_attributes(LPSETUPDLG lpsetupdlg);