libsmbios_c library
|
Go to the source code of this file.
Functions | |
LIBSMBIOS_C_DLL_SPEC const char * | smbios_get_library_version_string () |
Return a string representing the version of the libsmbios library. | |
LIBSMBIOS_C_DLL_SPEC int | smbios_get_library_version_major () |
Return a number representing the major version of the libsmbios library. | |
LIBSMBIOS_C_DLL_SPEC int | smbios_get_library_version_minor () |
Return a number representing the minor version of the libsmbios library. | |
LIBSMBIOS_C_DLL_SPEC int | sysinfo_get_dell_system_id () |
Return the Dell System ID Byte or Word. | |
LIBSMBIOS_C_DLL_SPEC int | sysinfo_get_dell_oem_system_id () |
Return the Dell OEM System ID Byte or Word. | |
LIBSMBIOS_C_DLL_SPEC char * | sysinfo_get_vendor_name () |
Return a buffer containing the system vendor name. | |
LIBSMBIOS_C_DLL_SPEC char * | sysinfo_get_system_name () |
Return a buffer containing the system name. | |
LIBSMBIOS_C_DLL_SPEC char * | sysinfo_get_bios_version () |
Return a buffer containing the system bios version string. | |
LIBSMBIOS_C_DLL_SPEC char * | sysinfo_get_asset_tag () |
Return a buffer containing the system asset tag string. | |
LIBSMBIOS_C_DLL_SPEC char * | sysinfo_get_service_tag () |
Return a buffer containing the system service tag string. | |
LIBSMBIOS_C_DLL_SPEC char * | sysinfo_get_property_ownership_tag () |
copy property ownership tag into user-supplied buffer. | |
LIBSMBIOS_C_DLL_SPEC int | sysinfo_set_property_ownership_tag (const char *newTag, const char *pass_ascii, const char *pass_scancode) |
Set system property ownership tag. | |
LIBSMBIOS_C_DLL_SPEC int | sysinfo_set_asset_tag (const char *assetTag, const char *pass_ascii, const char *pass_scancode) |
set the system asset tag. | |
LIBSMBIOS_C_DLL_SPEC const char * | sysinfo_strerror () |
Returns string describing the last error condition. | |
LIBSMBIOS_C_DLL_SPEC void | sysinfo_string_free (void *) |
Free string. | |
LIBSMBIOS_C_DLL_SPEC int | sysinfo_has_nvram_state_bytes () |
LIBSMBIOS_C_DLL_SPEC int | sysinfo_get_nvram_state_bytes (int user) |
LIBSMBIOS_C_DLL_SPEC void | sysinfo_set_nvram_state_bytes (int value, int user) |
LIBSMBIOS_C_DLL_SPEC int | sysinfo_has_up_boot_flag () |
LIBSMBIOS_C_DLL_SPEC int | sysinfo_set_up_boot_flag (int state) |
LIBSMBIOS_C_DLL_SPEC int | sysinfo_get_up_boot_flag () |
LIBSMBIOS_C_DLL_SPEC int smbios_get_library_version_major | ( | ) |
Return a number representing the major version of the libsmbios library.
LIBSMBIOS_C_DLL_SPEC int smbios_get_library_version_minor | ( | ) |
Return a number representing the minor version of the libsmbios library.
LIBSMBIOS_C_DLL_SPEC const char * smbios_get_library_version_string | ( | ) |
Return a string representing the version of the libsmbios library.
This string is statically allocated in the library, so there is no need to free it when done.
LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_asset_tag | ( | ) |
Return a buffer containing the system asset tag string.
Return value must be de-allocated using sysinfo_string_free(), or memory will leak.
LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_bios_version | ( | ) |
Return a buffer containing the system bios version string.
Return value must be de-allocated using sysinfo_string_free(), or memory will leak.
LIBSMBIOS_C_DLL_SPEC int sysinfo_get_dell_oem_system_id | ( | ) |
Return the Dell OEM System ID Byte or Word.
The Dell System ID is a unique number allocated to each Dell System (server, desktop, workstation, or laptop) that uniquely identifies that system within Dell's product line.
For systems manufactured by Dell and sold through other resellers as OEM systems, they may assign a different system ID from the Dell system ID. This function will always return the OEM ID, if present. If not present, it will fall back to the Dell manufacturer ID.
To see if a system is OEM, check: if (sysinfo_get_dell_oem_system_id() == sysinfo_get_dell_system_id()) system_is_dell=1; else system_is_dell_oem=1;
LIBSMBIOS_C_DLL_SPEC int sysinfo_get_dell_system_id | ( | ) |
Return the Dell System ID Byte or Word.
The Dell System ID is a unique number allocated to each Dell System (server, desktop, workstation, or laptop) that uniquely identifies that system within Dell's product line.
This function always returns the Dell specific system ID for the system. To get the OEM sytem id, see the next function
LIBSMBIOS_C_DLL_SPEC int sysinfo_get_nvram_state_bytes | ( | int | user | ) |
LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_property_ownership_tag | ( | ) |
copy property ownership tag into user-supplied buffer.
Return value must be de-allocated using sysinfo_string_free(), or memory will leak.
LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_service_tag | ( | ) |
Return a buffer containing the system service tag string.
Return value must be de-allocated using sysinfo_string_free(), or memory will leak.
LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_system_name | ( | ) |
Return a buffer containing the system name.
Return value must be de-allocated using sysinfo_string_free(), or memory will leak.
LIBSMBIOS_C_DLL_SPEC int sysinfo_get_up_boot_flag | ( | ) |
LIBSMBIOS_C_DLL_SPEC char * sysinfo_get_vendor_name | ( | ) |
Return a buffer containing the system vendor name.
Return value must be de-allocated using sysinfo_string_free(), or memory will leak.
LIBSMBIOS_C_DLL_SPEC int sysinfo_has_nvram_state_bytes | ( | ) |
LIBSMBIOS_C_DLL_SPEC int sysinfo_has_up_boot_flag | ( | ) |
LIBSMBIOS_C_DLL_SPEC int sysinfo_set_asset_tag | ( | const char * | assetTag, |
const char * | pass_ascii, | ||
const char * | pass_scancode | ||
) |
set the system asset tag.
Note some systems store password in ascii and some store keyboard scancodes. Thus you must pass both.
assetTag | null-terminated new asset tag string |
pass_ascii | password to use in ascii (can be null for no pass) |
pass_scancode | keyboard scancode values for password (can be null for no pass) |
LIBSMBIOS_C_DLL_SPEC void sysinfo_set_nvram_state_bytes | ( | int | value, |
int | user | ||
) |
LIBSMBIOS_C_DLL_SPEC int sysinfo_set_property_ownership_tag | ( | const char * | newTag, |
const char * | pass_ascii, | ||
const char * | pass_scancode | ||
) |
Set system property ownership tag.
newTag | buffer holding new tag |
pass_ascii | password as ascii bytes |
pass_scancode | password as keyboard scancodes |
LIBSMBIOS_C_DLL_SPEC int sysinfo_set_up_boot_flag | ( | int | state | ) |
LIBSMBIOS_C_DLL_SPEC const char * sysinfo_strerror | ( | ) |
Returns string describing the last error condition.
Can return 0. The buffer used is guaranteed to be valid until the next call to any sysinfo_* function. Copy the contents if you need it longer.
LIBSMBIOS_C_DLL_SPEC void sysinfo_string_free | ( | void * | ) |
Free string.
Use this function to deallocate the strings returned by other functions in this header.