NetShareEnum giving no results
I’ve been working on a function to enumerate shares in Windows using Win32 C++ and hit a snag. For some reason net share
shows all the shares with the default shares and that is good. But for some reason with this code, the program gives no shares back as a result. I tried using _SHARE_INFO_1
, _SHARE_INFO_2
, and _SHARE_INFO_501
.