Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CECreateProcess not running
Message
De
20/08/2003 03:29:52
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
20/08/2003 02:15:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00820945
Message ID:
00821701
Vues:
17
I don't know, just passed you the info from MSDN CeCreateProcess remarks.
Cetin

>I dont find information about 'PegCreateProcess' function on MSDN online.
>Is this RAPI function or CE SDK function ? I need a RAPI function.
>
>
>>You've reserved 16 bytes for that which is right for 4 dwords. Documentation says for CE 2.0 ad up, CE versions 1.0 and 1.01, use the PegCreateProcess function.
>>Might be that
>>Cetin
>>
>>>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform