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

Last change on this file since 115 was 113, checked in by umoeller, 24 years ago

Misc updates.

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 4.0 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 /*
40 *@@ DOSENVIRONMENT:
41 * structure holding an array of environment
42 * variables (papszVars). This is initialized
43 * appGetEnvironment,
44 *
45 *@@added V0.9.4 (2000-07-19) [umoeller]
46 */
47
48 typedef struct _DOSENVIRONMENT
49 {
50 ULONG cVars; // count of vars in papzVars
51 PSZ *papszVars; // array of PSZ's to environment strings (VAR=VALUE)
52 } DOSENVIRONMENT, *PDOSENVIRONMENT;
53
54 APIRET appParseEnvironment(const char *pcszEnv,
55 PDOSENVIRONMENT pEnv);
56
57 APIRET appGetEnvironment(PDOSENVIRONMENT pEnv);
58
59 PSZ* appFindEnvironmentVar(PDOSENVIRONMENT pEnv,
60 PSZ pszVarName);
61
62 APIRET appSetEnvironmentVar(PDOSENVIRONMENT pEnv,
63 PSZ pszNewEnv,
64 BOOL fAddFirst);
65
66 APIRET appConvertEnvironment(PDOSENVIRONMENT pEnv,
67 PSZ *ppszEnv,
68 PULONG pulSize);
69
70 APIRET appFreeEnvironment(PDOSENVIRONMENT pEnv);
71
72 #ifdef INCL_WINPROGRAMLIST
73 // additional PROG_* flags for appQueryAppType
74 // #define PROG_XWP_DLL 998 // dynamic link library
75 // removed, PROG_DLL exists already
76 // V0.9.16 (2001-10-06)
77
78 APIRET appQueryAppType(const char *pcszExecutable,
79 PULONG pulDosAppType,
80 PULONG pulWinAppType);
81
82 PCSZ appDescribeAppType(PROGCATEGORY progc);
83
84 ULONG appIsWindowsApp(ULONG ulProgCategory);
85
86 /* ******************************************************************
87 *
88 * Application start
89 *
90 ********************************************************************/
91
92
93 PSZ appQueryDefaultWin31Environment(VOID);
94
95 #define APP_RUN_FULLSCREEN 0x0001
96 #define APP_RUN_ENHANCED 0x0002
97 #define APP_RUN_STANDARD 0x0004
98 #define APP_RUN_SEPARATE 0x0008
99
100 APIRET XWPENTRY appStartApp(HWND hwndNotify,
101 const PROGDETAILS *pcProgDetails,
102 ULONG ulFlags,
103 HAPP *phapp);
104
105 BOOL XWPENTRY appWaitForApp(HWND hwndNotify,
106 HAPP happ,
107 PULONG pulExitCode);
108
109 HAPP XWPENTRY appQuickStartApp(const char *pcszFile,
110 ULONG ulProgType,
111 const char *pcszArgs,
112 PULONG pulExitCode);
113
114 #endif
115
116#endif
117
118#if __cplusplus
119}
120#endif
121
Note: See TracBrowser for help on using the repository browser.