Copyright (c) 2001-2016 Christian Werner <chw@ch-werner.de>
See the file "license.terms" for information on usage and redistribution of this file and for a DISCLAIMER OF ALL WARRANTIES.
Definition in file inst.c.
#include <windows.h>
#include <sql.h>
#include <sqlext.h>
#include <odbcinst.h>
#include <winver.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>
Go to the source code of this file.
Defines | |
| #define | SEEEXT "" |
| #define | SEESTR "" |
| #define | SEESTR2 "" |
| #define | NUMDRVS 4 |
Functions | |
| static BOOL | ProcessErrorMessages (char *name, int quiet) |
| Handler for ODBC installation error messages. | |
| static BOOL | CopyOrDelModules (char *dllname, char *path, BOOL del) |
| Copy or delete SQLite3 module DLLs. | |
| static BOOL | InUn (int remove, char *drivername, char *dllname, char *dll2name, char *dsname) |
| Driver installer/uninstaller. | |
| int APIENTRY | WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow) |
| Main function of installer/uninstaller. | |
Variables | |
| static char * | DriverName [NUMDRVS] |
| static char * | DSName [NUMDRVS] |
| static char * | DriverDLL [NUMDRVS] |
| static int | quiet = 0 |
| static int | nosys = 0 |
| static BOOL CopyOrDelModules | ( | char * | dllname, | |
| char * | path, | |||
| BOOL | del | |||
| ) | [static] |
| static BOOL InUn | ( | int | remove, | |
| char * | drivername, | |||
| char * | dllname, | |||
| char * | dll2name, | |||
| char * | dsname | |||
| ) | [static] |
Driver installer/uninstaller.
| remove | true for uninstall | |
| drivername | print name of driver | |
| dllname | file name of driver DLL | |
| dll2name | file name of additional DLL | |
| dsname | name for data source |
Definition at line 153 of file inst.c.
References CopyOrDelModules(), nosys, ProcessErrorMessages(), and quiet.
Referenced by WinMain().
| static BOOL ProcessErrorMessages | ( | char * | name, | |
| int | quiet | |||
| ) | [static] |
| int APIENTRY WinMain | ( | HINSTANCE | hInstance, | |
| HINSTANCE | hPrevInstance, | |||
| LPSTR | lpszCmdLine, | |||
| int | nCmdShow | |||
| ) |
char* DriverDLL[NUMDRVS] [static] |
char* DriverName[NUMDRVS] [static] |
char* DSName[NUMDRVS] [static] |