AJA NTV2 SDK  17.6.0.2675
NTV2 SDK 17.6.0.2675
perflog.cpp File Reference
#include <streams.h>
#include <windows.h>
#include <tchar.h>
#include <winperf.h>
#include <wmistr.h>
#include <evntrace.h>
#include <strsafe.h>
#include "perflog.h"
Include dependency graph for perflog.cpp:

Go to the source code of this file.

Macros

#define REGISTERTRACEGUIDS_NAME   "RegisterTraceGuidsA"
 

Functions

ULONG WINAPI PerflogCallback (WMIDPREQUESTCODE RequestCode, __in PVOID Context, __out ULONG *BufferSize, __in PVOID Buffer)
 
 ULONG (__stdcall *_RegisterTraceGuids)(__in IN WMIDPREQUEST RequestAddress
 
 TRACEHANDLE (__stdcall *_GetTraceLoggerHandle)(__in PVOID Buffer)
 
 UCHAR (__stdcall *_GetTraceEnableLevel)(TRACEHANDLE TraceHandle)
 
VOID PerflogReadModuleLevel (HINSTANCE hInstance)
 
BOOL PerflogInitIfEnabled (IN HINSTANCE hInstance, __in IN PPERFLOG_LOGGING_PARAMS LogParams)
 
BOOL PerflogInitialize (__in IN PPERFLOG_LOGGING_PARAMS LogParams)
 
VOID PerflogShutdown (VOID)
 
VOID PerflogTraceEvent (__in PEVENT_TRACE_HEADER Event)
 
VOID PerflogTraceEventLevel (ULONG Level, __in PEVENT_TRACE_HEADER Event)
 

Variables

__in IN PVOID RequestContext
 
__in IN PVOID IN LPCGUID ControlGuid
 
__in IN PVOID IN LPCGUID IN ULONG GuidCount
 
__in IN PVOID IN LPCGUID IN ULONG __in IN PTRACE_GUID_REGISTRATION TraceGuidReg
 
__in IN PVOID IN LPCGUID IN ULONG __in IN PTRACE_GUID_REGISTRATION IN LPCSTR MofImagePath
 
__in IN PVOID IN LPCGUID IN ULONG __in IN PTRACE_GUID_REGISTRATION IN LPCSTR IN LPCSTR MofResourceName
 
__in IN PVOID IN LPCGUID IN ULONG __in IN PTRACE_GUID_REGISTRATION IN LPCSTR IN LPCSTR __out OUT PTRACEHANDLE RegistrationHandle
 
__in PEVENT_TRACE_HEADER EventTrace
 
HINSTANCE _Advapi32
 
BOOL EventTracingAvailable =FALSE
 
ULONG PerflogEnableFlags
 
UCHAR PerflogEnableLevel
 
ULONG PerflogModuleLevel = 0
 
void(* OnStateChanged )(void)
 
TRACEHANDLE PerflogTraceHandle =NULL
 
TRACEHANDLE PerflogRegHandle
 
const INT iDEBUGINFO = 1024
 

Macro Definition Documentation

◆ REGISTERTRACEGUIDS_NAME

#define REGISTERTRACEGUIDS_NAME   "RegisterTraceGuidsA"

Definition at line 68 of file perflog.cpp.

Function Documentation

◆ PerflogCallback()

ULONG WINAPI PerflogCallback ( WMIDPREQUESTCODE  RequestCode,
__in PVOID  Context,
__out ULONG BufferSize,
__in PVOID  Buffer 
)

Definition at line 277 of file perflog.cpp.

◆ PerflogInitialize()

BOOL PerflogInitialize ( __in IN PPERFLOG_LOGGING_PARAMS  LogParams)

Definition at line 200 of file perflog.cpp.

◆ PerflogInitIfEnabled()

BOOL PerflogInitIfEnabled ( IN HINSTANCE  hInstance,
__in IN PPERFLOG_LOGGING_PARAMS  LogParams 
)

Definition at line 183 of file perflog.cpp.

◆ PerflogReadModuleLevel()

VOID PerflogReadModuleLevel ( HINSTANCE  hInstance)

Definition at line 123 of file perflog.cpp.

◆ PerflogShutdown()

VOID PerflogShutdown ( VOID  )

Definition at line 257 of file perflog.cpp.

◆ PerflogTraceEvent()

VOID PerflogTraceEvent ( __in PEVENT_TRACE_HEADER  Event)

Definition at line 323 of file perflog.cpp.

◆ PerflogTraceEventLevel()

VOID PerflogTraceEventLevel ( ULONG  Level,
__in PEVENT_TRACE_HEADER  Event 
)

Definition at line 335 of file perflog.cpp.

◆ TRACEHANDLE()

TRACEHANDLE ( __stdcall *  _GetTraceLoggerHandle)

◆ UCHAR()

UCHAR ( __stdcall *  _GetTraceEnableLevel)

◆ ULONG()

ULONG ( __stdcall *  _RegisterTraceGuids)

Variable Documentation

◆ _Advapi32

HINSTANCE _Advapi32

Definition at line 98 of file perflog.cpp.

◆ ControlGuid

__in IN PVOID IN LPCGUID ControlGuid

Definition at line 60 of file perflog.cpp.

◆ EventTrace

__in PEVENT_TRACE_HEADER EventTrace

Definition at line 96 of file perflog.cpp.

◆ EventTracingAvailable

BOOL EventTracingAvailable =FALSE

Definition at line 104 of file perflog.cpp.

◆ GuidCount

__in IN PVOID IN LPCGUID IN ULONG GuidCount

Definition at line 61 of file perflog.cpp.

◆ iDEBUGINFO

const INT iDEBUGINFO = 1024

Definition at line 114 of file perflog.cpp.

◆ MofImagePath

__in IN PVOID IN LPCGUID IN ULONG __in IN PTRACE_GUID_REGISTRATION IN LPCSTR MofImagePath

Definition at line 63 of file perflog.cpp.

◆ MofResourceName

__in IN PVOID IN LPCGUID IN ULONG __in IN PTRACE_GUID_REGISTRATION IN LPCSTR IN LPCSTR MofResourceName

Definition at line 64 of file perflog.cpp.

◆ OnStateChanged

void(* OnStateChanged) (void)

Definition at line 108 of file perflog.cpp.

◆ PerflogEnableFlags

ULONG PerflogEnableFlags

Definition at line 105 of file perflog.cpp.

◆ PerflogEnableLevel

UCHAR PerflogEnableLevel

Definition at line 106 of file perflog.cpp.

◆ PerflogModuleLevel

ULONG PerflogModuleLevel = 0

Definition at line 107 of file perflog.cpp.

◆ PerflogRegHandle

TRACEHANDLE PerflogRegHandle

Definition at line 110 of file perflog.cpp.

◆ PerflogTraceHandle

TRACEHANDLE PerflogTraceHandle =NULL

Definition at line 109 of file perflog.cpp.

◆ RegistrationHandle

__in IN PVOID IN LPCGUID IN ULONG __in IN PTRACE_GUID_REGISTRATION IN LPCSTR IN LPCSTR __out OUT PTRACEHANDLE RegistrationHandle

Definition at line 66 of file perflog.cpp.

◆ RequestContext

__in IN PVOID RequestContext

Definition at line 59 of file perflog.cpp.

◆ TraceGuidReg

__in IN PVOID IN LPCGUID IN ULONG __in IN PTRACE_GUID_REGISTRATION TraceGuidReg

Definition at line 62 of file perflog.cpp.