Logtext - Documentation
Home - Download - Documentation - Forum - Bug Report - Contact - License Agreement - External Links
 
 
Example program on how to use the DLL logtext.dll - logtextexample
 
This example shows how to implement and call the library from an application.
 
 
 
 

logtext.h File Reference

#include <io.h>
#include <windows.h>

Include dependency graph for logtext.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Data Structures

struct  sCurrentDateTime
struct  sLogTextEx
struct  sIni
struct  sLogTextExQ

Defines

#define DllImport   __declspec( dllimport )
#define DllExport   __declspec( dllexport )
#define MAX_DATE_TIME_TEXT   26
#define MAX_DATE_WEEK_TEXT   11
#define MAX_DATE_NO_BLANKS   8
#define MAX_DATE_WEEK   6
#define MAX_DTMS_TEXT   30
#define LO_ECHO   0x00000001
#define LO_ECHO_ONLY   0x00000002
#define LO_QUICK   0x00000004
#define LO_LOGNAME_ONLY   0x00000008
#define LO_INCLUDE_APP   0x00000010
#define LO_NO_DATE   0x00000020
#define LO_DAILY   0x00000040
#define LO_WEEKLY   0x00000080
#define LO_MONTHLY   0x00000100
#define LO_YEARLY   0x00000200
#define LO_LINES   0x00000400
#define LO_SIZE   0x00000800
#define LO_DELETE_ZIPS   0x00001000
#define LO_DELETE_LOGS   0x00002000
#define LO_LOG_DELETION   0
#define LO_DONT_LOG_DELETION   0x00004000
#define LO_DONT_ZIP   0x00008000
#define LO_LOG_ZIPPING   0
#define LO_DONT_LOG_ZIPPING   0x00010000
#define LO_NO_BANNER   0x00020000
#define LO_TIME_T   0x00040000
#define LO_STDERR   0x00080000
#define LO_USER_ISO_DATE   0x00100000
#define LO_REG_ISO_DATE   0x00200000
#define LO_KEEP_CRLF   0x00400000
#define LO_LOG_REGISTRY   0
#define LO_DONT_LOG_REGISTRY   0x00800000
#define LO_LOGNAME   0x01000000
#define LO_LOG_ALL   0
#define LO_DONT_LOG_ACTIONS   (LO_DONT_LOG_DELETION | LO_DONT_LOG_ZIPPING | LO_DONT_LOG_REGISTRY)
#define LE_NO_CONFIG   0x00000001
#define LE_LOG_CONFIG   0
#define LE_DONT_LOG_CONFIG   0x00000002
#define LE_DONT_LOG   0x00000004
#define LE_SET_DATE_TIME   0x00000008
#define LE_FORCE_BINARY   0x00000020
#define LE_LOG_BINARY   LE_FORCE_BINARY
#define LE_SORT_DIR   0x00000040
#define LE_PAUSE_BEFORE_LOG   0x00000080
#define LE_DONT_LOG_MS   0x00000100
#define LE_NO_MS   LE_DONT_LOG_MS
#define LE_LOGTEXTEXQ   0x00000200
#define LE_PAUSE_AFTER_LOG   0x00000400
#define LE_SUSPEND_LOG   0x00001000
#define LE_RESUME_LOG   0x00002000
#define LE_IGNORE_EVENT   0x00004000
#define LE_THREE_BLANKS   0x00008000
#define LE_DONT_LOG_SEC   0x00010000
#define LE_DONT_LOG_SECS   LE_DONT_LOG_SEC
#define LE_NO_SEC   LE_DONT_LOG_SEC
#define LE_NO_SECS   LE_DONT_LOG_SEC
#define LE_DONT_LOG_SECMS   LE_DONT_LOG_SEC
#define LE_NO_BANNER   0x00020000
#define LE_ADD_DOT   0x00040000
#define LE_ADD_FULL_STOP   LE_ADD_DOT
#define _MASK_LOGFILE   "*.log"
#define _EXTE_LOGFILE   ".log"
#define _MASK_ZIPFILE   "*.gz"
#define _EXTE_ZIPFILE   ".gz"
#define _EXTE_BAKFILE   ".~tmp.bak"
#define CALLCONV   __cdecl
#define STDCCONV   __stdcall

Typedefs

typedef sCurrentDateTime SCURRENTDATETIME
typedef sLogTextEx SLOGTEXTINI
typedef sIni SINISECTION
typedef sLogTextExQ SLOGTEXTINIQ
typedef const char * chLogText
typedef const char DWORD dwOptions
typedef const char DWORD unsigned
long 
ulMaxLogs
typedef const char DWORD unsigned
long unsigned long 
ulMaxZips
typedef const char * chLogText
typedef const char SLOGTEXTINIsltIni
typedef const char * chLogText
typedef const char SLOGTEXTINIsltIni
typedef const char * chLogText
typedef const char DWORD dwOptions
typedef const char DWORD unsigned
long 
ulMaxLogs
typedef const char DWORD unsigned
long unsigned long 
ulMaxZips
typedef const char * chLogText
typedef const char SLOGTEXTINIsltIni
typedef const char * chLogText
typedef const char SLOGTEXTINIsltIni

Functions

DllExport int CALLCONV LogText (const char *chApplication, const char *chLogText, DWORD dwOptions, unsigned long ulMaxLogs, unsigned long ulMaxZips)
DllExport int CALLCONV LogTextEx (const char *chApplication, const char *chLogText, SLOGTEXTINI *sltIni)
DllExport int CALLCONV LogTextExQ (const char *chApplication, const char *chLogText, SLOGTEXTINI *sltIni)
DllExport int STDCCONV sLogText (const char *chApplication, const char *chLogText, DWORD dwOptions, unsigned long ulMaxLogs, unsigned long ulMaxZips)
DllExport int STDCCONV sLogTextEx (const char *chApplication, const char *chLogText, SLOGTEXTINI *sltIni)
DllExport int STDCCONV sLogTextExQ (const char *chApplication, const char *chLogText, SLOGTEXTINI *sltIni)
typedef int (CALLCONV *LPLOGTEXT)(const char *chApplication
typedef int (STDCCONV *LPSLOGTEXT)(const char *chApplication
int LoadAndInitializeLogText (char *chLogTextPath)

Variables

DllExport char * chCurrentDateTimeText
DllExport char * chCurrentDateWeekText
DllExport char * chCurrentLogFileName
DllExport char * chCurrentDateNoBlanks
DllExport char * chCurrentDateWeek
DllExport char * chCurrentDTMSText
DllExport BOOL bDequeueOnExit
DllExport BOOL bAboutToExit
LPLOGTEXT lpLogText
LPLOGTEXTEX lpLogTextEx
LPLOGTEXTEXQ lpLogTextExQ
LPSLOGTEXT lpsLogText
LPSLOGTEXTEX lpsLogTextEx
LPSLOGTEXTEXQ lpsLogTextExQ
HMODULE hLogTextDLL

Define Documentation

#define _EXTE_BAKFILE   ".~tmp.bak"

Definition at line 183 of file logtext.h.

#define _EXTE_LOGFILE   ".log"

Definition at line 180 of file logtext.h.

#define _EXTE_ZIPFILE   ".gz"

Definition at line 182 of file logtext.h.

#define _MASK_LOGFILE   "*.log"

Definition at line 179 of file logtext.h.

#define _MASK_ZIPFILE   "*.gz"

Definition at line 181 of file logtext.h.

#define CALLCONV   __cdecl

Definition at line 189 of file logtext.h.

#define DllExport   __declspec( dllexport )

Definition at line 20 of file logtext.h.

#define DllImport   __declspec( dllimport )

Definition at line 19 of file logtext.h.

#define LE_ADD_DOT   0x00040000

Definition at line 173 of file logtext.h.

#define LE_ADD_FULL_STOP   LE_ADD_DOT

Definition at line 176 of file logtext.h.

#define LE_DONT_LOG   0x00000004

Definition at line 128 of file logtext.h.

#define LE_DONT_LOG_CONFIG   0x00000002

Definition at line 127 of file logtext.h.

#define LE_DONT_LOG_MS   0x00000100

Definition at line 147 of file logtext.h.

#define LE_DONT_LOG_SEC   0x00010000

Definition at line 164 of file logtext.h.

#define LE_DONT_LOG_SECMS   LE_DONT_LOG_SEC

Definition at line 171 of file logtext.h.

#define LE_DONT_LOG_SECS   LE_DONT_LOG_SEC

Definition at line 168 of file logtext.h.

#define LE_FORCE_BINARY   0x00000020

Definition at line 135 of file logtext.h.

#define LE_IGNORE_EVENT   0x00004000

Definition at line 155 of file logtext.h.

#define LE_LOG_BINARY   LE_FORCE_BINARY

Definition at line 136 of file logtext.h.

#define LE_LOG_CONFIG   0

Definition at line 126 of file logtext.h.

#define LE_LOGTEXTEXQ   0x00000200

Definition at line 149 of file logtext.h.

#define LE_NO_BANNER   0x00020000

Definition at line 172 of file logtext.h.

#define LE_NO_CONFIG   0x00000001

Definition at line 125 of file logtext.h.

#define LE_NO_MS   LE_DONT_LOG_MS

Definition at line 148 of file logtext.h.

#define LE_NO_SEC   LE_DONT_LOG_SEC

Definition at line 169 of file logtext.h.

#define LE_NO_SECS   LE_DONT_LOG_SEC

Definition at line 170 of file logtext.h.

#define LE_PAUSE_AFTER_LOG   0x00000400

Definition at line 150 of file logtext.h.

#define LE_PAUSE_BEFORE_LOG   0x00000080

Definition at line 144 of file logtext.h.

#define LE_RESUME_LOG   0x00002000

Definition at line 154 of file logtext.h.

#define LE_SET_DATE_TIME   0x00000008

Definition at line 129 of file logtext.h.

#define LE_SORT_DIR   0x00000040

Definition at line 139 of file logtext.h.

#define LE_SUSPEND_LOG   0x00001000

Definition at line 153 of file logtext.h.

#define LE_THREE_BLANKS   0x00008000

Definition at line 157 of file logtext.h.

#define LO_DAILY   0x00000040

Definition at line 98 of file logtext.h.

#define LO_DELETE_LOGS   0x00002000

Definition at line 105 of file logtext.h.

#define LO_DELETE_ZIPS   0x00001000

Definition at line 104 of file logtext.h.

#define LO_DONT_LOG_ACTIONS   (LO_DONT_LOG_DELETION | LO_DONT_LOG_ZIPPING | LO_DONT_LOG_REGISTRY)

Definition at line 122 of file logtext.h.

#define LO_DONT_LOG_DELETION   0x00004000

Definition at line 107 of file logtext.h.

#define LO_DONT_LOG_REGISTRY   0x00800000

Definition at line 119 of file logtext.h.

#define LO_DONT_LOG_ZIPPING   0x00010000

Definition at line 110 of file logtext.h.

#define LO_DONT_ZIP   0x00008000

Definition at line 108 of file logtext.h.

#define LO_ECHO   0x00000001

Definition at line 92 of file logtext.h.

#define LO_ECHO_ONLY   0x00000002

Definition at line 93 of file logtext.h.

#define LO_INCLUDE_APP   0x00000010

Definition at line 96 of file logtext.h.

#define LO_KEEP_CRLF   0x00400000

Definition at line 117 of file logtext.h.

#define LO_LINES   0x00000400

Definition at line 102 of file logtext.h.

#define LO_LOG_ALL   0

Definition at line 121 of file logtext.h.

#define LO_LOG_DELETION   0

Definition at line 106 of file logtext.h.

#define LO_LOG_REGISTRY   0

Definition at line 118 of file logtext.h.

#define LO_LOG_ZIPPING   0

Definition at line 109 of file logtext.h.

#define LO_LOGNAME   0x01000000

Definition at line 120 of file logtext.h.

#define LO_LOGNAME_ONLY   0x00000008

Definition at line 95 of file logtext.h.

#define LO_MONTHLY   0x00000100

Definition at line 100 of file logtext.h.

#define LO_NO_BANNER   0x00020000

Definition at line 112 of file logtext.h.

#define LO_NO_DATE   0x00000020

Definition at line 97 of file logtext.h.

#define LO_QUICK   0x00000004

Definition at line 94 of file logtext.h.

#define LO_REG_ISO_DATE   0x00200000

Definition at line 116 of file logtext.h.

#define LO_SIZE   0x00000800

Definition at line 103 of file logtext.h.

#define LO_STDERR   0x00080000

Definition at line 114 of file logtext.h.

#define LO_TIME_T   0x00040000

Definition at line 113 of file logtext.h.

#define LO_USER_ISO_DATE   0x00100000

Definition at line 115 of file logtext.h.

#define LO_WEEKLY   0x00000080

Definition at line 99 of file logtext.h.

#define LO_YEARLY   0x00000200

Definition at line 101 of file logtext.h.

#define MAX_DATE_NO_BLANKS   8

Definition at line 31 of file logtext.h.

#define MAX_DATE_TIME_TEXT   26

Definition at line 29 of file logtext.h.

#define MAX_DATE_WEEK   6

Definition at line 32 of file logtext.h.

#define MAX_DATE_WEEK_TEXT   11

Definition at line 30 of file logtext.h.

#define MAX_DTMS_TEXT   30

Definition at line 33 of file logtext.h.

#define STDCCONV   __stdcall

Definition at line 190 of file logtext.h.


Typedef Documentation

typedef const char* chLogText

Definition at line 219 of file logtext.h.

typedef const char* chLogText

Definition at line 218 of file logtext.h.

typedef const char* chLogText

Definition at line 216 of file logtext.h.

typedef const char* chLogText

Definition at line 214 of file logtext.h.

typedef const char* chLogText

Definition at line 213 of file logtext.h.

typedef const char* chLogText

Definition at line 211 of file logtext.h.

typedef const char DWORD dwOptions

Definition at line 216 of file logtext.h.

typedef const char DWORD dwOptions

Definition at line 211 of file logtext.h.

typedef struct sIni SINISECTION

typedef struct sLogTextEx SLOGTEXTINI

typedef struct sLogTextExQ SLOGTEXTINIQ

typedef const char SLOGTEXTINI* sltIni

Definition at line 219 of file logtext.h.

typedef const char SLOGTEXTINI* sltIni

Definition at line 218 of file logtext.h.

typedef const char SLOGTEXTINI* sltIni

Definition at line 214 of file logtext.h.

typedef const char SLOGTEXTINI* sltIni

Definition at line 213 of file logtext.h.

typedef const char DWORD unsigned long ulMaxLogs

Definition at line 216 of file logtext.h.

typedef const char DWORD unsigned long ulMaxLogs

Definition at line 211 of file logtext.h.

typedef const char DWORD unsigned long unsigned long ulMaxZips

Definition at line 216 of file logtext.h.

typedef const char DWORD unsigned long unsigned long ulMaxZips

Definition at line 211 of file logtext.h.


Function Documentation

typedef int ( STDCCONV *  LPSLOGTEXT  )  const

typedef int ( CALLCONV *  LPLOGTEXT  )  const

int LoadAndInitializeLogText ( char *  chLogTextPath  ) 

Definition at line 27 of file logtext.c.

References hLogTextDLL, lpLogText, lpLogTextEx, lpLogTextExQ, lpsLogText, lpsLogTextEx, and lpsLogTextExQ.

Referenced by main().

DllExport int CALLCONV LogText ( const char *  chApplication,
const char *  chLogText,
DWORD  dwOptions,
unsigned long  ulMaxLogs,
unsigned long  ulMaxZips 
)

DllExport int CALLCONV LogTextEx ( const char *  chApplication,
const char *  chLogText,
SLOGTEXTINI sltIni 
)

DllExport int CALLCONV LogTextExQ ( const char *  chApplication,
const char *  chLogText,
SLOGTEXTINI sltIni 
)

DllExport int STDCCONV sLogText ( const char *  chApplication,
const char *  chLogText,
DWORD  dwOptions,
unsigned long  ulMaxLogs,
unsigned long  ulMaxZips 
)

DllExport int STDCCONV sLogTextEx ( const char *  chApplication,
const char *  chLogText,
SLOGTEXTINI sltIni 
)

DllExport int STDCCONV sLogTextExQ ( const char *  chApplication,
const char *  chLogText,
SLOGTEXTINI sltIni 
)


Variable Documentation

DllExport BOOL bAboutToExit

DllExport BOOL bDequeueOnExit

DllExport char* chCurrentDateNoBlanks

DllExport char* chCurrentDateTimeText

DllExport char* chCurrentDateWeek

DllExport char* chCurrentDateWeekText

DllExport char* chCurrentDTMSText

DllExport char* chCurrentLogFileName

HMODULE hLogTextDLL

Definition at line 25 of file logtext.c.

Referenced by LoadAndInitializeLogText().

LPLOGTEXT lpLogText

Definition at line 19 of file logtext.c.

Referenced by LoadAndInitializeLogText().

LPLOGTEXTEX lpLogTextEx

Definition at line 20 of file logtext.c.

Referenced by LoadAndInitializeLogText().

LPLOGTEXTEXQ lpLogTextExQ

Definition at line 21 of file logtext.c.

Referenced by LoadAndInitializeLogText(), and main().

LPSLOGTEXT lpsLogText

Definition at line 22 of file logtext.c.

Referenced by LoadAndInitializeLogText().

LPSLOGTEXTEX lpsLogTextEx

Definition at line 23 of file logtext.c.

Referenced by LoadAndInitializeLogText().

LPSLOGTEXTEXQ lpsLogTextExQ

Definition at line 24 of file logtext.c.

Referenced by LoadAndInitializeLogText().

 
 
 
 


Home - Download - Documentation - Forum - Bug Report - Contact - License Agreement - External Links