1*87d2adbcSAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3*87d2adbcSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*87d2adbcSAndrew Rist * or more contributor license agreements. See the NOTICE file
5*87d2adbcSAndrew Rist * distributed with this work for additional information
6*87d2adbcSAndrew Rist * regarding copyright ownership. The ASF licenses this file
7*87d2adbcSAndrew Rist * to you under the Apache License, Version 2.0 (the
8*87d2adbcSAndrew Rist * "License"); you may not use this file except in compliance
9*87d2adbcSAndrew Rist * with the License. You may obtain a copy of the License at
10*87d2adbcSAndrew Rist *
11*87d2adbcSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12*87d2adbcSAndrew Rist *
13*87d2adbcSAndrew Rist * Unless required by applicable law or agreed to in writing,
14*87d2adbcSAndrew Rist * software distributed under the License is distributed on an
15*87d2adbcSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*87d2adbcSAndrew Rist * KIND, either express or implied. See the License for the
17*87d2adbcSAndrew Rist * specific language governing permissions and limitations
18*87d2adbcSAndrew Rist * under the License.
19*87d2adbcSAndrew Rist *
20*87d2adbcSAndrew Rist *************************************************************/
21*87d2adbcSAndrew Rist
22*87d2adbcSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_sal.hxx"
26cdf0e10cSrcweir
27cdf0e10cSrcweir
28cdf0e10cSrcweir #include <osl/process.h>
29cdf0e10cSrcweir #include <stdio.h>
30cdf0e10cSrcweir
31cdf0e10cSrcweir
32cdf0e10cSrcweir #if defined WNT
33cdf0e10cSrcweir #define MAIN _cdecl main
34cdf0e10cSrcweir #else
35cdf0e10cSrcweir #define MAIN main
36cdf0e10cSrcweir #endif
37cdf0e10cSrcweir
MAIN(void)38cdf0e10cSrcweir void MAIN (void)
39cdf0e10cSrcweir {
40cdf0e10cSrcweir oslProcess Process;
41cdf0e10cSrcweir oslProcessError ProcessError;
42cdf0e10cSrcweir sal_uInt32 nArgCount;
43cdf0e10cSrcweir sal_uInt32 index;
44cdf0e10cSrcweir rtl_uString* ustrExeFile=0;
45cdf0e10cSrcweir rtl_uString* ustrArg=0;
46cdf0e10cSrcweir
47cdf0e10cSrcweir nArgCount=osl_getCommandArgCount();
48cdf0e10cSrcweir
49cdf0e10cSrcweir fprintf(stderr,"Arg Count == %i\n\n",nArgCount);
50cdf0e10cSrcweir
51cdf0e10cSrcweir for ( index = 0 ; index <= nArgCount+1 ; index++ )
52cdf0e10cSrcweir {
53cdf0e10cSrcweir fprintf(stderr,"Getting Arg No . %i\n",index);
54cdf0e10cSrcweir
55cdf0e10cSrcweir osl_getCommandArg(index,&ustrArg);
56cdf0e10cSrcweir
57cdf0e10cSrcweir fprintf(stderr,"done ...\n\n",index);
58cdf0e10cSrcweir }
59cdf0e10cSrcweir
60cdf0e10cSrcweir ProcessError = osl_getExecutableFile(&ustrExeFile);
61cdf0e10cSrcweir
62cdf0e10cSrcweir /*
63cdf0e10cSrcweir osl_executeProcess( "e:\\test\\os2de202.exe",
64cdf0e10cSrcweir NULL,
65cdf0e10cSrcweir osl_Process_NORMAL,
66cdf0e10cSrcweir 0L,
67cdf0e10cSrcweir NULL,
68cdf0e10cSrcweir NULL,
69cdf0e10cSrcweir NULL,
70cdf0e10cSrcweir &Process );*/
71cdf0e10cSrcweir }
72cdf0e10cSrcweir
73cdf0e10cSrcweir
74