pafish/pafish/vmware.c
int vmware_wmi_serial() {
	IWbemServices *services = NULL;

	if (wmi_initialize(L"root\\cimv2", &services) != TRUE) {
		return FALSE;
	}

	int result = wmi_check_query(services, L"WQL", L"SELECT SerialNumber FROM Win32_Bios",
			&vmware_wmi_check_row);

	wmi_cleanup(services);

	return result;
}
/**
 * Check for the computer serial using WMI.
 */
Check for the computer serial using WMI.
Check for the computer serial using WMI .
int vmware_wmi_serial() {
	IWbemServices *services = NULL;
	if (wmi_initialize(L"root\\cimv2", &services) != TRUE) {
		return FALSE;
	}
	int result = wmi_check_query(services, L"WQL", L"SELECT SerialNumber FROM Win32_Bios",
			&vmware_wmi_check_row);
	wmi_cleanup(services);
	return result;
}
int vmware_wmi_serial ( ) { IWbemServices * services = NULL ; if ( wmi_initialize ( L" \\ " , & services ) != TRUE ) { return FALSE ; } int result = wmi_check_query ( services , L" " , L" " , & vmware_wmi_check_row ) ; wmi_cleanup ( services ) ; return result ; }
Check for the computer serial using WMI.
Check for the computer serial using WMI .