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