>In the last few days, we discussed about pointers in WIN32API that we can't access with Visual FoxPro for certain functions.
>
>There is one function which I am not sure if the parameters are pointers or not. The NetUserDel() function is using a servername and a username for the parameters.
>
>My results is that function is working about 1 time out of 4 and I haven't found a way to be sure of the results. I always get different results with different error numbers. Sometimes it is working sometimes not.
>
>Might it be possible that is uses pointers and that would be a normal reaction?
Michel,
NetUserDel() does use pointers to the variables, which means that you need to pass them by reference. Be sure that your DECLARE statement indicates that the variable is to be passed by reference as well. One last point, NetUserDel() requires that UNICODE strings must be passed.
HTH,
George
George
Ubi caritas et amor, deus ibi est