OpenCBM
Functions
libcommon/util.c File Reference

Some utility functions for the driver. More...

#include <wdm.h>
#include "cbm_driver.h"

Go to the source code of this file.

Functions

VOID LogError (IN PDEVICE_OBJECT Fdo, IN NTSTATUS ErrorCode, const WCHAR *String1, const WCHAR *String2)
 Log an error entry in the system log. More...
 

Detailed Description

Some utility functions for the driver.



Author
Spiro Trikaliotis

Definition in file libcommon/util.c.

Function Documentation

VOID LogError ( IN PDEVICE_OBJECT  Fdo,
IN NTSTATUS  ErrorCode,
const WCHAR *  String1,
const WCHAR *  String2 
)

Log an error entry in the system log.

Log an error entry in the system log.

Parameters
FdoPointer to a DEVICE_OBJECT structure. This is the device object for the target device, previously created by the driver's AddDevice routine.
ErrorCodeThe NTSTATUS code which should be reported on behalf of this error log entry
String1Pointer to the 1st (WCHAR) string which has to be included into the error log entry. This can be NULL if no string is to be inserted.
String2Pointer to the 2nd (WCHAR) string which has to be included into the error log entry. This can be NULL if no string is to be inserted.
Todo:
Would it make sense to short the strings if the error log entry would be too big?

Definition at line 46 of file libcommon/util.c.

References DBG_ASSERT, FUNC_ENTER, and FUNC_LEAVE.