inspect_get_product_variant


Description:

[ Version ( since = "1.9.13" ) ]
public string inspect_get_product_variant (string root) throws Error

get product variant of inspected operating system

This returns the product variant of the inspected operating system.

For Windows guests, this returns the contents of the Registry key "HKLM\Software\Microsoft\Windows NT\CurrentVersion" InstallationType which is usually a string such as Client or Server (other values are possible). This can be used to distinguish consumer and enterprise versions of Windows that have the same version number (for example, Windows 7 and Windows 2008 Server are both version 6.1, but the former is Client and the latter is Server).

For enterprise Linux guests, in future we intend this to return the product variant such as Desktop, Server and so on. But this is not implemented at present.

If the product variant could not be determined, then the string unknown is returned.

Please read "INSPECTION" in guestfs(3) for more details. See also inspect_get_product_name, inspect_get_major_version.

Parameters:

this

A GuestfsSession object

Returns:

the returned string, or NULL on error




2022 vala-language.org