source: trunk/include/helpers/apps.h@ 242

Last change on this file since 242 was 242, checked in by umoeller, 23 years ago

First attempt at new container contol.

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 4.5 KB
Line 
1
2/*
3 *@@sourcefile apps.h:
4 * header file for apps.c. See remarks there.
5 *
6 * Note: Version numbering in this file relates to XWorkplace version
7 * numbering.
8 *
9 *@@include #define INCL_WINPROGRAMLIST
10 *@@include #include <os2.h>
11 *@@include #include "helpers\apps.h"
12 */
13
14/* This file Copyright (C) 1997-2001 Ulrich M”ller.
15 * This file is part of the "XWorkplace helpers" source package.
16 * This is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published
18 * by the Free Software Foundation, in version 2 as it comes in the
19 * "COPYING" file of the XWorkplace main distribution.
20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 */
25
26#if __cplusplus
27extern "C" {
28#endif
29
30#ifndef APPS_HEADER_INCLUDED
31 #define APPS_HEADER_INCLUDED
32
33 /* ******************************************************************
34 *
35 * Environment helpers
36 *
37 ********************************************************************/
38
39 ULONG appQueryEnvironmentLen(PCSZ pcszEnvironment);
40
41 /*
42 *@@ DOSENVIRONMENT:
43 * structure holding an array of environment
44 * variables (papszVars). This is initialized
45 * appGetEnvironment,
46 *
47 *@@added V0.9.4 (2000-07-19) [umoeller]
48 */
49
50 typedef struct _DOSENVIRONMENT
51 {
52 ULONG cVars; // count of vars in papzVars
53 PSZ *papszVars; // array of PSZ's to environment strings (VAR=VALUE)
54 } DOSENVIRONMENT, *PDOSENVIRONMENT;
55
56 APIRET appParseEnvironment(const char *pcszEnv,
57 PDOSENVIRONMENT pEnv);
58
59 APIRET appGetEnvironment(PDOSENVIRONMENT pEnv);
60
61 PSZ* appFindEnvironmentVar(PDOSENVIRONMENT pEnv,
62 PCSZ pszVarName);
63
64 APIRET appSetEnvironmentVar(PDOSENVIRONMENT pEnv,
65 PCSZ pszNewEnv,
66 BOOL fAddFirst);
67
68 APIRET appSetEnvironmentVars(PDOSENVIRONMENT pEnv,
69 PCSZ pcszEnv);
70
71 APIRET appConvertEnvironment(PDOSENVIRONMENT pEnv,
72 PSZ *ppszEnv,
73 PULONG pulSize);
74
75 APIRET appFreeEnvironment(PDOSENVIRONMENT pEnv);
76
77 #ifdef INCL_WINPROGRAMLIST
78 // moved extra PROG_* defs to exeh.h V1.0.1 (2003-01-17) [umoeller]
79
80 APIRET appQueryAppType(const char *pcszExecutable,
81 PULONG pulDosAppType,
82 PULONG pulWinAppType);
83
84 ULONG appIsWindowsApp(ULONG ulProgCategory);
85
86 /* ******************************************************************
87 *
88 * Application start
89 *
90 ********************************************************************/
91
92 APIRET appQueryDefaultWin31Environment(PSZ *ppsz);
93
94 #define APP_RUN_FULLSCREEN 0x0001
95 #define APP_RUN_ENHANCED 0x0002
96 #define APP_RUN_STANDARD 0x0004
97 #define APP_RUN_SEPARATE 0x0008
98
99 APIRET appBuildProgDetails(PPROGDETAILS *ppDetails,
100 const PROGDETAILS *pcProgDetails,
101 ULONG ulFlags);
102
103 APIRET XWPENTRY appStartApp(HWND hwndNotify,
104 const PROGDETAILS *pcProgDetails,
105 ULONG ulFlags,
106 HAPP *phapp,
107 ULONG cbFailingName,
108 PSZ pszFailingName);
109
110 BOOL XWPENTRY appWaitForApp(HWND hwndNotify,
111 HAPP happ,
112 PULONG pulExitCode);
113
114 APIRET appQuickStartApp(const char *pcszFile,
115 ULONG ulProgType,
116 const char *pcszArgs,
117 const char *pcszWorkingDir,
118 HAPP *phapp,
119 PULONG pulExitCode);
120
121 APIRET appOpenURL(PCSZ pcszURL,
122 PSZ pszAppStarted,
123 ULONG cbAppStarted);
124
125 #endif
126
127#endif
128
129#if __cplusplus
130}
131#endif
132
Note: See TracBrowser for help on using the repository browser.