home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
perl560.zip
/
epoc
/
epocish.c
< prev
next >
Wrap
C/C++ Source or Header
|
2000-01-09
|
590b
|
35 lines
/*
* 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;
}
}