c++ - programmatically check if desktop experience is installed or not windows server 2016 -


as know windows server 2016 comes option install desktop experience during os instllation timing , if done below program snippet fails detect though desktop experience installed.

ienumwbemclassobject* penumerator = null;     hr = psvc->execquery(         bstr_t("wql"),          bstr_t("select id win32_serverfeature"),         wbem_flag_forward_only | wbem_flag_return_immediately,          null,         &penumerator);  hr = penumerator->next(wbem_infinite,1,&pclsobj,&ureturn);         if(0 == ureturn)         {             break;         }         variant vtprop;         hr = pclsobj->get(l"id",0,&vtprop,0,0); 

this penumerator variable not contain desktop experience feature id 35.

is expected behavior in windows server 2016 ? if not how value in windows server 2016 ?


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -