>NetUserDel() does use pointers to the variables, which means that you need to pass them by reference.
Thanks, I'll try that. Right now, I am not passing 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.
Yes, conversion to UNICODE has been implemented.