Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CECreateProcess not running
Message
De
19/08/2003 13:13:14
 
 
À
19/08/2003 06:19:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00820945
Message ID:
00821485
Vues:
16
I just do it, but not success. I need a example code in VFP just run OK. I think, the problem is in the 'lpProcessInformation' pointer structure.

>>This is my call to RAPI CeCreateProcess pocketPC, but always I always obtain a 0 result... Help please !!
>>
>>**********************************************************
>>FUNCTION pciCECreateProcess( cApplication, cCommandLine )
>>**********************************************************
>>*
>>*
>>DECLARE INTEGER CeCreateProcess IN RAPI ;
>> STRING @lpApplicationName, ;
>> STRING @lpCommandLine, ;
>> STRING lpProcessAttributes, ;
>> STRING lpThreadAttributes, ;
>> INTEGER bInheritHandles, ;
>> INTEGER dwCreationFlags, ;
>> STRING lpEnvironment, ;
>> STRING lpCurrentDirectory, ;
>> STRING lpStartupInfo, ;
>> STRING @lpProcessInformation
>>*
>>cApplication = pciCEStringToUnicode(cApplication)
>>cCommandLine = pciCEStringToUnicode(cCommandLine)
>>PUBLIC cProcessInformation
>>cProcessInformation = REPLICATE(CHR(0),16)
>>*
>>RETURN CeCreateProcess(@cApplication, @cCommandLine,"","",0,0,"","","",@cProcessInformation)
>>*
>>*
>
>Would you try :
>
>**********************************************************
>FUNCTION pciCECreateProcess( cApplication, cCommandLine )
>**********************************************************
>*
>*
>DECLARE INTEGER CeCreateProcess IN RAPI ;
>STRING @lpApplicationName, ;
>STRING @lpCommandLine, ;
>STRING lpProcessAttributes, ;
>STRING lpThreadAttributes, ;
>INTEGER bInheritHandles, ;
>INTEGER dwCreationFlags, ;
>STRING lpEnvironment, ;
>STRING lpCurrentDirectory, ;
>STRING lpStartupInfo, ;
>STRING @lpProcessInformation
>*
>*cApplication = pciCEStringToUnicode(cApplication)
>*cCommandLine = pciCEStringToUnicode(cCommandLine)
>PUBLIC cProcessInformation
>cProcessInformation = REPLICATE(CHR(0),16)
>*
>RETURN CeCreateProcess(cApplication, ;
>  cCommandLine,0,0,0,0,0,0,0,@cProcessInformation)
>*
>*
>
Does it really expect unicode?
>Cetin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform