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
Use;
SHGetFileInfo with SHGFI_ATTRIBUTES
upon return check the dwAttributes flag for SFGAO_SHARE.
I'm not sure how to find the actual path tho.
If all else fails, you could always use NetShareEnum and call NetShareGetInfo on each.
I believe you're looking for WNetGetConnectionA or WNetGetConnectionW.