OSDN Git Service

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