blob: 134eaef0e0054b5df5acb352717c17e69f51b290 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* Copyright (c) 1999 Olaf Flebbe o.flebbe@gmx.de
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
*
*/
/* This is indeed C++ Code !! */
#include <e32std.h>
extern "C" {
epoc_spawn( char *cmd, char *cmdline) {
RProcess p;
TRequestStatus status;
TInt rc;
rc = p.Create( _L( cmd), _L( cmdline));
if (rc != KErrNone)
return -1;
p.Resume();
p.Logon( status);
User::WaitForRequest( status);
if (status!=KErrNone) {
return -1;
}
return 0;
}
}
|