###User Defined Function###
_SQLite_Startup

###Description###
Loads SQLite3.dll

###Syntax###
#include <SQLite.au3>
_SQLite_Startup ( [$sDll_Filename = "sqlite3.dll" [, $bUTF8ErrorMsg = False [, $bForceLocal = 0 [, $sPrintCallback = __SQLite_ConsoleWrite (  ) ]]]] )


###Parameters###
@@ParamTable@@
$sDll_Filename
	[optional] Dll filename
$bUTF8ErrorMsg
	[optional] to force <a href="../functions/ConsoleWrite.htm">ConsoleWrite()</a> to display UTF8 chars
$bForceLocal
	[optional] Forces SQLite to use a local DLL, otherwise the DLL will be downloaded.
$sPrintCallback
	[optional] The string name of a user-defined callback function that is invoked when SQLite needs to display a diagnostic message.  See Remarks for more.
@@End@@

###ReturnValue###
@@ReturnTable@@
Success:	the path to SQLite3.dll.
Failure:	sets the @error flag to non-zero.
@@End@@


###Remarks###
Requires SQLite3.dll in @ScriptDir or @SystemDir.

If SQLite.dll.au3 is included the dll will be created in @SystemDir (may need #RequireAdmin).
If not successfull a temporary file will be created that will be destroyed at <a href="_SQLite_Shutdown.htm">_SQLite_Shutdown()</a>.

If $bUTF8ErrorMsg is not zero prints UTF8 formated string prints to console.
This allows applications as SciTE to display those characters if configured with output.code.page=65001.
This is the case when running SciTE under a non-english version as Vista(fr).

The $sPrintCallback parameter specifies the name of user-defined callback function.  This function will be passed a single parameter which is the message to display.  The default callback function is <a href="__SQLite_ConsoleWrite.htm">__SQLite_ConsoleWrite()</a>.  See that function for an example of how to implement your own callback function.


###Related###
_SQLite_Shutdown


###Example###
@@IncludeExample@@
