5 #define INTFUNC __stdcall
7 #define MAXDSNAME (32+1) /* Max data source name length */
9 /* NOTE: All these are used by the dialog procedures */
10 typedef struct tagSETUPDLG
12 HWND hwndParent
; /* Parent window handle */
13 LPCSTR lpszDrvr
; /* Driver description */
15 char szDSN
[MAXDSNAME
]; /* Original data source name */
16 BOOL fNewDSN
; /* New data source flag */
17 BOOL fDefault
; /* Default data source flag */
19 } SETUPDLG
, FAR
* LPSETUPDLG
;
22 void INTFUNC
CenterDialog(HWND hdlg
);
23 BOOL CALLBACK
ConfigDlgProc(HWND hdlg
, UINT wMsg
,
24 WPARAM wParam
, LPARAM lParam
);
25 void INTFUNC
ParseAttributes(LPCSTR lpszAttributes
, LPSETUPDLG lpsetupdlg
);
26 BOOL INTFUNC
SetDSNAttributes(HWND hwnd
, LPSETUPDLG lpsetupdlg
, DWORD
*);
27 BOOL INTFUNC
ChangeDriverName(HWND hwnd
, LPSETUPDLG lpsetupdlg
,
30 #endif /* _WIN_SETUP_H__ */