Main Page | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

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.


Detailed Description

Some utility functions for the driver.

**************************************************************

Author:
Spiro Trikaliotis
Version:
Id
util.c,v 1.12 2006/02/24 12:01:20 trikalio Exp


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:
Fdo Pointer to a DEVICE_OBJECT structure. This is the device object for the target device, previously created by the driver's AddDevice routine.
ErrorCode The NTSTATUS code which should be reported on behalf of this error log entry
String1 Pointer 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.
String2 Pointer 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 47 of file libcommon/util.c.

References DBG_ASSERT, FUNC_ENTER, and FUNC_LEAVE.


Generated on Sun Apr 30 18:46:16 2006 for opencbm by  doxygen 1.4.2