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

Diff of /trunk/OpenPGPminidriver/Tracing.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6 by vletoux, Tue Feb 23 19:18:59 2010 UTC revision 7 by vletoux, Thu Mar 4 21:50:46 2010 UTC
# Line 38  DEFINE_GUID(TracingGuid, Line 38  DEFINE_GUID(TracingGuid,
38    
39  REGHANDLE hPub = 0;  REGHANDLE hPub = 0;
40    
41  void TracingRegister() {  void TracingRegister()
42    {
43          EventRegister(&TracingGuid,NULL,NULL,&hPub);          EventRegister(&TracingGuid,NULL,NULL,&hPub);
44  }  }
45    
46  void TracingUnRegister() {  void TracingUnRegister()
47    {
48          EventUnregister(hPub);          EventUnregister(hPub);
49  }  }
50    
51    
52  void TraceEx(LPCSTR szFile, DWORD dwLine, LPCSTR szFunction, UCHAR dwLevel, PCWSTR szFormat,...) {  void TraceEx(LPCSTR szFile, DWORD dwLine, LPCSTR szFunction, UCHAR dwLevel, PCWSTR szFormat,...)
53  #ifndef _DEBUG  {
         UNREFERENCED_PARAMETER(dwLine);  
         UNREFERENCED_PARAMETER(szFile);  
 #endif  
54          WCHAR Buffer[256];          WCHAR Buffer[256];
55          WCHAR Buffer2[356];          WCHAR Buffer2[356];
56          int ret;          int ret;
57          va_list ap;          va_list ap;
58    #ifndef _DEBUG
59            UNREFERENCED_PARAMETER(dwLine);
60            UNREFERENCED_PARAMETER(szFile);
61    #endif
62          if (!hPub) TracingRegister();          if (!hPub) TracingRegister();
63    
64          va_start (ap, szFormat);          va_start (ap, szFormat);

Legend:
Removed from v.6  
changed lines
  Added in v.7

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26