|
NTKERNELAPI UCHAR *NTAPI | PsGetProcessImageFileName (_In_ PEPROCESS process) |
|
static NTSTATUS | LogpInitializeBufferInfo (_In_ const wchar_t *log_file_path, _Inout_ LogBufferInfo *info) |
|
static NTSTATUS | LogpInitializeLogFile (_Inout_ LogBufferInfo *info) |
|
static void | LogpFinalizeBufferInfo (_In_ LogBufferInfo *info) |
|
static NTSTATUS | LogpMakePrefix (_In_ ULONG level, _In_z_ const char *function_name, _In_z_ const char *log_message, _Out_ char *log_buffer, _In_ SIZE_T log_buffer_length) |
|
static const char * | LogpFindBaseFunctionName (_In_z_ const char *function_name) |
|
static NTSTATUS | LogpPut (_In_z_ char *message, _In_ ULONG attribute) |
|
static NTSTATUS | LogpFlushLogBuffer (_Inout_ LogBufferInfo *info) |
|
static NTSTATUS | LogpWriteMessageToFile (_In_z_ const char *message, _In_ const LogBufferInfo &info) |
|
static NTSTATUS | LogpBufferMessage (_In_z_ const char *message, _Inout_ LogBufferInfo *info) |
|
static void | LogpDoDbgPrint (_In_z_ char *message) |
|
static bool | LogpIsLogFileEnabled (_In_ const LogBufferInfo &info) |
|
static bool | LogpIsLogFileActivated (_In_ const LogBufferInfo &info) |
|
static bool | LogpIsLogNeeded (_In_ ULONG level) |
|
static bool | LogpIsDbgPrintNeeded () |
|
static NTSTATUS | LogpSleep (_In_ LONG millisecond) |
|
static void | LogpSetPrintedBit (_In_z_ char *message, _In_ bool on) |
|
static bool | LogpIsPrinted (_In_z_ char *message) |
|
static void | LogpDbgBreak () |
|
NTSTATUS | LogInitialization (ULONG flag, const wchar_t *log_file_path) |
|
static NTSTATUS | LogpInitializeBufferInfo (const wchar_t *log_file_path, LogBufferInfo *info) |
|
static NTSTATUS | LogpInitializeLogFile (LogBufferInfo *info) |
|
void | LogRegisterReinitialization (PDRIVER_OBJECT driver_object) |
|
static VOID | LogpReinitializationRoutine (_DRIVER_OBJECT *driver_object, PVOID context, ULONG count) |
|
void | LogIrpShutdownHandler () |
| Terminates the log system. Should be called from an IRP_MJ_SHUTDOWN handler. More...
|
|
void | LogTermination () |
| Terminates the log system. Should be called from a DriverUnload routine. More...
|
|
static void | LogpFinalizeBufferInfo (LogBufferInfo *info) |
|
NTSTATUS | LogpPrint (ULONG level, const char *function_name, const char *format,...) |
|
static NTSTATUS | LogpMakePrefix (ULONG level, const char *function_name, const char *log_message, char *log_buffer, SIZE_T log_buffer_length) |
|
static const char * | LogpFindBaseFunctionName (const char *function_name) |
|
static NTSTATUS | LogpPut (char *message, ULONG attribute) |
|
static NTSTATUS | LogpFlushLogBuffer (LogBufferInfo *info) |
|
static NTSTATUS | LogpWriteMessageToFile (const char *message, const LogBufferInfo &info) |
|
static NTSTATUS | LogpBufferMessage (const char *message, LogBufferInfo *info) |
|
static void | LogpDoDbgPrint (char *message) |
|
static bool | LogpIsLogFileEnabled (const LogBufferInfo &info) |
|
static bool | LogpIsLogFileActivated (const LogBufferInfo &info) |
|
static bool | LogpIsLogNeeded (ULONG level) |
|
static VOID | LogpBufferFlushThreadRoutine (void *start_context) |
|
static NTSTATUS | LogpSleep (LONG millisecond) |
|
static void | LogpSetPrintedBit (char *message, bool on) |
|
static bool | LogpIsPrinted (char *message) |
|
_Check_return_opt_ int __cdecl | __stdio_common_vsprintf (_In_ unsigned __int64 _Options, _Out_writes_opt_z_(_BufferCount) char *_Buffer, _In_ size_t _BufferCount, _In_z_ _Printf_format_string_params_(2) char const *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList) |
|
_Check_return_opt_ int __cdecl | __stdio_common_vswprintf (_In_ unsigned __int64 _Options, _Out_writes_opt_z_(_BufferCount) wchar_t *_Buffer, _In_ size_t _BufferCount, _In_z_ _Printf_format_string_params_(2) wchar_t const *_Format, _In_opt_ _locale_t _Locale, va_list _ArgList) |
|
Implements logging functions.
Definition in file log.cpp.