Logtext - Dokumentation
Heimseite - Download - Dokumentation - Forum - Fehler melden - Impressum - Lizenzvereinbarung - Externe Verweise
 
 
Beispielprogramm zur Verwendung der DLL logtext.dll - logtextexample
 
Dieses Beispiel zeigt, wie die Bibliothek in eigene Applikationen implementiert und aufgerufen wird.
 
 
 
 

logtext.h-Dateireferenz

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

Include-Abhängigkeitsdiagramm für logtext.h:

Dieser Graph zeigt, welche Datei direkt oder indirekt diese Datei enthält:

gehe zum Quellcode dieser Datei


Datenstrukturen

struct  sCurrentDateTime
struct  sLogTextEx
struct  sIni
struct  sLogTextExQ

Makrodefinitionen

#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

Typdefinitionen

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

Funktionen

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)

Variablen

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

Makro-Dokumentation

#define _EXTE_BAKFILE   ".~tmp.bak"

Definiert in Zeile 183 der Datei logtext.h.

#define _EXTE_LOGFILE   ".log"

Definiert in Zeile 180 der Datei logtext.h.

#define _EXTE_ZIPFILE   ".gz"

Definiert in Zeile 182 der Datei logtext.h.

#define _MASK_LOGFILE   "*.log"

Definiert in Zeile 179 der Datei logtext.h.

#define _MASK_ZIPFILE   "*.gz"

Definiert in Zeile 181 der Datei logtext.h.

#define CALLCONV   __cdecl

Definiert in Zeile 189 der Datei logtext.h.

#define DllExport   __declspec( dllexport )

Definiert in Zeile 20 der Datei logtext.h.

#define DllImport   __declspec( dllimport )

Definiert in Zeile 19 der Datei logtext.h.

#define LE_ADD_DOT   0x00040000

Definiert in Zeile 173 der Datei logtext.h.

#define LE_ADD_FULL_STOP   LE_ADD_DOT

Definiert in Zeile 176 der Datei logtext.h.

#define LE_DONT_LOG   0x00000004

Definiert in Zeile 128 der Datei logtext.h.

#define LE_DONT_LOG_CONFIG   0x00000002

Definiert in Zeile 127 der Datei logtext.h.

#define LE_DONT_LOG_MS   0x00000100

Definiert in Zeile 147 der Datei logtext.h.

#define LE_DONT_LOG_SEC   0x00010000

Definiert in Zeile 164 der Datei logtext.h.

#define LE_DONT_LOG_SECMS   LE_DONT_LOG_SEC

Definiert in Zeile 171 der Datei logtext.h.

#define LE_DONT_LOG_SECS   LE_DONT_LOG_SEC

Definiert in Zeile 168 der Datei logtext.h.

#define LE_FORCE_BINARY   0x00000020

Definiert in Zeile 135 der Datei logtext.h.

#define LE_IGNORE_EVENT   0x00004000

Definiert in Zeile 155 der Datei logtext.h.

#define LE_LOG_BINARY   LE_FORCE_BINARY

Definiert in Zeile 136 der Datei logtext.h.

#define LE_LOG_CONFIG   0

Definiert in Zeile 126 der Datei logtext.h.

#define LE_LOGTEXTEXQ   0x00000200

Definiert in Zeile 149 der Datei logtext.h.

#define LE_NO_BANNER   0x00020000

Definiert in Zeile 172 der Datei logtext.h.

#define LE_NO_CONFIG   0x00000001

Definiert in Zeile 125 der Datei logtext.h.

#define LE_NO_MS   LE_DONT_LOG_MS

Definiert in Zeile 148 der Datei logtext.h.

#define LE_NO_SEC   LE_DONT_LOG_SEC

Definiert in Zeile 169 der Datei logtext.h.

#define LE_NO_SECS   LE_DONT_LOG_SEC

Definiert in Zeile 170 der Datei logtext.h.

#define LE_PAUSE_AFTER_LOG   0x00000400

Definiert in Zeile 150 der Datei logtext.h.

#define LE_PAUSE_BEFORE_LOG   0x00000080

Definiert in Zeile 144 der Datei logtext.h.

#define LE_RESUME_LOG   0x00002000

Definiert in Zeile 154 der Datei logtext.h.

#define LE_SET_DATE_TIME   0x00000008

Definiert in Zeile 129 der Datei logtext.h.

#define LE_SORT_DIR   0x00000040

Definiert in Zeile 139 der Datei logtext.h.

#define LE_SUSPEND_LOG   0x00001000

Definiert in Zeile 153 der Datei logtext.h.

#define LE_THREE_BLANKS   0x00008000

Definiert in Zeile 157 der Datei logtext.h.

#define LO_DAILY   0x00000040

Definiert in Zeile 98 der Datei logtext.h.

#define LO_DELETE_LOGS   0x00002000

Definiert in Zeile 105 der Datei logtext.h.

#define LO_DELETE_ZIPS   0x00001000

Definiert in Zeile 104 der Datei logtext.h.

#define LO_DONT_LOG_ACTIONS   (LO_DONT_LOG_DELETION | LO_DONT_LOG_ZIPPING | LO_DONT_LOG_REGISTRY)

Definiert in Zeile 122 der Datei logtext.h.

#define LO_DONT_LOG_DELETION   0x00004000

Definiert in Zeile 107 der Datei logtext.h.

#define LO_DONT_LOG_REGISTRY   0x00800000

Definiert in Zeile 119 der Datei logtext.h.

#define LO_DONT_LOG_ZIPPING   0x00010000

Definiert in Zeile 110 der Datei logtext.h.

#define LO_DONT_ZIP   0x00008000

Definiert in Zeile 108 der Datei logtext.h.

#define LO_ECHO   0x00000001

Definiert in Zeile 92 der Datei logtext.h.

#define LO_ECHO_ONLY   0x00000002

Definiert in Zeile 93 der Datei logtext.h.

#define LO_INCLUDE_APP   0x00000010

Definiert in Zeile 96 der Datei logtext.h.

#define LO_KEEP_CRLF   0x00400000

Definiert in Zeile 117 der Datei logtext.h.

#define LO_LINES   0x00000400

Definiert in Zeile 102 der Datei logtext.h.

#define LO_LOG_ALL   0

Definiert in Zeile 121 der Datei logtext.h.

#define LO_LOG_DELETION   0

Definiert in Zeile 106 der Datei logtext.h.

#define LO_LOG_REGISTRY   0

Definiert in Zeile 118 der Datei logtext.h.

#define LO_LOG_ZIPPING   0

Definiert in Zeile 109 der Datei logtext.h.

#define LO_LOGNAME   0x01000000

Definiert in Zeile 120 der Datei logtext.h.

#define LO_LOGNAME_ONLY   0x00000008

Definiert in Zeile 95 der Datei logtext.h.

#define LO_MONTHLY   0x00000100

Definiert in Zeile 100 der Datei logtext.h.

#define LO_NO_BANNER   0x00020000

Definiert in Zeile 112 der Datei logtext.h.

#define LO_NO_DATE   0x00000020

Definiert in Zeile 97 der Datei logtext.h.

#define LO_QUICK   0x00000004

Definiert in Zeile 94 der Datei logtext.h.

#define LO_REG_ISO_DATE   0x00200000

Definiert in Zeile 116 der Datei logtext.h.

#define LO_SIZE   0x00000800

Definiert in Zeile 103 der Datei logtext.h.

#define LO_STDERR   0x00080000

Definiert in Zeile 114 der Datei logtext.h.

#define LO_TIME_T   0x00040000

Definiert in Zeile 113 der Datei logtext.h.

#define LO_USER_ISO_DATE   0x00100000

Definiert in Zeile 115 der Datei logtext.h.

#define LO_WEEKLY   0x00000080

Definiert in Zeile 99 der Datei logtext.h.

#define LO_YEARLY   0x00000200

Definiert in Zeile 101 der Datei logtext.h.

#define MAX_DATE_NO_BLANKS   8

Definiert in Zeile 31 der Datei logtext.h.

#define MAX_DATE_TIME_TEXT   26

Definiert in Zeile 29 der Datei logtext.h.

#define MAX_DATE_WEEK   6

Definiert in Zeile 32 der Datei logtext.h.

#define MAX_DATE_WEEK_TEXT   11

Definiert in Zeile 30 der Datei logtext.h.

#define MAX_DTMS_TEXT   30

Definiert in Zeile 33 der Datei logtext.h.

#define STDCCONV   __stdcall

Definiert in Zeile 190 der Datei logtext.h.


Dokumentation der benutzerdefinierten Typen

typedef const char* chLogText

Definiert in Zeile 219 der Datei logtext.h.

typedef const char* chLogText

Definiert in Zeile 218 der Datei logtext.h.

typedef const char* chLogText

Definiert in Zeile 216 der Datei logtext.h.

typedef const char* chLogText

Definiert in Zeile 214 der Datei logtext.h.

typedef const char* chLogText

Definiert in Zeile 213 der Datei logtext.h.

typedef const char* chLogText

Definiert in Zeile 211 der Datei logtext.h.

typedef const char DWORD dwOptions

Definiert in Zeile 216 der Datei logtext.h.

typedef const char DWORD dwOptions

Definiert in Zeile 211 der Datei logtext.h.

typedef struct sIni SINISECTION

typedef struct sLogTextEx SLOGTEXTINI

typedef struct sLogTextExQ SLOGTEXTINIQ

typedef const char SLOGTEXTINI* sltIni

Definiert in Zeile 219 der Datei logtext.h.

typedef const char SLOGTEXTINI* sltIni

Definiert in Zeile 218 der Datei logtext.h.

typedef const char SLOGTEXTINI* sltIni

Definiert in Zeile 214 der Datei logtext.h.

typedef const char SLOGTEXTINI* sltIni

Definiert in Zeile 213 der Datei logtext.h.

typedef const char DWORD unsigned long ulMaxLogs

Definiert in Zeile 216 der Datei logtext.h.

typedef const char DWORD unsigned long ulMaxLogs

Definiert in Zeile 211 der Datei logtext.h.

typedef const char DWORD unsigned long unsigned long ulMaxZips

Definiert in Zeile 216 der Datei logtext.h.

typedef const char DWORD unsigned long unsigned long ulMaxZips

Definiert in Zeile 211 der Datei logtext.h.


Dokumentation der Funktionen

typedef int ( STDCCONV *  LPSLOGTEXT  )  const

typedef int ( CALLCONV *  LPLOGTEXT  )  const

int LoadAndInitializeLogText ( char *  chLogTextPath  ) 

Definiert in Zeile 27 der Datei logtext.c.

Benutzt hLogTextDLL, lpLogText, lpLogTextEx, lpLogTextExQ, lpsLogText, lpsLogTextEx und lpsLogTextExQ.

Wird benutzt von 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 
)


Variablen-Dokumentation

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

Definiert in Zeile 25 der Datei logtext.c.

Wird benutzt von LoadAndInitializeLogText().

LPLOGTEXT lpLogText

Definiert in Zeile 19 der Datei logtext.c.

Wird benutzt von LoadAndInitializeLogText().

LPLOGTEXTEX lpLogTextEx

Definiert in Zeile 20 der Datei logtext.c.

Wird benutzt von LoadAndInitializeLogText().

LPLOGTEXTEXQ lpLogTextExQ

Definiert in Zeile 21 der Datei logtext.c.

Wird benutzt von LoadAndInitializeLogText() und main().

LPSLOGTEXT lpsLogText

Definiert in Zeile 22 der Datei logtext.c.

Wird benutzt von LoadAndInitializeLogText().

LPSLOGTEXTEX lpsLogTextEx

Definiert in Zeile 23 der Datei logtext.c.

Wird benutzt von LoadAndInitializeLogText().

LPSLOGTEXTEXQ lpsLogTextExQ

Definiert in Zeile 24 der Datei logtext.c.

Wird benutzt von LoadAndInitializeLogText().

 
 
 
 
 
 
 
 


Heimseite - Download - Dokumentation - Forum - Fehler melden - Impressum - Lizenzvereinbarung - Externe Verweise