Reputation: 5523
I want to know how to detect the running OS using the C++ and which service pack installed
Upvotes: 4
Views: 7667
Reputation: 22624
For Windows, see this example called GetOSDisplayString from MSDN, in which the use of GetVersionEx is demonstrated.
Upvotes: 5
Reputation: 10229
I assume you're writing unmanaged C++ using Win32? Look into the Win32 API GetVersionEx
.
Upvotes: 8
Reputation: 907
Maybe this can be helpful: http://msdn.microsoft.com/en-us/library/ak37a69s%28v=VS.90%29.aspx
Upvotes: 1