Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pointers or not pointers
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00035784
Message ID:
00035805
Vues:
34
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform