I have the following code:
smb_share_list list;
size_t shareCount = 0;
result = smb_share_get_list(session, &list, &shareCount);
The result is always -2.
I have checked to ensure that "smb_session_login" and "smb_session_is_guest" both returns 0. So it means I am connected to the file server correctly. But I cannot seem to get the share list.
Can anyone point me in the right direction to solving this issue? Help is much appreciated.