From: SMTP%"MikeChen@fbcs.fujitsu.com" 25-SEP-1997 16:40:36.51 To: "'ntdev@atria.com'" CC: Subj: NT-Service Return-Path: owner-ntdev@atria.com Received: by arisia.gce.com (UCX V4.1-12C, OpenVMS V7.1 VAX); Thu, 25 Sep 1997 16:35:06 -0400 Received: from gw.atria.com (gw.atria.com [192.88.237.2]) by bort.mv.net (8.8.5/mem-951016) with SMTP id TAA22892 for ; Wed, 24 Sep 1997 19:24:41 -0400 (EDT) Received: by gw.atria.com id Wed, 24 Sep 1997 12:35:21 -0400 Received: from fujitsuI.fujitsu.com by gw.atria.com id Wed, 24 Sep 1997 12:35:11 -0400 Received: from exchange.fbcs.fujitsu.com ([133.164.160.87]) by fujitsuI.fujitsu.com (8.8.5/8.7.3) with SMTP id JAA01835 for ; Wed, 24 Sep 1997 09:34:35 -0700 (PDT) Received: by exchange.fbcs.fujitsu.com with SMTP (Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63) id <01BCC8CC.F4756870@exchange.fbcs.fujitsu.com>; Wed, 24 Sep 1997 09:33:45 -0700 Message-ID: From: "Chen, Mike (Anaheim)" To: "'ntdev@atria.com'" Subject: NT-Service Date: Wed, 24 Sep 1997 09:34:05 -0700 X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.994.63 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: owner-ntdev@atria.com Precedence: bulk Hi, There is a function to create a service in NT: SC_HANDLE CreateService( SC_HANDLE hSCManager, // handle to service control manager database LPCTSTR lpServiceName, // pointer to name of service to start LPCTSTR lpDisplayName, // pointer to display name DWORD dwDesiredAccess, // type of access to service DWORD dwServiceType, // type of service DWORD dwStartType, // when to start service DWORD dwErrorControl, // severity if service fails to start LPCTSTR lpBinaryPathName, // pointer to name of binary file LPCTSTR lpLoadOrderGroup, // pointer to name of load ordering group LPDWORD lpdwTagId, // pointer to variable to get tag identifier LPCTSTR lpDependencies, // pointer to array of dependency names LPCTSTR lpServiceStartName, // pointer to account name of service LPCTSTR lpPassword // pointer to password for service account ); dwServiceType can have the following value: SERVICE_WIN32_OWN_PROCESS Specifies a Win32-based service that runs in its own process. SERVICE_WIN32_SHARE_PROCESS Specifies a Win32-based service that shares a process with other services. ... Exactly what these two values mean. Any help is greatly appreciated. Mike - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ]