Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get user network id and password
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00842149
Message ID:
00843396
Vues:
27
Hi,

So you were using VFP in both cases (i.e. creating a VFP process from VFP) ?

I wonder if the drawing problem is the result of contention between the two processes? Is the launching VFP still available after the second process is created ?

FWIW I think you could use CreateProcessWithLogonW() to combine the LogonUser() and CreateProcessAsUser() functions..

Regards,
Viv

>>
I used LogonUser and CreateProcessAsUser API functions to start an executable with user credentials different from the current ones.

Very simple executable programmed to display MessageBox with SYS(0) information -- to confirm that the user really changed.

Only window titles of the main FoxPro window and that MessageBox partially appeared. Visibly there was a drawing conflict, if I may say so. Though I was able to close the MessageBox pressing Enter.

May be I missed some flags while running CreateProcessAsUser. Certainly I will return to that code to get more from this functionality.

Another executable sending email messages did Ok, though WAIT WINDOW was drawn partially, only the border of it.
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform