AudRecordLib
ETWEvents.h
Go to the documentation of this file.
00001 
00008 #ifndef AUDRECORD_ETWEVENTS_H
00009 #define AUDRECORD_ETWEVENTS_H
00010 
00011 #pragma once
00012 
00013 #pragma managed(push)
00014 #pragma managed(off)
00015 
00016 // both these files contain inline definitions so 
00017 // they're within the pragma block
00018 #include <stddef.h>
00019 #include <strsafe.h>
00020 
00029 template<size_t N>
00030 char* LogFormat(char (&buffer)[N], const char* pFormat, ...)
00031 {
00032         va_list list;
00033         va_start(list, pFormat);
00034         StringCchVPrintfA(buffer, N, pFormat, list);
00035         va_end(list);
00036         return buffer;
00037 }
00038 
00039 void RegisterEventProvider();
00040 void UnregisterEventProvider();
00041 void LogDebugEvent(LPCSTR pszFile, DWORD line, LPCSTR pszFunction, LPCSTR pszData);
00042 void LogSevereEvent(LPCSTR pszFile, DWORD line, LPCSTR pszFunction, LPCSTR pszData);
00043 
00044 #pragma managed(pop)
00045 
00048 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Defines