961N/A/*
961N/A* CDDL HEADER START
961N/A*
961N/A* The contents of this file are subject to the terms of the
961N/A* Common Development and Distribution License, Version 1.0 only
961N/A* (the "License"). You may not use this file except in compliance
961N/A* with the License.
961N/A*
6983N/A* You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
6983N/A* or http://forgerock.org/license/CDDLv1.0.html.
961N/A* See the License for the specific language governing permissions
961N/A* and limitations under the License.
961N/A*
961N/A* When distributing Covered Code, include this CDDL HEADER in each
6983N/A* file and include the License file at legal-notices/CDDLv1_0.txt.
6983N/A* If applicable, add the following below this CDDL HEADER, with the
6983N/A* fields enclosed by brackets "[]" replaced with your own identifying
6983N/A* information:
961N/A* Portions Copyright [yyyy] [name of copyright owner]
961N/A*
961N/A* CDDL HEADER END
961N/A*
961N/A*
5072N/A* Copyright 2008-2010 Sun Microsystems, Inc.
961N/A*/
961N/A
961N/A// Just some functions and constants to be used by winlauncher.c
961N/A// and service.c
961N/A
1298N/A// This stops warnings about deprecation of stdio functions
1298N/A#define _CRT_SECURE_NO_DEPRECATE 1
1298N/A
961N/A#include <Windows.h>
961N/A
5072N/Aint spawn(char* command, BOOL background);
961N/ABOOL createChildProcess(char* command, BOOL background,
961N/APROCESS_INFORMATION* procInfo);
5072N/ABOOL createBatchFileChildProcess(char* batchFile, BOOL background,
5072N/APROCESS_INFORMATION* procInfo);
1298N/Avoid debug(const char *msg, ...);
1298N/Avoid debugError(const char *msg, ...);
3231N/Avoid updateDebugFlag(char* argv[], int argc);
5072N/ABOOL waitForProcess(PROCESS_INFORMATION* procInfo, DWORD waitTime,
5072N/A DWORD* exitCode);