source: release-kits/shared/launch4j/head_src/head.h@ 15024

Last change on this file since 15024 was 15024, checked in by oranfry, 16 years ago

putting launch4j in the shared area

File size: 2.3 KB
RevLine 
[15024]1/*
2 Launch4j (http://launch4j.sourceforge.net/)
3 Cross-platform Java application wrapper for creating Windows native executables.
4
5 Copyright (C) 2004, 2006 Grzegorz Kowal
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
21
22 Compiled with Mingw port of GCC,
23 Bloodshed Dev-C++ IDE (http://www.bloodshed.net/devcpp.html)
24*/
25
26#ifndef _LAUNCH4J_HEAD__INCLUDED_
27#define _LAUNCH4J_HEAD__INCLUDED_
28
29#define WIN32_LEAN_AND_MEAN // VC - Exclude rarely-used stuff from Windows headers
30
31// Windows Header Files:
32#include <windows.h>
33
34// C RunTime Header Files
35#include <stdlib.h>
36#include <malloc.h>
37#include <memory.h>
38#include <tchar.h>
39#include <shellapi.h>
40#include <direct.h>
41#include <fcntl.h>
42#include <stdio.h>
43#include <sys/stat.h>
44#include <io.h>
45#include <process.h>
46
47#define NO_JAVA_FOUND 0
48#define FOUND_JRE 1
49#define FOUND_SDK 2
50
51#define LAUNCH4J_TMP_DIR "\\launch4j-tmp\\"
52
53#define STR 128
54#define BIG_STR 1024
55#define MAX_VAR_SIZE 32767
56#define MAX_ARGS 32768
57
58#define TRUE_STR "true"
59#define FALSE_STR "false"
60
61void titledMsgBox(const char* title, const char* text);
62void msgBox(const char* text);
63void showJavaWebPage();
64BOOL loadString(HMODULE hLibrary, int resID, char* buffer);
65BOOL loadBoolString(HMODULE hLibrary, int resID);
66void regSearch(HKEY hKey, const char* keyName, int searchType);
67BOOL findJavaHome(char* path);
68int getExePath(char* exePath);
69void catJavaw(char* jrePath);
70BOOL isJrePathOk(char* path);
71BOOL prepare(HMODULE hLibrary, char *lpCmdLine);
72void closeHandles();
73BOOL appendToPathVar(char* path);
74DWORD execute(BOOL wait);
75
76#endif // _LAUNCH4J_HEAD__INCLUDED_
Note: See TracBrowser for help on using the repository browser.