/[openpgpmdrv]/trunk/OpenPGPminidriver/Tracing.h
ViewVC logotype

Annotation of /trunk/OpenPGPminidriver/Tracing.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 12 - (hide annotations)
Wed Mar 31 08:58:46 2010 UTC (15 years, 1 month ago) by vletoux
File MIME type: text/plain
File size: 1499 byte(s)
first msi Release
1 vletoux 1 /* OpenPGP Smart Card Mini Driver
2     Copyright (C) 2009 Vincent Le Toux
3    
4     This library is Free software; you can redistribute it and/or
5     modify it under the terms of the GNU Lesser General Public
6     License version 2.1 as published by the Free Software Foundation.
7    
8     This library is distributed in the hope that it will be useful,
9     but WITHOUT ANY WARRANTY; without even the implied warranty of
10     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11     Lesser General Public License for more details.
12    
13     You should have received a copy of the GNU Lesser General Public
14     License along with this library; if not, write to the Free Software
15     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16     */
17    
18     #pragma once
19    
20     #define WINEVENT_LEVEL_CRITICAL 1
21     #define WINEVENT_LEVEL_ERROR 2
22     #define WINEVENT_LEVEL_WARNING 3
23     #define WINEVENT_LEVEL_INFO 4
24     #define WINEVENT_LEVEL_VERBOSE 5
25    
26     void TracingRegister();
27     void TracingUnRegister();
28 vletoux 12 extern BOOL fRunOnVistaAndLater;
29 vletoux 1
30     #define Trace(dwLevel, ...) \
31     TraceEx(__FILE__,__LINE__,__FUNCTION__, dwLevel, __VA_ARGS__);
32    
33     void TraceEx(PCSTR szFile, DWORD dwLine, PCSTR szFunction, UCHAR dwLevel, PCWSTR szFormat,...);
34    
35     void TraceDumpEx(LPCSTR szFile, DWORD dwLine, LPCSTR szFunction, UCHAR dwLevel,
36     __in PBYTE pbCmd, __in DWORD dwCmdSize);
37    
38     #define TraceDump(dwLevel, pbCmd,dwCmdSize) \
39     TraceDumpEx(__FILE__,__LINE__,__FUNCTION__, dwLevel, pbCmd,dwCmdSize);

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26