I have an example here (though this is members area):
http://www.news2news.com/vfp/?example=165&function=252What I can say: zero in this case means the function returned valid result. Otherwise this is an error code, like 87 (parameter is incorrect) or 234 (More data is available) etc.
MSDN says:
If the function succeeds, the return value is NERR_Success.And NERR_Success is nothing else but
#DEFINE NERR_Success 0
Check MSDN description at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/netserverenum.asp...
LOCAL lnBuffer, lnCountRead, lnCountTotal, lnResult
STORE 0 TO lnBuffer, lnCountRead, lnCountTotal
WAIT WINDOW "Requesting data..." NOWAIT
lnResult = NetServerEnum (0, 101, @lnBuffer, MAX_PREFERRED_LENGTH,;
@lnCountRead, @lnCountTotal, lnServerType, 0, 0)
WAIT CLEAR
IF lnResult <> 0
? "Error code:", lnResult
ELSE
...
ENDIF