// Copyright distributed.net 1997-1999 - All Rights Reserved
// For use in distributed.net projects only.
// Any other distribution or use of this source violates copyright.
//
// $Log: w32svc.h,v $
// Revision 1.4  1999/01/01 02:45:21  cramer
// Part 1 of 1999 Copyright updates...
//
// Revision 1.3  1998/12/20 07:10:38  cyp
// New func win32CliServiceRunning() returns !0 if the clients is running
// as a service (effective only once service mode has been initialized).
//
// Revision 1.2  1998/12/01 00:21:43  cyp
// Consolidated w32ConGetVersion() [w32cons] and winCliGetVersion() [w32svc]
// into winGetVersion() [w32pre]. This probably fixes the service start bug.
//
// Revision 1.1  1998/09/30 18:47:18  cyp
// Created.
//
//

#ifndef __W32SVC_H__
#define __W32SVC_H__

int win32CliUninstallService(int quiet); 
/*returns 0 on success. quiet is used internally by the service itself */
                        
int win32CliInstallService(int quiet);                        
/*returns 0 on success. quiet is used internally by the service itself */

int win32CliInitializeService(int argc, char *argv[]);
/* new style InitializeService. Returns 0 if service started ok */
                        
int win32CliOldStyleInitializeService(void);
/* old style (no command line on NT). Returns 0 if service started ok */

int win32CliServiceRunning(void);
/* returns !0 if *running* as a service */

#endif // __W32SVC_H__
