 |
CeCreateProcess ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
This function is used to run a new program. It creates a new process and its primary thread. The new process executes the specified executable file. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
BOOL CeCreateProcess(
LPCWSTR lpApplicationName,
LPCWSTR lpCommandLine,
LPSECURITY_ATTRIBUTES lpProcessAttributes,
LPSECURITY_ATTRIBUTES lpThreadAttributes,
BOOL bInheritHandles,
DWORD dwCreationFlags,
LPVOID lpEnvironment,
LPWSTR lpCurrentDirectory,
LPSTARTUPINFO lpStartupInfo,
LPPROCESS_INFORMATION lpProcessInformation
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER CeCreateProcess IN rapi;
STRING lpAppName,;
STRING lpCmdLine,;
INTEGER lpProcAttr,;
INTEGER lpThreadAttr,;
INTEGER bInheritHandles,;
INTEGER dwCreationFlags,;
INTEGER lpEnvironment,;
INTEGER lpCurrDir,;
INTEGER lpStartupInfo,;
STRING @ lpProcInfo
|
 |
 |
 |
| Parameters: |
 |
lpApplicationName
[in] Long pointer to a null-terminated string that specifies the module to execute.
lpCommandLine
[in] Long pointer to a null-terminated string that specifies the command line to execute.
lpProcessAttributes
[in] Not supported; set to NULL.
lpThreadAttributes
[in] Not supported; set to NULL.
bInheritHandles
[in] Not supported; set to FALSE.
dwCreationFlags
[in] Specifies additional flags that control the priority class and the creation of the process.
lpEnvironment
[in] Not supported; set to NULL.
lpCurrentDirectory
[in] Not supported; set to NULL.
lpStartupInfo
[in] Not supported; set to NULL.
lpProcessInformation
[out] Long pointer to a PROCESS_INFORMATION structure that receives identification information about the new process. |
 |
 |
| Return value: |
 |
| Nonzero indicates success. |
 |
 |
| My comment: |
 |
To determine if a function failed because of RAPI errors, call CeRapiGetError. To determine if a function failed because of non-RAPI errors, call CeGetLastError.
|
 |
 |
| Word Index links for the CeCreateProcess : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2004-08-13 09:48:20 | | Modified: | 2004-08-13 09:51:25 | Visited in last 7 days: 17 |