libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
NTPerformanceObjects.cpp File Reference
#include "stdafx.h"
#include "NTPerformanceObjects.hpp"
#include "../DumpWinMsg.hpp"
Include dependency graph for NTPerformanceObjects.cpp:

Go to the source code of this file.

Functions

 __declspec (dllexport) DWORD CALLBACK OpenPerformanceData(LPWSTR lpDeviceNames)
 
NTPerformanceObjects::nt_event_log Log (NTUtils::EventLog::err_information, NTUtils::EventLog::cat_custom2, "CollectPerformanceData(...) : Collecting...")
 
std::auto_ptr< char > n_value (new char[wcslen(lpwszValue)])
 
 CharToOemW (lpwszValue, n_value.get())
 
NTPerformanceObjects::nt_event_log Log (NTUtils::EventLog::err_information, NTUtils::EventLog::cat_custom2, str)
 
 if (cpp_performance_objects->find(n_value.get())==cpp_performance_objects->end())
 
 catch (std::exception err)
 
 catch (...)
 

Variables

LPVOID * lppData
 
LPVOID LPDWORD lpcbBytes =0
 
LPVOID LPDWORD LPDWORD lpcObjectTypes
 
std::string str ="CollectPerformanceData(...) : Collection parameters:\nCollection load type:'"
 
 try
 
NTPerformanceObjects::cpp_performance_objects_type *const cpp_performance_objects =(NTPerformanceObjects::cpp_performance_objects_type *)cpp_po_heap
 
return ERROR_INVALID_FUNCTION
 

Function Documentation

◆ __declspec()

__declspec ( dllexport  )

Definition at line 63 of file NTPerformanceObjects.cpp.

◆ catch() [1/2]

catch (   ...)

Definition at line 115 of file NTPerformanceObjects.cpp.

◆ catch() [2/2]

catch ( std::exception  err)

Definition at line 111 of file NTPerformanceObjects.cpp.

◆ CharToOemW()

CharToOemW ( lpwszValue  ,
n_value.  get() 
)

◆ if()

if ( cpp_performance_objects->  findn_value.get() = =cpp_performance_objects->end())

Definition at line 103 of file NTPerformanceObjects.cpp.

◆ Log() [1/2]

NTPerformanceObjects::nt_event_log Log ( NTUtils::EventLog::err_information  ,
NTUtils::EventLog::cat_custom2  ,
"CollectPerformanceData(...) : Collecting..."   
)

◆ Log() [2/2]

NTPerformanceObjects::nt_event_log Log ( NTUtils::EventLog::err_information  ,
NTUtils::EventLog::cat_custom2  ,
str   
)

◆ n_value()

std::auto_ptr< char > n_value ( new char  [wcslen(lpwszValue)])

Variable Documentation

◆ cpp_performance_objects

NTPerformanceObjects::cpp_performance_objects_type *const cpp_performance_objects =(NTPerformanceObjects::cpp_performance_objects_type *)cpp_po_heap

Definition at line 96 of file NTPerformanceObjects.cpp.

◆ ERROR_INVALID_FUNCTION

return ERROR_INVALID_FUNCTION

Definition at line 120 of file NTPerformanceObjects.cpp.

◆ lpcbBytes

* lpcbBytes =0

Definition at line 90 of file NTPerformanceObjects.cpp.

◆ lpcObjectTypes

* lpcObjectTypes
Initial value:
{
NTUtils::CSectionLock lock(NTPerformanceObjects::perf_ctr_map_sect)

Definition at line 90 of file NTPerformanceObjects.cpp.

◆ lppData

LPVOID * lppData

Definition at line 90 of file NTPerformanceObjects.cpp.

◆ str

char str ="CollectPerformanceData(...) : Collection parameters:\nCollection load type:'"

Definition at line 93 of file NTPerformanceObjects.cpp.

◆ try

try
Initial value:
{
NTPerformanceObjects::cpp_po_heap_type cpp_po_heap(HeapID(initial_shared_memory_size, map_shared_memory_names, &NTPerformanceObjects::allow_all))
const std::pair< std::string, std::string > map_shared_memory_names(map_shared_memory_name, map_shared_mutex_name)

Definition at line 94 of file NTPerformanceObjects.cpp.