LICK
 All Data Structures Files Functions Variables Enumerations Enumerator
Data Structures | Enumerations | Functions
system-info.h File Reference

Determine information about the system. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  sys_info_t
 relevant info about the system More...
 

Enumerations

enum  family_e { F_UNKNOWN, F_WINDOWS_9X, F_WINDOWS_NT, F_WINDOWS_VISTA }
 
enum  version_e {
  V_UNKNOWN, V_WINDOWS_95, V_WINDOWS_98, V_WINDOWS_ME,
  V_WINDOWS_NT, V_WINDOWS_2000, V_WINDOWS_XP, V_WINDOWS_VISTA,
  V_WINDOWS_7, V_WINDOWS_8, V_WINDOWS_8_1, V_WINDOWS_10
}
 
enum  architecture_e { A_UNKNOWN, A_WINDOWS_X86, A_WINDOWS_X86_64 }
 
enum  is_admin_e { ADMIN_UNKNOWN, ADMIN_YES, ADMIN_NO }
 
enum  bios_type_e { BIOS_UNKNOWN, BIOS_BIOS, BIOS_UEFI }
 

Functions

char * version_name (version_e v)
 determines the name of the given windows version More...
 
char * family_name (family_e f)
 determines the name of the given windows family More...
 
char * arch_name (architecture_e a)
 determines the name of the given architecture More...
 
char * bios_name (bios_type_e b)
 determines the name of the given BIOS type More...
 
sys_info_tget_system_info ()
 returns info about the system More...
 
void free_sys_info (sys_info_t *info)
 frees memory used by a sys_info_t
 

Detailed Description

Determine information about the system.

Function Documentation

char* arch_name ( architecture_e  a)

determines the name of the given architecture

Parameters
athe architecture
Returns
the name of the architecture. Do not free this value
char* bios_name ( bios_type_e  b)

determines the name of the given BIOS type

Parameters
bthe BIOS type
Returns
the name of the BIOS type. Do not free this value
char* family_name ( family_e  f)

determines the name of the given windows family

Parameters
fthe windows family
Returns
the name of the family. Do not free this value
sys_info_t* get_system_info ( )

returns info about the system

Returns
info about the system. Must be freed using free
char* version_name ( version_e  v)

determines the name of the given windows version

Parameters
vthe windows version
Returns
the name of the version. Do not free this value