AJA NTV2 SDK  17.0.1.1246
NTV2 SDK 17.0.1.1246
infoimpl.cpp File Reference

Implements the AJASystemInfoImpl class on the Windows platform. More...

#include "ajabase/system/system.h"
#include "ajabase/system/info.h"
#include "ajabase/system/windows/infoimpl.h"
#include <intrin.h>
#include <io.h>
#include <Knownfolders.h>
#include <LM.h>
#include <ShlObj.h>
#include <Shlwapi.h>
#include <time.h>
#include <iomanip>
#include <comdef.h>
#include <Wbemidl.h>
#include <sstream>
Include dependency graph for infoimpl.cpp:

Go to the source code of this file.

Classes

struct  WindowsVersionEntry
 

Functions

std::string aja_getsystemmodel ()
 
std::string aja_getsystembios ()
 
std::string aja_getsystemname ()
 
std::string aja_getboottime ()
 
static std::string getOSName_WMI ()
 
std::string aja_getosname ()
 
std::string aja_getcputype ()
 
std::string aja_getcpucores ()
 
std::string aja_getgputype ()
 
void aja_getmemory (AJASystemInfoMemoryUnit units, std::string &total, std::string &used, std::string &free)
 
std::string aja_getosversion ()
 
std::string aja_getosversionbuild ()
 
std::string aja_mkpath_to_user_dir (const std::string &username)
 

Variables

const WindowsVersionEntry WindowsVersionTable []
 
const int WindowsVersionTableSize = sizeof(WindowsVersionTable) / sizeof(WindowsVersionEntry)
 

Detailed Description

Implements the AJASystemInfoImpl class on the Windows platform.

Definition in file infoimpl.cpp.

Function Documentation

◆ aja_getboottime()

std::string aja_getboottime ( )

Definition at line 97 of file infoimpl.cpp.

◆ aja_getcpucores()

std::string aja_getcpucores ( )

Definition at line 395 of file infoimpl.cpp.

◆ aja_getcputype()

std::string aja_getcputype ( )

Definition at line 370 of file infoimpl.cpp.

◆ aja_getgputype()

std::string aja_getgputype ( )

Definition at line 405 of file infoimpl.cpp.

◆ aja_getmemory()

void aja_getmemory ( AJASystemInfoMemoryUnit  units,
std::string &  total,
std::string &  used,
std::string &  free 
)

Definition at line 429 of file infoimpl.cpp.

◆ aja_getosname()

std::string aja_getosname ( )

Definition at line 277 of file infoimpl.cpp.

◆ aja_getosversion()

std::string aja_getosversion ( )

Definition at line 472 of file infoimpl.cpp.

◆ aja_getosversionbuild()

std::string aja_getosversionbuild ( )

Definition at line 486 of file infoimpl.cpp.

◆ aja_getsystembios()

std::string aja_getsystembios ( )

Definition at line 67 of file infoimpl.cpp.

◆ aja_getsystemmodel()

std::string aja_getsystemmodel ( )

Definition at line 48 of file infoimpl.cpp.

◆ aja_getsystemname()

std::string aja_getsystemname ( )

Definition at line 83 of file infoimpl.cpp.

◆ aja_mkpath_to_user_dir()

std::string aja_mkpath_to_user_dir ( const std::string &  username)

Definition at line 497 of file infoimpl.cpp.

◆ getOSName_WMI()

static std::string getOSName_WMI ( )
static

Definition at line 143 of file infoimpl.cpp.

Variable Documentation

◆ WindowsVersionTable

const WindowsVersionEntry WindowsVersionTable[]
Initial value:
=
{
{ 5, 0, (char*)"Windows 2000", (char*)"Windows 2000"},
{ 5, 1, (char*)"Windows XP", (char*)"Windows XP"},
{ 5, 2, (char*)"Windows Server 2003", (char*)"Windows Server 2003"},
{ 6, 0, (char*)"Windows Vista", (char*)"Windows Server 2008"},
{ 6, 1, (char*)"Windows 7", (char*)"Windows Server 2008 R2"},
{ 6, 2, (char*)"Windows 8", (char*)"Windows Server 2012"},
{ 6, 3, (char*)"Windows 8.1", (char*)"Windows Server 2012 R2"}
}

Definition at line 34 of file infoimpl.cpp.

◆ WindowsVersionTableSize

const int WindowsVersionTableSize = sizeof(WindowsVersionTable) / sizeof(WindowsVersionEntry)

Definition at line 45 of file infoimpl.cpp.