Detecting Windows Server R2 Core
Posted: Thu Aug 25, 2016 8:29 am
by mdavtec
I'm using IA18 and have support for Windows Server 2012 R2 server. However, we need to add code to detect if the server is Core (no-gui) or not. I'm curious if there is an API support to detect "Core" with IA. Any suggestion.
Re: Detecting Windows Server R2 Core
Posted: Thu Aug 25, 2016 12:33 pm
by FrancescoT
Re: Detecting Windows Server R2 Core
Posted: Tue Aug 30, 2016 9:01 am
by mdavtec
Hi Francesco,
Thanks for response.
The method of using GetVersion() win api via "CALL DLL FUNCTION", that link suggests, doesn't work here. It doesn't distinguish between gui and core (non-gui) version of the server operation system. I ended up using method described in
https://msdn.microsoft.com/en-us/librar ... 29(v=vs.85).aspx.
Thanks,
Re: Detecting Windows Server R2 Core
Posted: Tue Aug 30, 2016 4:16 pm
by FrancescoT
Happy you solved!
Regards