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

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

Tons of updates for turbo folders and replacement icons.

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 4.2 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 #define PROG_WIN32 990 // added V0.9.16 (2001-12-08) [umoeller]
79
80 APIRET appQueryAppType(const char *pcszExecutable,
81 PULONG pulDosAppType,
82 PULONG pulWinAppType);
83
84 PCSZ appDescribeAppType(PROGCATEGORY progc);
85
86 ULONG appIsWindowsApp(ULONG ulProgCategory);
87
88 /* ******************************************************************
89 *
90 * Application start
91 *
92 ********************************************************************/
93
94
95 PSZ appQueryDefaultWin31Environment(VOID);
96
97 #define APP_RUN_FULLSCREEN 0x0001
98 #define APP_RUN_ENHANCED 0x0002
99 #define APP_RUN_STANDARD 0x0004
100 #define APP_RUN_SEPARATE 0x0008
101
102 APIRET XWPENTRY appStartApp(HWND hwndNotify,
103 const PROGDETAILS *pcProgDetails,
104 ULONG ulFlags,
105 HAPP *phapp,
106 ULONG cbFailingName,
107 PSZ pszFailingName);
108
109 BOOL XWPENTRY appWaitForApp(HWND hwndNotify,
110 HAPP happ,
111 PULONG pulExitCode);
112
113 HAPP XWPENTRY appQuickStartApp(const char *pcszFile,
114 ULONG ulProgType,
115 const char *pcszArgs,
116 PULONG pulExitCode);
117
118 #endif
119
120#endif
121
122#if __cplusplus
123}
124#endif
125
Note: See TracBrowser for help on using the repository browser.