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

util.h

Go to the documentation of this file.
00001 /*
00002  *  This program is free software; you can redistribute it and/or
00003  *  modify it under the terms of the GNU General Public License
00004  *  as published by the Free Software Foundation; either version
00005  *  2 of the License, or (at your option) any later version.
00006  *
00007  *  Copyright 2004 Spiro Trikaliotis
00008  *
00009  */
00010 
00020 // Some macros for specifying time values in NT's 100 ns-epoch
00022 
00024 #define SECONDS(_x_) MILLISECONDS((_x_)*1000)
00025 
00027 #define MILLISECONDS(_x_) MICROSECONDS((_x_)*1000)
00028 
00030 #define MICROSECONDS(_x_) ((_x_) * 10)
00031 
00032 VOID LogError(IN PDEVICE_OBJECT Fdo, IN NTSTATUS ErrorCode,
00033     const WCHAR *String1, const WCHAR *String2);
00034 
00036 #define LogErrorOnly(_Fdo_, _UniqueErrorValue_) \
00037     LogError(_Fdo_, _UniqueErrorValue_, NULL, NULL)
00038 
00040 #define LogErrorString(_Fdo_, _UniqueErrorValue_, _String1_, _String2_) \
00041     LogError(_Fdo_, _UniqueErrorValue_, _String1_, _String2_)

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