Windows/C++: How do I determine the share name associated with a shared drive?

后端 未结 3 1874
说谎
说谎 2021-01-25 10:45

Let\'s say I have a drive such as C:\\, and I want to find out if it\'s shared and what it\'s share name (e.g. C$) is.

To find out if i

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-25 11:38

    If all else fails, you could always use NetShareEnum and call NetShareGetInfo on each.

提交回复
热议问题