Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
07-23-2009, 04:44 PM #1
- Join Date
- Jan 2005
- Thanked 1 Time in 1 Post
Replacement for NetShareGetInfo to get Share Path [C++]
For the past 10 years I've been using NetShareGetInfo() to retrieve the PATH for my shares, this was done as follows:
SHARE_INFO_2* share_info_2 = NULL; NET_API_STATUS status = LM_API.NetShareGetInfo ( (PWCHAR) (PCWCHAR) WZS (cszServer), (PWCHAR) (PCWCHAR) WZS (cszShare), 2, (PBYTE*) &share_info_2 ); return share_info_2->shi2_path;
Is there an alternative I can use to simply get back the share path? I am not interested in any of the other information provided in SHARE_INFO_2 but I need those paths...
Any help would be much appreciated.