Name Date Size

.. 2015-02-12 11:35:05 3

common.c 2015-02-12 11:35:05 12.3 KiB

common.h 2015-02-12 11:35:05 1.5 KiB

EventLogMsg.mc 2015-02-12 11:35:05 2.9 KiB

launcher_administrator.exe.manifest 2015-02-12 11:35:05 752

Makefile 2015-02-12 11:35:05 3.2 KiB

opendj_service.exe.manifest 2015-02-12 11:35:05 715

README 2015-02-12 11:35:05 4.6 KiB

service.c 2015-02-12 11:35:05 66.9 KiB

service.h 2015-02-12 11:35:05 3.8 KiB

winlauncher.c 2015-02-12 11:35:05 17.5 KiB

winlauncher.h 2015-02-12 11:35:05 1.1 KiB

README

/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
* or http://forgerock.org/license/CDDLv1.0.html.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at legal-notices/CDDLv1_0.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2008 Sun Microsystems, Inc.
* Portions Copyright 2011 ForgeRock AS
*/
WHAT is winlauncher.exe
========================
winlauncher.exe is a small windows executable that is intended to be used by
the command line files to perform certain operations. It is not intended to
be a final user interface and that is one of the reasons why is placed under
the lib subdirectory.
See the comments in winlauncher.c file and common.c for more information.
WHAT is opendj_service.exe
========================
opendj_service.exe is a small windows executable that is intended to be used by
the command line files to be able to run OpenDJ as a windows service (or not
to configure it as windows service). It is not intended to be a final user
interface and that is one of the reasons why is placed under the lib
subdirectory.
See the comments in service.c file and common.c for more information.
WHAT is launcher_administrator.exe
========================
launcher_administrator.exe is a small windows executable that is intended to
be used by the command line files to launch operations that require
administrator privileges on Vista. Basically is a wrapper containing a
manifest that specifies to require administrator privileges to be run. This
is required if UAC is enabled on Vista so that we have a prompt for the user
asking for confirmation.
See the comments in winlauncher.c file and common.c for more information.
INSTRUCTIONS TO COMPILE winlauncher.exe
========================
Using Visual C++ and the command line you must set your environment
variables to point to your Visual Studio install. You can set the environment
variables by changing to the \bin subdirectory of your Visual C++ installation
and running the VCVARS32.bat batch file.
This will basically update your PATH, INCLUDE and LIB environment variables
to point to the correct paths of your Visual Studio install.
Go to the directory where the source files winlauncher.c, winlauncher.h,
common.c and common.h are and launch the following command:
> cl winlauncher.c common.c
This will generate the binary winlauncher.exe.
NOTE: An alternative to this mode is to compile winlauncher.exe using the
Makefile by running:
> nmake all
(See INSTRUCTIONS TO COMPILE opendj_service.exe for more information).
************************
Using Visual C++ graphical interface you just must to Create a Project and add
winlauncher.c, winlauncher.h, common.c and common.h to the project.
You can build winlauncher.c and then winlauncher.exe with the commands in the
menu 'Build'.
************************
Using gcc (for instance you can get it with the open source project MinGW -
Minimalist GNU for Windows), you must include the directory where the gcc
binaries are on your PATH environment variable.
Go to the directory where the source files winlauncher.c and winlauncher.h are
and launch the following command:
> gcc common.c winlauncher.c -o winlauncher.exe
This will generate the binary winlauncher.exe.
INSTRUCTIONS TO COMPILE opendj_service.exe and administrator_launcher.exe
========================
service.c (the main code file for opendj_service.exe) uses windows resources and
so it requires Windows libraries to be compiled.
The fastest way of generating opendj_service.exe is to do it using the command
line.
Using Visual C++ and the command line you must set your environment
variables to point to your Visual Studio install. You can set the environment
variables by changing to the \bin subdirectory of your Visual C++ installation
and running the VCVARS32.bat batch file.
Then go to the directory where the source files are and run the following
command:
> nmake all
This command will generate both opendj_service.exe and winlauncher.exe.
See the comments in the file Makefile for more information.