common.h revision 1298
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*
961N/A* You can obtain a copy of the license at
961N/A* trunk/opends/resource/legal-notices/OpenDS.LICENSE
961N/A* or https://OpenDS.dev.java.net/OpenDS.LICENSE.
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
961N/A* file and include the License file at
961N/A* trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
961N/A* add the following below this CDDL HEADER, with the fields enclosed
961N/A* by brackets "[]" replaced with your own identifying * information:
961N/A* Portions Copyright [yyyy] [name of copyright owner]
961N/A*
961N/A* CDDL HEADER END
961N/A*
961N/A*
961N/A* Portions Copyright 2007 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
961N/Aint spawn(const char* command, BOOL background);
961N/ABOOL createChildProcess(char* command, BOOL background,
961N/APROCESS_INFORMATION* procInfo);
1298N/Avoid debug(const char *msg, ...);
1298N/Avoid debugError(const char *msg, ...);
1298N/Avoid updateDebugFlag(char* argv[], int argc);