DSN creation utility for Win32. More...
#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.
Functions | |
| static BOOL | ProcessErrorMessages (char *name) |
| Handler for ODBC installation error messages. More... | |
| int APIENTRY | WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int nCmdShow) |
| Main function of DSN utility. More... | |
DSN creation utility for Win32.
Copyright (c) 2003-2013 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 adddsn.c.
|
static |
| int APIENTRY WinMain | ( | HINSTANCE | hInstance, |
| HINSTANCE | hPrevInstance, | ||
| LPSTR | lpszCmdLine, | ||
| int | nCmdShow | ||
| ) |
Main function of DSN utility.
This is the Win32 GUI main entry point. It (un)installs a DSN.
Example usage:
add[sys]dsn "SQLite ODBC Driver" DSN=foobar;Database=C:/FOOBAR rem[sys]dsn "SQLite ODBC Driver" DSN=foobar
Definition at line 66 of file adddsn.c.
References ProcessErrorMessages().