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