Main Page   File List   Globals  

daunytools.h File Reference

#include <windows.h>
#include <Shlwapi.h>

Go to the source code of this file.

Defines

#define MAJOR_VERSION   "1"
#define MINOR_VERSION   "4"
#define BUILD_NUMBER   "0"
#define DLL_VERSION   MAJOR_VERSION "." MINOR_VERSION
#define DAUNYTOOLS_API   __declspec(dllimport)
#define DAUNYTOOLSDLL_NOERROR   0
#define CAN_NOT_CONNECT_TO_SERVICE_CONTROL_MANAGER   10
#define CAN_NOT_OPEN_SERVICE   11
#define CAN_NOT_START_SERVICE   12
#define CAN_NOT_STOP_SERVICE   13
#define CAN_NOT_GET_STATUS_OF_THE_SERVICE   14
#define SERVICE_NOT_STARTED   15
#define SERVICE_NOT_STOPPED   16
#define SERVICE_WORKS_ONLY_WITH_WINDOWS_NT   17
#define CAN_NOT_OPEN_DAUNY_PID_FILE   20
#define CAN_NOT_READ_DAUNY_PID   21
#define CAN_NOT_ACCESS_PROCESS   22
#define PROCESS_NOT_TERMINATED   23
#define PROCESS_NOT_STARTED   24
#define COMMAND_NOT_SENT   30
#define TRAYICON_MOUSEFIRST   1
#define TRAYICON_LBUTTONDBLCLK   2
#define TRAYICON_LBUTTONDOWN   3
#define TRAYICON_LBUTTONUP   4
#define TRAYICON_RBUTTONDOWN   5
#define TRAYICON_RBUTTONUP   6
#define TRAYICON_RBUTTONDBLCLK   7
#define TRAYICON_MBUTTONDOWN   8
#define TRAYICON_MBUTTONUP   9
#define TRAYICON_MBUTTONDBLCLK   10
#define DAUNY_SERVICE_UNKNOWN   0
#define DAUNY_SERVICE_CONTINUE_PENDING   1
#define DAUNY_SERVICE_PAUSE_PENDING   2
#define DAUNY_SERVICE_PAUSED   3
#define DAUNY_SERVICE_RUNNING   4
#define DAUNY_SERVICE_START_PENDING   5
#define DAUNY_SERVICE_STOP_PENDING   6
#define DAUNY_SERVICE_STOPPED   7
#define IE6_INTEGRATION_MODE_ASK_FOR_DOWNLAOD   1
#define IE6_INTEGRATION_MODE_ALWAYS_DOWNLOAD   2
#define IE6_INTEGRATION_MODE_NEVER_DOWNLAOD   3
#define IE6_INTEGRATION_MODE_DOWNLAOD_AND_REPORT_FAIL   4
#define MAX_USER_NAME_LENGTH   100
#define MAX_USER_PASS_LENGTH   100

Functions

DAUNYTOOLS_API int IsWindowsNT (void)
 Check für OS Windows NT (Windows NT 4.0, Windows 2K, Windows XP) [since v1.3].

DAUNYTOOLS_API int ShutdownSystem ()
 Start system shutdown [since v1.3].

DAUNYTOOLS_API int StartDauny (const char *FileName)
 Start dauny program (with console) [since v1.3].

DAUNYTOOLS_API int StopDauny (const char *szPath)
 Stops dauny program (console) [since v1.3].

DAUNYTOOLS_API int KillDauny (const char *szPath)
 Terminates dauny program (console) immediately (ony for emergency or hang) [since v1.4].

DAUNYTOOLS_API int StartDaunyService (void)
 Start installed dauny service (daemon) [since v1.3].

DAUNYTOOLS_API int StopDaunyService (void)
 Stop installed dauny service (daemon) [since v1.3].

DAUNYTOOLS_API int GetDaunyServiceState ()
 Gets the state of dauny service (daemon) [since v1.4].

DAUNYTOOLS_API int DaunyOnline (const char *szPath)
 Send Dauny to online mode (console and service) [since v1.4].

DAUNYTOOLS_API int DaunyOffline (const char *szPath)
 Send Dauny to offline mode (console and service) [since v1.4].

DAUNYTOOLS_API char * EncryptPasswort (const char *szUncryptPassword, const char *Key)
 Function to encrypt dauny password [since v1.3].

DAUNYTOOLS_API int LoadTrayIcon (char *szIconFileName, int nIndex, char *szToolTip)
 Function to load single trayicon [since v1.3].

DAUNYTOOLS_API int LoadTrayIcons (char *DllORIconName, int nFileIndex, int nIndex, int nIconCount)
 Function to load multiple trayicons out of a dll or exe file [since v1.3].

DAUNYTOOLS_API int SetTrayIconToolTip (int nIndex, char *szToolTip)
 Set trayicon tooltip (possible for loaded, unloaded, shown and hidden icons) [since v1.3].

DAUNYTOOLS_API int ShowTrayIcon (int nIndex)
 Shows loaded trayicon [since v1.3].

DAUNYTOOLS_API int RemoveTrayIcon ()
 Removes actual shown trayicon (Trayicon thread still active after call) [since v1.3].

DAUNYTOOLS_API int DestoryTrayIconThread ()
 Destroys trayicon thread (needed for java applications, c bases programms don't need to call this its done by FreeLibrary()) [since v1.3].

DAUNYTOOLS_API int GoOnline ()
 Establish internet connection if it is allowed [since v1.3].

DAUNYTOOLS_API int GoOffline ()
 Close internet connection if it is allowed [since v1.3].

DAUNYTOOLS_API int IsOnline ()
 Check online Status [since v1.3].

DAUNYTOOLS_API int RegisterIE6IntegrationDLL ()
 Register Internet Explorer integration dll [since v1.4].

DAUNYTOOLS_API int UnregisterIE6IntegrationDLL ()
 Unregister Internet Explorer integration dll [since v1.4].

DAUNYTOOLS_API int IE6IntegrationEnable ()
 Enables Internet Explorer Integration [since v1.4].

DAUNYTOOLS_API int IE6IntegrationDisable ()
 Disables Internet Explorer Integration [since v1.4].

DAUNYTOOLS_API int IE6IntegrationSetMode (int nMode)
 Set the Internet Explorer Integration mode [since v1.4].

DAUNYTOOLS_API int IE6IntegrationGetMode ()
 Get the Internet Explorer Integration mode (see IE6_INTEGRATION_MODE_...

DAUNYTOOLS_API int IE6IntegrationSetQuestionText (char *szQuestion)
 Set the Internet Explorer Question text (displayed if user clicks on a link) [since v1.4].

DAUNYTOOLS_API char * IE6IntegrationGetQuestionText ()
 Get the Internet Explorer Question text (displayed if user clicks on a link) [since v1.4].

DAUNYTOOLS_API char * DllVersion ()
 Get Dll version number [since v1.3].

DAUNYTOOLS_API char * DllDaunyVersion ()
 Get dauny version belong to dll [since v1.4].

DAUNYTOOLS_API HRESULT CALLBACK DllGetVersion (DLLVERSIONINFO *pdvi)
 Windows standard function to get version of dll [since v1.4].


Variables

DAUNYTOOLS_API float daunytoolsdll_Version
 Holds Dll version number [since v1.3].


Define Documentation

#define BUILD_NUMBER   "0"
 

#define CAN_NOT_ACCESS_PROCESS   22
 

#define CAN_NOT_CONNECT_TO_SERVICE_CONTROL_MANAGER   10
 

#define CAN_NOT_GET_STATUS_OF_THE_SERVICE   14
 

#define CAN_NOT_OPEN_DAUNY_PID_FILE   20
 

#define CAN_NOT_OPEN_SERVICE   11
 

#define CAN_NOT_READ_DAUNY_PID   21
 

#define CAN_NOT_START_SERVICE   12
 

#define CAN_NOT_STOP_SERVICE   13
 

#define COMMAND_NOT_SENT   30
 

#define DAUNY_SERVICE_CONTINUE_PENDING   1
 

Dauny service continue is pending

#define DAUNY_SERVICE_PAUSE_PENDING   2
 

Dauny service pause is pending

#define DAUNY_SERVICE_PAUSED   3
 

Dauny service is paused

#define DAUNY_SERVICE_RUNNING   4
 

Dauny service is running

#define DAUNY_SERVICE_START_PENDING   5
 

Dauny service is starting

#define DAUNY_SERVICE_STOP_PENDING   6
 

Dauny service is stopping

#define DAUNY_SERVICE_STOPPED   7
 

Dauny service is not running

#define DAUNY_SERVICE_UNKNOWN   0
 

Dauny service state is unknown

#define DAUNYTOOLS_API   __declspec(dllimport)
 

Dll export function

#define DAUNYTOOLSDLL_NOERROR   0
 

#define DLL_VERSION   MAJOR_VERSION "." MINOR_VERSION
 

Dll version string

#define IE6_INTEGRATION_MODE_ALWAYS_DOWNLOAD   2
 

Internet Explorer always uses dauny download

#define IE6_INTEGRATION_MODE_ASK_FOR_DOWNLAOD   1
 

Internet Explorer ask for dauny download (Yes,No,Abort)

#define IE6_INTEGRATION_MODE_DOWNLAOD_AND_REPORT_FAIL   4
 

Internet Explorer uses dauny download, but reports an error, so IE also starts the download

#define IE6_INTEGRATION_MODE_NEVER_DOWNLAOD   3
 

Internet Explorer never uses dauny download

#define MAJOR_VERSION   "1"
 

#define MAX_USER_NAME_LENGTH   100
 

maximum string length of user name

#define MAX_USER_PASS_LENGTH   100
 

maximum string length of user password

#define MINOR_VERSION   "4"
 

#define PROCESS_NOT_STARTED   24
 

#define PROCESS_NOT_TERMINATED   23
 

#define SERVICE_NOT_STARTED   15
 

#define SERVICE_NOT_STOPPED   16
 

#define SERVICE_WORKS_ONLY_WITH_WINDOWS_NT   17
 

#define TRAYICON_LBUTTONDBLCLK   2
 

Trayicon mouse left double click

#define TRAYICON_LBUTTONDOWN   3
 

Trayicon mouse left button down (MouseCallback())

#define TRAYICON_LBUTTONUP   4
 

Trayicon mouse left button up (MouseCallback())

#define TRAYICON_MBUTTONDBLCLK   10
 

Trayicon mouse middle double click (MouseCallback())

#define TRAYICON_MBUTTONDOWN   8
 

Trayicon mouse middle button down (MouseCallback())

#define TRAYICON_MBUTTONUP   9
 

Trayicon mouse middle button up (MouseCallback())

#define TRAYICON_MOUSEFIRST   1
 

Mouse first time over icon (transmited many times) (MouseCallback())

#define TRAYICON_RBUTTONDBLCLK   7
 

Trayicon mouse right double click (MouseCallback())

#define TRAYICON_RBUTTONDOWN   5
 

Trayicon mouse right button down (MouseCallback())

#define TRAYICON_RBUTTONUP   6
 

Trayicon mouse right button up (MouseCallback())


Function Documentation

DAUNYTOOLS_API int DaunyOffline const char *    szPath
 

Send Dauny to offline mode (console and service) [since v1.4].

Parameters:
FileName Path to dauny program (see StartDauny())
Returns:
Error number or zero for no errors.
  • CAN_NOT_OPEN_DAUNY_PID_FILE
  • CAN_NOT_READ_DAUNY_PID
  • COMMAND_NOT_SENT

DAUNYTOOLS_API int DaunyOnline const char *    szPath
 

Send Dauny to online mode (console and service) [since v1.4].

Parameters:
FileName Path to dauny program (see StartDauny())
Returns:
Error number or zero for no errors.
  • CAN_NOT_OPEN_DAUNY_PID_FILE
  • CAN_NOT_READ_DAUNY_PID
  • COMMAND_NOT_SENT

DAUNYTOOLS_API int DestoryTrayIconThread  
 

Destroys trayicon thread (needed for java applications, c bases programms don't need to call this its done by FreeLibrary()) [since v1.3].

Returns:
one for OK, zero for error

DAUNYTOOLS_API char* DllDaunyVersion  
 

Get dauny version belong to dll [since v1.4].

Returns:
dauny version number string

DAUNYTOOLS_API HRESULT CALLBACK DllGetVersion DLLVERSIONINFO *    pdvi
 

Windows standard function to get version of dll [since v1.4].

Parameters:
pdvi Version number as DLLVERSIONINFO struct (output)
Returns:
errorcode as HRESULT

DAUNYTOOLS_API char* DllVersion  
 

Get Dll version number [since v1.3].

Returns:
Dll version number string

DAUNYTOOLS_API char* EncryptPasswort const char *    szUncryptPassword,
const char *    Key
 

Function to encrypt dauny password [since v1.3].

Parameters:
szUncryptPassword Native password string
Key Received connection key by dauny server
Returns:
encrypted password

DAUNYTOOLS_API int GetDaunyServiceState  
 

Gets the state of dauny service (daemon) [since v1.4].

Returns:
actual state of dauny service
  • DAUNY_SERVICE_UNKNOWN
  • DAUNY_SERVICE_CONTINUE_PENDING
  • DAUNY_SERVICE_PAUSE_PENDING
  • DAUNY_SERVICE_PAUSED
  • DAUNY_SERVICE_RUNNING
  • DAUNY_SERVICE_START_PENDING
  • DAUNY_SERVICE_STOP_PENDING
  • DAUNY_SERVICE_STOPPED

DAUNYTOOLS_API int GoOffline  
 

Close internet connection if it is allowed [since v1.3].

Returns:
one for OK, zero for error

DAUNYTOOLS_API int GoOnline  
 

Establish internet connection if it is allowed [since v1.3].

Returns:
one for OK, zero for error

DAUNYTOOLS_API int IE6IntegrationDisable  
 

Disables Internet Explorer Integration [since v1.4].

Returns:
one for OK, zero for error

DAUNYTOOLS_API int IE6IntegrationEnable  
 

Enables Internet Explorer Integration [since v1.4].

Returns:
one for OK, zero for error

DAUNYTOOLS_API int IE6IntegrationGetMode  
 

Get the Internet Explorer Integration mode (see IE6_INTEGRATION_MODE_...

defines) [since v1.4]

Returns:
Internet Explorer Integration mode number

DAUNYTOOLS_API char* IE6IntegrationGetQuestionText  
 

Get the Internet Explorer Question text (displayed if user clicks on a link) [since v1.4].

Returns:
Question text

DAUNYTOOLS_API int IE6IntegrationSetMode int    nMode
 

Set the Internet Explorer Integration mode [since v1.4].

Parameters:
nMode Internet Explorer Integration mode number (see IE6_INTEGRATION_MODE_... defines)
Returns:
one for OK, zero for error

DAUNYTOOLS_API int IE6IntegrationSetQuestionText char *    szQuestion
 

Set the Internet Explorer Question text (displayed if user clicks on a link) [since v1.4].

Returns:
one for OK, zero for error

DAUNYTOOLS_API int IsOnline  
 

Check online Status [since v1.3].

Returns:
one for Online, zero for offline

DAUNYTOOLS_API int IsWindowsNT void   
 

Check für OS Windows NT (Windows NT 4.0, Windows 2K, Windows XP) [since v1.3].

Returns:
one for WindowsNT, zero for other OS

DAUNYTOOLS_API int KillDauny const char *    szPath
 

Terminates dauny program (console) immediately (ony for emergency or hang) [since v1.4].

Parameters:
FileName Path to dauny program (see StartDauny())
Returns:
Error number or zero for no errors.
  • CAN_NOT_OPEN_DAUNY_PID_FILE
  • CAN_NOT_READ_DAUNY_PID
  • CAN_NOT_ACCESS_PROCESS
  • PROCESS_NOT_TERMINATED

DAUNYTOOLS_API int LoadTrayIcon char *    szIconFileName,
int    nIndex,
char *    szToolTip
 

Function to load single trayicon [since v1.3].

Parameters:
szIconFileName Path with filename to icon (.ico)
nIndex Index for icon (see ShowTrayIcon())
szToolTip Tooltip text for trayicon
Returns:
Count of successful loaded icons

DAUNYTOOLS_API int LoadTrayIcons char *    DllORIconName,
int    nFileIndex,
int    nIndex,
int    nIconCount
 

Function to load multiple trayicons out of a dll or exe file [since v1.3].

Parameters:
DllORIconName Path with filename to icon (.ico), Library (.dll) or executeable File (.exe)
nFileIndex Start index of Icon in the file, to load
nIndex Index for icon (see ShowTrayIcon())
nIconCount Count of icons to load
Returns:
Count of successful loaded icons

DAUNYTOOLS_API int RegisterIE6IntegrationDLL  
 

Register Internet Explorer integration dll [since v1.4].

Returns:
one for OK, zero for error

DAUNYTOOLS_API int RemoveTrayIcon  
 

Removes actual shown trayicon (Trayicon thread still active after call) [since v1.3].

Returns:
one for OK, zero for error

DAUNYTOOLS_API int SetTrayIconToolTip int    nIndex,
char *    szToolTip
 

Set trayicon tooltip (possible for loaded, unloaded, shown and hidden icons) [since v1.3].

Parameters:
nIndex Index for icon (see ShowTrayIcon())
szToolTip Tooltip text for trayicon
Returns:
one for OK, zero for error

DAUNYTOOLS_API int ShowTrayIcon int    nIndex
 

Shows loaded trayicon [since v1.3].

Parameters:
nIndex Index of loaded icon
Returns:
one for OK, zero for error

DAUNYTOOLS_API int ShutdownSystem  
 

Start system shutdown [since v1.3].

Returns:
one for OK, zero for error

DAUNYTOOLS_API int StartDauny const char *    FileName
 

Start dauny program (with console) [since v1.3].

Parameters:
FileName Path with filename to dauny program.
Returns:
Error number or zero for no errors
  • PROCESS_NOT_STARTED

DAUNYTOOLS_API int StartDaunyService void   
 

Start installed dauny service (daemon) [since v1.3].

Returns:
Error number or zero for no errors
  • SERVICE_WORKS_ONLY_WITH_WINDOWS_NT
  • CAN_NOT_CONNECT_TO_SERVICE_CONTROL_MANAGER
  • CAN_NOT_OPEN_SERVICE
  • CAN_NOT_START_SERVICE
  • CAN_NOT_GET_STATUS_OF_THE_SERVICE
  • SERVICE_NOT_STARTED

DAUNYTOOLS_API int StopDauny const char *    szPath
 

Stops dauny program (console) [since v1.3].

Parameters:
FileName Path to dauny program (see StartDauny())
Returns:
Error number or zero for no errors.
  • CAN_NOT_OPEN_DAUNY_PID_FILE
  • CAN_NOT_READ_DAUNY_PID
  • PROCESS_NOT_TERMINATED

DAUNYTOOLS_API int StopDaunyService void   
 

Stop installed dauny service (daemon) [since v1.3].

Returns:
Error number or zero for no errors
  • SERVICE_WORKS_ONLY_WITH_WINDOWS_NT
  • CAN_NOT_CONNECT_TO_SERVICE_CONTROL_MANAGER
  • CAN_NOT_OPEN_SERVICE
  • CAN_NOT_STOP_SERVICE
  • CAN_NOT_GET_STATUS_OF_THE_SERVICE
  • SERVICE_NOT_STOPPED

DAUNYTOOLS_API int UnregisterIE6IntegrationDLL  
 

Unregister Internet Explorer integration dll [since v1.4].

Returns:
one for OK, zero for error


Variable Documentation

DAUNYTOOLS_API float daunytoolsdll_Version
 

Holds Dll version number [since v1.3].


Generated on Sun May 18 13:37:16 2003 for Daunytools DLL by doxygen1.3-rc3