~ubuntu-branches/ubuntu/maverick/myodbc/maverick

« back to all changes in this revision

Viewing changes to win32/dialogs.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2005-06-28 16:07:14 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050628160714-bbrx5607325j9rqt
Tags: 3.51.11-4
Doesn't build cleanly with REAL_64_BIT_MODE: fix some conflicting
types in MyODBC so that they're 64-bittable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 1995-2005 MySQL AB
 
2
 
 
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.
 
7
 
 
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.
 
11
 
 
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.
 
16
 
 
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 */
 
20
 
 
21
/***************************************************************************
 
22
 * DIALOGS.H                                                               *
 
23
 *                                                                         *
 
24
 * @description: Definations needed for dialogboxes                        *
 
25
 *                                                                         *
 
26
 * @author     : MySQL AB(monty@mysql.com, venu@mysql.com)                 *
 
27
 * @date       : 2001-Aug-15                                               *
 
28
 * @product    : myodbc3                                                   *
 
29
 *                                                                         *
 
30
****************************************************************************/
 
31
 
 
32
#include "resource.h"
 
33
 
 
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 */
 
42
 
 
43
/* Attribute key indexes (into an array of Attr structs, see below */
 
44
 
 
45
#define KEY_DSN      0
 
46
#define KEY_DESC     1
 
47
#define KEY_DB       2
 
48
#define KEY_SERVER   3
 
49
#define KEY_USER     4
 
50
#define KEY_PASSWORD 5
 
51
#define KEY_PORT     6
 
52
#define KEY_STMT     7
 
53
#define KEY_FLAG     8
 
54
#define KEY_SOCKET   9
 
55
#define NUMOFKEYS    11
 
56
#define NUMOFBITS    22  /* Number of different options */
 
57
 
 
58
 
 
59
typedef struct tagAttr
 
60
{
 
61
  my_bool fSupplied;
 
62
  char  szAttr[MAXPATHLEN];
 
63
} Attr, FAR * LPAttr;
 
64
 
 
65
 
 
66
typedef struct tagSETUPDLG
 
67
{
 
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;
 
78
 
 
79
 
 
80
int FAR PASCAL DriverConnectProc(HWND hdlg,WORD wMsg,WPARAM wParam,
 
81
                                 LPARAM lParam);
 
82
int FAR PASCAL  HelpDlgProc(HWND, WORD, WPARAM, LPARAM);
 
83
void INTFUNC ParseAttributes (LPCSTR lpszAttributes, LPSETUPDLG lpsetupdlg);
 
84
void set_attributes(LPSETUPDLG lpsetupdlg);