c++ - Programmatic way to find the Windows OS volume? -


i understand not recommended assume drive letter c: reserved os volume. there straightforward way answer question - volume windows os reside on?. volume can drive letter or volume guid or other way volumes identified. note looking os partition not same system partition.

getwindowsdirectory() , break path _splitpath.

edit: changed getsystemdirectory getwindowsdirectory. in practice results should same.


Comments

Popular posts from this blog

jQuery clickable div with working mailto link inside -

java - Getting corefrences with Standard corenlp package -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -