source: release-kits/shared/search4j/head_src/head.h@ 15093

Last change on this file since 15093 was 15093, checked in by oranfry, 14 years ago

importing the search4j tool I wrote for the release kits

File size: 2.3 KB
Line 
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#include <advapi32.h>
47
48#define NO_JAVA_FOUND 0
49#define FOUND_JRE 1
50#define FOUND_SDK 2
51
52#define LAUNCH4J_TMP_DIR "\\launch4j-tmp\\"
53
54#define STR 128
55#define BIG_STR 1024
56#define MAX_VAR_SIZE 32767
57#define MAX_ARGS 32768
58
59#define TRUE_STR "true"
60#define FALSE_STR "false"
61
62void titledMsgBox(const char* title, const char* text);
63void msgBox(const char* text);
64void showJavaWebPage();
65BOOL loadString(HMODULE hLibrary, int resID, char* buffer);
66BOOL loadBoolString(HMODULE hLibrary, int resID);
67void regSearch(HKEY hKey, const char* keyName, int searchType);
68BOOL findJavaHome(char* path);
69int getExePath(char* exePath);
70void catJavaw(char* jrePath);
71BOOL isJrePathOk(char* path);
72BOOL prepare(HMODULE hLibrary, char *lpCmdLine, char *subcom);
73void closeHandles();
74BOOL appendToPathVar(char* path);
75DWORD execute(BOOL wait);
76
77#endif // _LAUNCH4J_HEAD__INCLUDED_
Note: See TracBrowser for help on using the repository browser.