Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CECreateProcess not running
Message
From
19/08/2003 13:13:14
 
 
To
19/08/2003 06:19:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00820945
Message ID:
00821485
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform