ServiceMgr.h
资源名称:warftpd.zip [点击查看]
上传用户:surprise9
上传日期:2007-01-04
资源大小:426k
文件大小:1k
源码类别:
Ftp客户端
开发平台:
Visual C++
- // This is part of the WAR SOFTWARE SERIES initiated by Jarle Aase
- // Copyright 1996 by Jarle Aase. All rights reserved.
- // See the "War Software Series Licende Agreement" for details concerning
- // use and distribution.
- // ---
- // This source code, executables and programs containing source code or
- // binaries or proprietetary technology from the War Software Series are
- // NOT alloed used, viewed or tested by any governmental agencies in
- // any countries. This includes the government, departments, police,
- // military etc.
- // ---
- // This file is intended for use with Tab space = 2
- // Created and maintained in MSVC Developer Studio
- // ---
- // NAME : ServiceMgr.h
- // PURPOSE : NT Service Manager class
- // PROGRAM :
- // DATE : Dec. 22 1996
- // AUTHOR : Jarle Aase
- // ---
- // REVISION HISTORY
- //
- class DLL_WAR_SOFTWARE_ CNTServiceMgr
- {
- public:
- static BOOL IsInstalled(LPCSTR ServiceName);
- static BOOL Install(DWORD dwStartType,
- LPCSTR ExeName,
- LPCSTR Name, LPCSTR VisualName,
- LPCSTR LoginName, LPCSTR Password);
- static BOOL Uninstall(LPCSTR Name);
- static BOOL MyStartService(LPCSTR Name);
- static BOOL ControlService(LPCSTR Name, DWORD Command, DWORD *pStatus);
- };