Cómo detectar el antivirus instalado en Windows 2003 Server y 2008 Server 2003 Server R2 y 2008 Server R2 usando WMI u otro que no sea WMI en C ++
He utilizado WMI para detectar que el antivirus está presente en el sistema operativo, funciona bien y me muestra información del antivirus como el nombre y la identificación de la instancia en win xp y window7 usando Namespace: \ root \ SecurityCenter y \ root \ SecurityCenter, \ root \ Security .
if(isHLOSVersion( ))
hres = pLoc->ConnectServer( _bstr_t(L"root\\SecurityCenter2"),
// Object path of SecurityCenter
NULL, // User name. NULL = current user
NULL, // User password. NULL = current
0, // Locale. NULL indicates current
NULL, // Security flags.
0, // Authority (e.g. Kerberos)
0, // Context object
&pSvc // pointer to IWbemServices proxy
);
else
hres = pLoc->ConnectServer( _bstr_t(L"root\\SecurityCenter"),
// Object path of SecurityCenter
NULL, // User name. NULL = current user
NULL, // User password. NULL = current
0, // Locale. NULL indicates current
NULL, // Security flags.
0, // Authority (e.g. Kerberos)
0, // Context object
&pSvc // pointer to IWbemServices proxy
);
Pero en el caso de Windows 2003 Server y 2008 Server 2003 Server R2 y 2008 Server R2, estos espacios de nombres anteriores no están presentes, por lo que esto no funciona allí.
Por favor, hágame saber cómo podemos detectar que el antivirus presente o no Windows 2003 Server y 2008 Server 2003 Server R2 y 2008 Server R2 sistema operativo.